Updating DICOM metadata via API

Hi,

It is possible to update the DICOM metadata of an existing study using the API. For example if we have a study that’s stored with acc # ABCD and we’d like to change it to WXYZ, is that possible via the API or update to the database?

Thanks

Hi,

There’s a whole chapter on this topic in Orthanc book.

Alain

Thank you for the pointer. I’ve tried using the APIs to modify studies and series, but it creates copies of the instances with different UIDs. Is there a way to do an in-place replacement of metadata values that maintains the UIDs?

Yes, with a payload like this:

{
    "Replace" : {
        "PatientName" : "Hello"
    },
    "Keep" : [ "SOPInstanceUID" , "SeriesInstanceUID", "StudyInstanceUID"],  # Don't generate new DICOM UIDs
    "Force" : true                  # Mandatory if keeping DICOM UIDs
}