feat: add utf-8 chinese Patient Name query support to query

This commit is contained in:
kradchen
2025-09-09 08:53:42 +08:00
parent a216287ce5
commit 8349b20e73

View File

@@ -90,6 +90,14 @@ void QueryWorker::executeCFind(DcmDataset* aQueryKeys)
}
OFList<QRResponse*> responses;
T_ASC_PresentationContextID pcid = m_Scu->findPresentationContextID(UID_FINDStudyRootQueryRetrieveInformationModel,"");
OFString patName;
if (aQueryKeys->findAndGetOFString(DCM_PatientName, patName).good())
{
if (!patName.empty())
{
aQueryKeys->putAndInsertString(DCM_SpecificCharacterSet, "ISO_IR 192");
}
}
OFCondition cond = m_Scu->sendFINDRequest(pcid, aQueryKeys, &responses);
emit sendFindDone(responses.empty() ? 0 : static_cast<int>(responses.size())-1);
if (!responses.empty())