Mercurial > hg > orthanc
changeset 544:a482948c1fd6 dicom-rt
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Sep 2013 14:19:14 +0200 |
parents | c8347eef225b |
children | b82292ba2083 |
files | OrthancServer/RadiotherapyRestApi.cpp |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/RadiotherapyRestApi.cpp Wed Sep 04 13:46:08 2013 +0200 +++ b/OrthancServer/RadiotherapyRestApi.cpp Wed Sep 04 14:19:14 2013 +0200 @@ -163,14 +163,16 @@ return false; } - // Check that the "ReferencedStudySequence" is the same as the parent study. - if (!content.isMember(REFERENCED_STUDY_SEQUENCE) || - content[REFERENCED_STUDY_SEQUENCE]["Value"].size() != 1 || - !content[REFERENCED_STUDY_SEQUENCE]["Value"][0].isMember(REFERENCED_SOP_INSTANCE_UID) || - content[REFERENCED_STUDY_SEQUENCE]["Value"][0][REFERENCED_SOP_INSTANCE_UID]["Value"].asString() != - study["MainDicomTags"]["StudyInstanceUID"].asString()) + // Check that the "ReferencedStudySequence" (if any) is the same as the parent study. + if (content.isMember(REFERENCED_STUDY_SEQUENCE)) { - return false; + if (content[REFERENCED_STUDY_SEQUENCE]["Value"].size() != 1 || + !content[REFERENCED_STUDY_SEQUENCE]["Value"][0].isMember(REFERENCED_SOP_INSTANCE_UID) || + content[REFERENCED_STUDY_SEQUENCE]["Value"][0][REFERENCED_SOP_INSTANCE_UID]["Value"].asString() != + study["MainDicomTags"]["StudyInstanceUID"].asString()) + { + return false; + } } // Lookup for the frame of reference. Orthanc does not support