Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomStructuredReport.cpp @ 2144:9d77c935f2c3 dicom-sr
handling of pending referenced instances when loading DICOM-SR
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Aug 2024 17:24:00 +0200 |
parents | 1a02e758eaf4 |
children | f68f9a8d0d63 |
comparison
equal
deleted
inserted
replaced
2143:83efb01991c5 | 2144:9d77c935f2c3 |
---|---|
605 { | 605 { |
606 assert(structures_[index] != NULL); | 606 assert(structures_[index] != NULL); |
607 return *structures_[index]; | 607 return *structures_[index]; |
608 } | 608 } |
609 } | 609 } |
610 } | 610 |
611 | |
612 bool DicomStructuredReport::IsReferencedInstance(const std::string& studyInstanceUid, | |
613 const std::string& seriesInstanceUid, | |
614 const std::string& sopInstanceUid) const | |
615 { | |
616 std::map<std::string, ReferencedInstance*>::const_iterator found = instancesInformation_.find(sopInstanceUid); | |
617 | |
618 if (found == instancesInformation_.end()) | |
619 { | |
620 return false; | |
621 } | |
622 else | |
623 { | |
624 assert(found->second != NULL); | |
625 return (found->second->GetStudyInstanceUid() == studyInstanceUid && | |
626 found->second->GetSeriesInstanceUid() == seriesInstanceUid); | |
627 } | |
628 } | |
629 } |