comparison 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
comparison
equal deleted inserted replaced
1720:88b74d8512be 1721:3bcb01028107
363 default: 363 default:
364 throw OrthancException(ErrorCode_ParameterOutOfRange); 364 throw OrthancException(ErrorCode_ParameterOutOfRange);
365 } 365 }
366 } 366 }
367 367
368
369 DicomTag GetIdentifierTag(ResourceType level)
370 {
371 switch (level)
372 {
373 case ResourceType_Patient:
374 return DICOM_TAG_PATIENT_ID;
375
376 case ResourceType_Study:
377 return DICOM_TAG_STUDY_INSTANCE_UID;
378
379 case ResourceType_Series:
380 return DICOM_TAG_SERIES_INSTANCE_UID;
381
382 case ResourceType_Instance:
383 return DICOM_TAG_SOP_INSTANCE_UID;
384
385 default:
386 throw OrthancException(ErrorCode_ParameterOutOfRange);
387 }
388 }
368 } 389 }