Mercurial > hg > orthanc
comparison Core/DicomNetworking/DicomFindAnswers.cpp @ 3276:9b0e67161600
More tolerance wrt. invalid DICOM files that must be returned by Orthanc C-FIND SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 21 Feb 2019 10:21:12 +0100 |
parents | b6e7714c3fe6 |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3275:5cd4c672d63c | 3276:9b0e67161600 |
---|---|
117 } | 117 } |
118 | 118 |
119 | 119 |
120 void DicomFindAnswers::Add(const DicomMap& map) | 120 void DicomFindAnswers::Add(const DicomMap& map) |
121 { | 121 { |
122 AddAnswerInternal(new ParsedDicomFile(map, encoding_)); | 122 // We use the permissive mode to be tolerant wrt. invalid DICOM |
123 // files that contain some tags with out-of-range values (such | |
124 // tags are removed from the answers) | |
125 AddAnswerInternal(new ParsedDicomFile(map, encoding_, true /* permissive */)); | |
123 } | 126 } |
124 | 127 |
125 | 128 |
126 void DicomFindAnswers::Add(ParsedDicomFile& dicom) | 129 void DicomFindAnswers::Add(ParsedDicomFile& dicom) |
127 { | 130 { |