Mercurial > hg > orthanc
diff OrthancServer/ServerEnumerations.cpp @ 1721:3bcb01028107 db-changes
removed another flavor of ServerIndex::LookupIdentifier
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 20 Oct 2015 10:39:21 +0200 |
parents | d6a93e12b1c1 |
children | 7e0b5e413c7c |
line wrap: on
line diff
--- a/OrthancServer/ServerEnumerations.cpp Tue Oct 20 10:24:10 2015 +0200 +++ b/OrthancServer/ServerEnumerations.cpp Tue Oct 20 10:39:21 2015 +0200 @@ -365,4 +365,25 @@ } } + + DicomTag GetIdentifierTag(ResourceType level) + { + switch (level) + { + case ResourceType_Patient: + return DICOM_TAG_PATIENT_ID; + + case ResourceType_Study: + return DICOM_TAG_STUDY_INSTANCE_UID; + + case ResourceType_Series: + return DICOM_TAG_SERIES_INSTANCE_UID; + + case ResourceType_Instance: + return DICOM_TAG_SOP_INSTANCE_UID; + + default: + throw OrthancException(ErrorCode_ParameterOutOfRange); + } + } }