Resurrecting an older thread given relatedness.
My instance of Orthanc receives studies from a large variety of locations. Today during some development work I loaded an old third party dummy study that had a duplicate PatientID.
I see that my old PACS system handles duplicates by automatically prepending a prefix (e.g., _FIX1_ or _FIX2_) when there is a conflicting PatientID with different demographics than existing.
I can manually split the study / series to correct the problem IF I know about it, with a new PatientID.
My Orthanc instance automatically receives a large number of studies without manual intervention. I parse the /changes file to create a custom database to show recent activity. Such PatientID duplicates will go unnoticed and possibly associate a study with the wrong patient at the meta data level (unsafe and confusing).
Searching the API at the studies level could overcome this problem per prior post, however that is not practical for a large instance. Makes the /changes activity somewhat useless then.
My challenge is that I will not know about conflicting / duplicate PatientIDs. Unless I check every instance for whether its DICOM tags match that of the patient associated with it in Orthanc. That is error prone and resource intensive. Would much rather have a prefix modification for a duplicate PatientID when the study is first imported.
Any guidance would be appreciated.
Any way Orthanc could be configured to automatically prefix something when a conflicting PatientID is encountered?
Thank you.
BR