Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomParsing/DicomModification.cpp @ 4696:dd6274412ff4
new configuration option "ExternalDictionaries" to load external DICOM dictionaries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Jun 2021 15:47:21 +0200 |
parents | 45bce660ce3a |
children | b51c08bd5c38 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/DicomModification.cpp Thu Jun 17 14:00:34 2021 +0200 +++ b/OrthancFramework/Sources/DicomParsing/DicomModification.cpp Thu Jun 17 15:47:21 2021 +0200 @@ -804,14 +804,16 @@ ValueRepresentation vr = FromDcmtkBridge::LookupValueRepresentation(*it); if (*it == DICOM_TAG_PATIENT_ID) { - if (vr != ValueRepresentation_LongString) + if (vr != ValueRepresentation_LongString && + vr != ValueRepresentation_NotSupported /* if no dictionary loaded */) { throw OrthancException(ErrorCode_InternalError); } } else if (*it == DICOM_TAG_PATIENT_NAME) { - if (vr != ValueRepresentation_PersonName) + if (vr != ValueRepresentation_PersonName && + vr != ValueRepresentation_NotSupported /* if no dictionary loaded */) { throw OrthancException(ErrorCode_InternalError); }