Summary: | Modifying private tags with REST API changes VR from LO to UN | ||
---|---|---|---|
Product: | Orthanc | Reporter: | Sébastien Jodogne <s.jodogne> |
Component: | Orthanc Core | Assignee: | Sébastien Jodogne <s.jodogne> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | --- | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
2583496647-orthanc-tags.jpg
3173254069-radiologic-dump.jpg 3565065530-modified-rest-api-dump.jpg 2363588212-modified-system-dcmtk-dump.jpg radiologic-dic.json radiologic.dcm orthanc-trace-log.txt modified-system-dcmtk.dcm modified-rest-api.dcm |
Description
Sébastien Jodogne
2020-06-29 15:15:32 CEST
Created attachment 11 [details]
2583496647-orthanc-tags.jpg
Created attachment 12 [details]
3173254069-radiologic-dump.jpg
Created attachment 13 [details]
3565065530-modified-rest-api-dump.jpg
Created attachment 14 [details]
2363588212-modified-system-dcmtk-dump.jpg
Created attachment 27 [details]
radiologic-dic.json
Created attachment 28 [details]
radiologic.dcm
Created attachment 29 [details]
orthanc-trace-log.txt
Created attachment 30 [details]
modified-system-dcmtk.dcm
Created attachment 31 [details]
modified-rest-api.dcm
[BitBucket user: Sébastien Jodogne] [BitBucket date: 2019-05-06.13:24:29] An integration test is available to reproduce the issue: https://hg.orthanc-server.com/orthanc-tests/changeset/9929e4af2b7a85dbd8812ef5f8927463ca777c11 [BitBucket user: Sébastien Jodogne] [BitBucket date: 2020-02-25.20:44:16] Fix issue #140 (Modifying private tags with REST API changes VR from LO to UN) - DANGEROUS COMMIT → https://hg.orthanc-server.com/orthanc/changeset/4922bdd046dd [BitBucket user: Sébastien Jodogne] [BitBucket date: 2020-02-25.20:49:51] The trick is first to define the private tag in the configuration file of Orthanc: ``` { [...] "Dictionary": { "4321,1012" : ["LO","RadioButton3",1,1,"RadioLogic"] } } ``` Then, to provide the “PrivateCreator” argument \(introduced in forthcoming Orthanc 1.6.0\) while calling the REST API: `curl <http://ip-adress:port/instances/f1c8c9de-c1f0dd83-a1de5468-03def2fe-c24d3589/modify> -X POST -d ‘{"Replace":{"RadioButton3":"aaabbbccc"},”PrivateCreator”:”RadioLogic”}’ > modified-rest-api.dcm` |