Same orthanc study id after Institution Name tag modification?

Greetings,

I’m using the following curl command to modify the Institution Name tag of a study

curl -X POST “http://192.168.1.100:8042/studies/654d2f20-47002ec8-e723b45d-7664cc1e-22098df3/modify”
-H “Content-Type: application/json”
-u admin:orthanc123
-d ‘{
“Replace”: {
“InstitutionName”: “Veterinary Clinic ASSIGNED”
},
“Keep”: [
“StudyInstanceUID”,
“SeriesInstanceUID”,
“SOPInstanceUID”
],
“Force”: true,
“Asynchronous”: false
}’

The command executes fine with the following response:

{
“Description”: “REST API”,
“FailedInstancesCount”: 0,
“ID”: “654d2f20-47002ec8-e723b45d-7664cc1e-22098df3”,
“InstancesCount”: 1,
“IsAnonymization”: false,
“ParentResources”: [
“654d2f20-47002ec8-e723b45d-7664cc1e-22098df3”
],
“Path”: “/studies/654d2f20-47002ec8-e723b45d-7664cc1e-22098df3”,
“PatientID”: “1b684b83-f4c9d050-d02fc6ef-b497f87a-67d1c1b2”,
“Type”: “Study”
}

I read in the documentation that when a study is modified Orthanc keeps the original and generates a new study with the changes with a new Orthanc ID but In this case it seems the changes are being made to the original study ie the Orthanc id is the same ie 654d2f20-47002ec8-e723b45d-7664cc1e-22098df3 and there is still only one study of the patient in Orthanc(with the modified InstitutionName)

Am I missing something?

Hi,

Yes, this: Orthanc identifiers — Orthanc Book documentation

I read the article you posted but I’m still confused

Since you keep the same DICOM IDs, the Orthanc ID does not change.

1 Like

So basically if we keep the same DICOM IDs the changes are in essence made to the original study…correct?

Hello,

Check out the OverwriteInstances configuration option of Orthanc and make some tests to figure out by yourself.

Regards,
Sébastien-