comparison OrthancServer/ParsedDicomFile.cpp @ 1831:3ae2ff249675

"/instances/.../header" to get the meta information (header) of the DICOM instance
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Nov 2015 18:53:00 +0100
parents 4b6673e828f4
children b1291df2f780
comparison
equal deleted inserted replaced
1830:2921384cc352 1831:3ae2ff249675
1166 { 1166 {
1167 FromDcmtkBridge::ToJson(target, *pimpl_->file_->getDataset(), format, flags, maxStringLength); 1167 FromDcmtkBridge::ToJson(target, *pimpl_->file_->getDataset(), format, flags, maxStringLength);
1168 } 1168 }
1169 1169
1170 1170
1171 void ParsedDicomFile::HeaderToJson(Json::Value& target,
1172 DicomToJsonFormat format)
1173 {
1174 FromDcmtkBridge::ToJson(target, *pimpl_->file_->getMetaInfo(), format, DicomToJsonFlags_None, 0);
1175 }
1176
1177
1171 bool ParsedDicomFile::HasTag(const DicomTag& tag) const 1178 bool ParsedDicomFile::HasTag(const DicomTag& tag) const
1172 { 1179 {
1173 DcmTag key(tag.GetGroup(), tag.GetElement()); 1180 DcmTag key(tag.GetGroup(), tag.GetElement());
1174 return pimpl_->file_->getDataset()->tagExists(key); 1181 return pimpl_->file_->getDataset()->tagExists(key);
1175 } 1182 }