- I upload a study from my local machine to Orthanc
- On my local machine, I change the patient’s DOB
- I upload again
- I call POST /studies/study-id/reconstruct
- I find that the DOB has successfully changed on Orthanc. (I have OverwriteInstances set to true.)
If I replace “DOB” in step 2 with “AccessionNumber”, the above does not work! I see no changes applied after step 4.
Why would this be?
Daniel Drucker
Hi Daniel,
I can’t reproduce your issue. Could you adapt my test script below in order to reproduce your issue ?
curl -X DELETE http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
curl https://demo.orthanc-server.com/instances/7c92ce8e-bbf67ed2-ffa3b8c1-a3b35d94-7ff3ae26/file > /tmp/source1.dcm
curl https://demo.orthanc-server.com/instances/e16accdd-561117f2-c5d26638-80a58c32-2cdd6dcc/file > /tmp/source2.dcm
curl http://localhost:8044/instances --data-binary @/tmp/source1.dcm
curl http://localhost:8044/instances --data-binary @/tmp/source2.dcm
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
→ PatientBirthDate is empty
→ AccessionNumber is “0”
cp /tmp/source1.dcm /tmp/modified1.dcm
cp /tmp/source2.dcm /tmp/modified2.dcm
dcmodify -i “PatientBirthDate=20010101” /tmp/modified1.dcm
dcmodify -i “PatientBirthDate=20010101” /tmp/modified2.dcm
curl http://localhost:8044/instances --data-binary @/tmp/modified1.dcm
curl http://localhost:8044/instances --data-binary @/tmp/modified2.dcm
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
→ PatientBirthDate is still empty
→ AccessionNumber is “0”
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5/reconstruct -d “”
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
→ PatientBirthDate is “20010101”
→ AccessionNumber is “0”
dcmodify -i “AccessionNumber=123” /tmp/modified1.dcm
dcmodify -i “AccessionNumber=123” /tmp/modified2.dcm
curl http://localhost:8044/instances --data-binary @/tmp/modified1.dcm
curl http://localhost:8044/instances --data-binary @/tmp/modified2.dcm
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5/reconstruct -d “”
curl http://localhost:8044/studies/0dff9280-2375f586-1297870c-4cbd6d1c-527e36e5
→ PatientBirthDate is “20010101”
→ AccessionNumber is “123”
Best regards,
Alain
Well, now I can’t either. I wonder if there was something very weird about the particular scans I was looking at - which is likely since the whole reason I wanted to change the AccessionNumber was that they were malformed!