Mercurial > hg > orthanc
comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 2005:9e021b2b348b
Support of optional tags for counting resources in C-Find SCU
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Jun 2016 12:36:21 +0200 |
parents | 9b61701c35f2 |
children | 6301bbcbcaed |
comparison
equal
deleted
inserted
replaced
2004:3c76fac299ac | 2005:9e021b2b348b |
---|---|
434 | 434 |
435 default: | 435 default: |
436 throw OrthancException(ErrorCode_InternalError); | 436 throw OrthancException(ErrorCode_InternalError); |
437 } | 437 } |
438 | 438 |
439 if (level == ResourceType_Study) | 439 switch (level) |
440 { | 440 { |
441 allowedTags.insert(DICOM_TAG_MODALITIES_IN_STUDY); | 441 case ResourceType_Patient: |
442 allowedTags.insert(DICOM_TAG_NUMBER_OF_PATIENT_RELATED_STUDIES); | |
443 allowedTags.insert(DICOM_TAG_NUMBER_OF_PATIENT_RELATED_SERIES); | |
444 allowedTags.insert(DICOM_TAG_NUMBER_OF_PATIENT_RELATED_INSTANCES); | |
445 break; | |
446 | |
447 case ResourceType_Study: | |
448 allowedTags.insert(DICOM_TAG_MODALITIES_IN_STUDY); | |
449 allowedTags.insert(DICOM_TAG_NUMBER_OF_STUDY_RELATED_SERIES); | |
450 allowedTags.insert(DICOM_TAG_NUMBER_OF_STUDY_RELATED_INSTANCES); | |
451 allowedTags.insert(DICOM_TAG_SOP_CLASSES_IN_STUDY); | |
452 break; | |
453 | |
454 case ResourceType_Series: | |
455 allowedTags.insert(DICOM_TAG_NUMBER_OF_SERIES_RELATED_INSTANCES); | |
456 break; | |
457 | |
458 default: | |
459 break; | |
442 } | 460 } |
443 | 461 |
444 allowedTags.insert(DICOM_TAG_SPECIFIC_CHARACTER_SET); | 462 allowedTags.insert(DICOM_TAG_SPECIFIC_CHARACTER_SET); |
445 | 463 |
446 DicomArray query(fields); | 464 DicomArray query(fields); |