Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.cpp @ 2128:9329ba17a069
Possibility to DELETE "dicom-as-json" attachments to reconstruct them
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 15:13:16 +0100 |
parents | 03b065778fc3 |
children | bb199bccdc45 |
comparison
equal
deleted
inserted
replaced
2127:bfa92c9328d7 | 2128:9329ba17a069 |
---|---|
1144 | 1144 |
1145 std::string s = GetDicomSpecificCharacterSet(encoding); | 1145 std::string s = GetDicomSpecificCharacterSet(encoding); |
1146 ReplacePlainString(DICOM_TAG_SPECIFIC_CHARACTER_SET, s); | 1146 ReplacePlainString(DICOM_TAG_SPECIFIC_CHARACTER_SET, s); |
1147 } | 1147 } |
1148 | 1148 |
1149 void ParsedDicomFile::ToJson(Json::Value& target, | 1149 void ParsedDicomFile::DatasetToJson(Json::Value& target, |
1150 DicomToJsonFormat format, | 1150 DicomToJsonFormat format, |
1151 DicomToJsonFlags flags, | 1151 DicomToJsonFlags flags, |
1152 unsigned int maxStringLength) | 1152 unsigned int maxStringLength) |
1153 { | 1153 { |
1154 FromDcmtkBridge::ExtractDicomAsJson(target, *pimpl_->file_->getDataset(), | 1154 FromDcmtkBridge::ExtractDicomAsJson(target, *pimpl_->file_->getDataset(), |
1155 format, flags, maxStringLength); | 1155 format, flags, maxStringLength); |
1156 } | |
1157 | |
1158 | |
1159 void ParsedDicomFile::DatasetToJson(Json::Value& target) | |
1160 { | |
1161 FromDcmtkBridge::ExtractDicomAsJson(target, *pimpl_->file_->getDataset()); | |
1156 } | 1162 } |
1157 | 1163 |
1158 | 1164 |
1159 void ParsedDicomFile::HeaderToJson(Json::Value& target, | 1165 void ParsedDicomFile::HeaderToJson(Json::Value& target, |
1160 DicomToJsonFormat format) | 1166 DicomToJsonFormat format) |