Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomMap.cpp @ 681:3bdb5db8e839 query-retrieve
generalization of query/retrieve
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Jan 2014 17:40:45 +0100 |
parents | 08eca5d86aad |
children | 67e6400fca03 |
comparison
equal
deleted
inserted
replaced
679:28e4b3ec8aff | 681:3bdb5db8e839 |
---|---|
384 GetMainDicomTagsInternal(result, ResourceType_Patient); | 384 GetMainDicomTagsInternal(result, ResourceType_Patient); |
385 GetMainDicomTagsInternal(result, ResourceType_Study); | 385 GetMainDicomTagsInternal(result, ResourceType_Study); |
386 GetMainDicomTagsInternal(result, ResourceType_Series); | 386 GetMainDicomTagsInternal(result, ResourceType_Series); |
387 GetMainDicomTagsInternal(result, ResourceType_Instance); | 387 GetMainDicomTagsInternal(result, ResourceType_Instance); |
388 } | 388 } |
389 | |
390 | |
391 void DicomMap::ExtractMainDicomTagsForLevel(DicomMap& result, | |
392 ResourceType level) const | |
393 { | |
394 switch (level) | |
395 { | |
396 case ResourceType_Patient: | |
397 ExtractPatientInformation(result); | |
398 break; | |
399 | |
400 case ResourceType_Study: | |
401 ExtractStudyInformation(result); | |
402 break; | |
403 | |
404 case ResourceType_Series: | |
405 ExtractSeriesInformation(result); | |
406 break; | |
407 | |
408 case ResourceType_Instance: | |
409 ExtractInstanceInformation(result); | |
410 break; | |
411 | |
412 default: | |
413 throw OrthancException(ErrorCode_ParameterOutOfRange); | |
414 } | |
415 } | |
416 | |
389 } | 417 } |