Mercurial > hg > orthanc
comparison OrthancServer/OrthancFindRequestHandler.cpp @ 2955:bbfd95a0c429
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:59:23 +0100 |
parents | 4767d36679ed |
children | 7695a9c81099 |
comparison
equal
deleted
inserted
replaced
2954:d924f9bb61cc | 2955:bbfd95a0c429 |
---|---|
550 const DicomValue* levelTmp = filteredInput->TestAndGetValue(DICOM_TAG_QUERY_RETRIEVE_LEVEL); | 550 const DicomValue* levelTmp = filteredInput->TestAndGetValue(DICOM_TAG_QUERY_RETRIEVE_LEVEL); |
551 if (levelTmp == NULL || | 551 if (levelTmp == NULL || |
552 levelTmp->IsNull() || | 552 levelTmp->IsNull() || |
553 levelTmp->IsBinary()) | 553 levelTmp->IsBinary()) |
554 { | 554 { |
555 LOG(ERROR) << "C-FIND request without the tag 0008,0052 (QueryRetrieveLevel)"; | 555 throw OrthancException(ErrorCode_BadRequest, |
556 throw OrthancException(ErrorCode_BadRequest); | 556 "C-FIND request without the tag 0008,0052 (QueryRetrieveLevel)"); |
557 } | 557 } |
558 | 558 |
559 ResourceType level = StringToResourceType(levelTmp->GetContent().c_str()); | 559 ResourceType level = StringToResourceType(levelTmp->GetContent().c_str()); |
560 | 560 |
561 if (level != ResourceType_Patient && | 561 if (level != ResourceType_Patient && |