Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/Operations/ModifyInstanceOperation.cpp @ 5122:8638522eeda1
revert changeset df4a90a65af9 that removes features used elsewhere, and protect by Force the change of UIDs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 19 Dec 2022 15:46:33 +0100 |
parents | df4a90a65af9 |
children | 0ea402b4d901 |
comparison
equal
deleted
inserted
replaced
5121:77e20ce39d6f | 5122:8638522eeda1 |
---|---|
41 if (modification == NULL) | 41 if (modification == NULL) |
42 { | 42 { |
43 throw OrthancException(ErrorCode_NullPointer); | 43 throw OrthancException(ErrorCode_NullPointer); |
44 } | 44 } |
45 | 45 |
46 modification_->SetAllowManualIdentifiers(true); | |
47 | |
46 if (modification_->IsReplaced(DICOM_TAG_PATIENT_ID)) | 48 if (modification_->IsReplaced(DICOM_TAG_PATIENT_ID)) |
47 { | 49 { |
48 modification_->SetLevel(ResourceType_Patient); | 50 modification_->SetLevel(ResourceType_Patient); |
49 } | 51 } |
50 else if (modification_->IsReplaced(DICOM_TAG_STUDY_INSTANCE_UID)) | 52 else if (modification_->IsReplaced(DICOM_TAG_STUDY_INSTANCE_UID)) |