Update Patient ID and OverwriteInstances

Hi everyone,

I’m running Orthanc v1.11.3 in a docker environment with OverwriteInstances set to true

I’m testing the following workflow

  1. Push study to Orthanc with Patient ID 11111 and Accession 2222
  2. Modify the Patient ID in PACS from Patient ID 11111 to Patient ID 12345 and re-push to Orthanc
  3. Orthanc now has 2 studies available, one under Patient ID 11111 and the other under Patient ID 12345 (both studies have the exact same SUID etc, the only difference being the Patient ID)

Is it possible to have Orthanc overwrite the original study from Step #1 with the new Patient ID instead of it creating a new patient record?

Thank you in advance

Cheers

Hi Johnny,

No, it is not possible out of the box. When your PACS resends the study with the new PatientID, Orthanc does not realize that there are the same instances because their Orthanc ID is different (because the orthanc ID of an instance is built from PatientID, StudyInstanceUID, SeriesInstanceUID and SOPInstanceUID (reference).

Note that you may write your own cleanup code in lua or python when you detect that a study is being resent with another Patient ID.

Best regards,

Alain.