comparison OrthancServer/Sources/Database/Compatibility/GenericFind.cpp @ 5672:e300f22a46f0 find-refactoring

implemented computed tags
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 06 Jul 2024 14:24:45 +0200
parents bd1352bd9d82
children 74f3aab95886
comparison
equal deleted inserted replaced
5671:b4c97c51f9db 5672:e300f22a46f0
495 std::list<std::string> values; 495 std::list<std::string> values;
496 transaction_.GetChildrenMetadata(values, *it2, *it); 496 transaction_.GetChildrenMetadata(values, *it2, *it);
497 497
498 for (std::list<std::string>::const_iterator it3 = values.begin(); it3 != values.end(); ++it3) 498 for (std::list<std::string>::const_iterator it3 = values.begin(); it3 != values.end(); ++it3)
499 { 499 {
500 // TODO-FIND - Inject this value in the response 500 resource->AddChildrenMetadataValue(childrenLevel, *it, *it3);
501 printf("[%s]\n", it3->c_str());
502 } 501 }
503 } 502 }
504 } 503 }
505 504
506 const std::set<DicomTag>& mainDicomTags = request.GetChildrenRetrieveSpecification(childrenLevel).GetMainDicomTags(); 505 const std::set<DicomTag>& mainDicomTags = request.GetChildrenRetrieveSpecification(childrenLevel).GetMainDicomTags();
528 for (std::set<DicomTag>::const_iterator it2 = mainDicomTags.begin(); it2 != mainDicomTags.end(); ++it2) 527 for (std::set<DicomTag>::const_iterator it2 = mainDicomTags.begin(); it2 != mainDicomTags.end(); ++it2)
529 { 528 {
530 std::string value; 529 std::string value;
531 if (m.LookupStringValue(value, *it2, false /* no binary allowed */)) 530 if (m.LookupStringValue(value, *it2, false /* no binary allowed */))
532 { 531 {
533 // TODO-FIND - Inject this value in the response 532 resource->AddChildrenMainDicomTagValue(childrenLevel, *it2, value);
534 printf("<%s>\n", value.c_str());
535 } 533 }
536 } 534 }
537 } 535 }
538 } 536 }
539 537