Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.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 | 2b1520efa282 |
children | cadfe0a2a393 |
comparison
equal
deleted
inserted
replaced
2127:bfa92c9328d7 | 2128:9329ba17a069 |
---|---|
1953 | 1953 |
1954 dicom.reset(new ParsedDicomFile(content)); | 1954 dicom.reset(new ParsedDicomFile(content)); |
1955 } | 1955 } |
1956 | 1956 |
1957 Json::Value json; | 1957 Json::Value json; |
1958 dicom->ToJson(json, Plugins::Convert(p.format), | 1958 dicom->DatasetToJson(json, Plugins::Convert(p.format), |
1959 static_cast<DicomToJsonFlags>(p.flags), p.maxStringLength); | 1959 static_cast<DicomToJsonFlags>(p.flags), p.maxStringLength); |
1960 | 1960 |
1961 Json::FastWriter writer; | 1961 Json::FastWriter writer; |
1962 *p.result = CopyString(writer.write(json)); | 1962 *p.result = CopyString(writer.write(json)); |
1963 } | 1963 } |
1964 | 1964 |