I have a python script that changes a set of tags for an existing study. That isn’t needed that often, but there are cases when I would want to do that. e.g. Patient is a “John Doe” or is unable to be registered in the RIS / MWL before performing the study. In such cases, I’d like to edit a number of dicom tags for the study, updated from a MWL.
That all works, but the issue I am having is with modifying the PatientID. Kind of wondering also what “True” should be. “True”, “true”, True or true, or any of those. If so, what other options are there if I want to change the PatientID ?
The JSON below is an example body for the command in /studies/id/modify. That all works if I omit the PatientID, but I get a “HttpError” : “Internal Server Error”, “HttpStatus” : 500, “Message” error when I try to change the PatientID. I take it the Force option does not work for that ? I am using the latest Osimis Docker images / mainline.
{
“Force”: True,
“Replace”: {
“OperatorsName”: “1:SDS”,
“AccessionNumber”: “DEVACC00000069”,
“AdditionalPatientHistory”: “Daily QC”,
“AdmittingDiagnosesDescription”: “”,
“Allergies”: “”,
“ImageComments”: “ImageComments”,
“MedicalAlerts”: “”,
“Modality”: “MR”,
“Occupation”: “”,
“PatientAddress”: “^^^^^US”,
“PatientBirthDate”: “19571116”,
“PatientComments”: “”,
“PatientID”: “test”,
“PatientName”: “S^S^”,
“PatientSex”: “M”,
“PatientTelecomInformation”: “-^WPN^PH^”,
“PatientWeight”: “”,
“ReferringPhysicianIdentificationSequence”: [{
“InstitutionName”: “xx”,
“PersonIdentificationCodeSequence”: [{
“CodeMeaning”: “Local Code”,
“CodeValue”: “0003”,
“CodingSchemeDesignator”: “L”
}],
“PersonTelephoneNumbers”: “xx”
}],
“StudyDescription”: “MRI BRAIN / BRAIN STEM - WITHOUT CONTRAST”
}
}