comparison Sphinx/source/users/advanced-rest.rst @ 905:db62aa60a9b3

private tags
author Alain Mazy <am@osimis.io>
date Fri, 06 Jan 2023 16:03:36 +0100
parents f72b2dd172da
children 6057a8beee07
comparison
equal deleted inserted replaced
904:a4a02709b188 905:db62aa60a9b3
299 ``xxxx,0010`` tag must be defined to register the private creator, 299 ``xxxx,0010`` tag must be defined to register the private creator,
300 where ``xxxx`` is the private group of interest. Here is a sample:: 300 where ``xxxx`` is the private group of interest. Here is a sample::
301 301
302 { 302 {
303 "Dictionary" : { 303 "Dictionary" : {
304 "0405,0010" : [ "LO", "Private data element", 1, 1, "RawDataStore" ], 304 "0405,0010" : [ "LO", "PrivateCreatorForMyCompany", 1, 1, "My Company" ], // reserve 0405,10xx for "MyCompany"
305 "0405,1001" : [ "ST", "XML", 1, 1, "RawDataStore" ] 305 "0405,1001" : [ "ST", "MyPrivateXMLTag", 1, 1, "My Company" ] // all tags from "MyCompany" must start with 0405,10xx
306 } 306 }
307 } 307 }
308 308
309 Once Orthanc is started using this configuration file, it is possible 309 Once Orthanc is started using this configuration file, it is possible
310 to create a DICOM instance using the following POST body on 310 to create a DICOM instance using the following POST body on
311 ``/tools/create-dicom``:: 311 ``/tools/create-dicom``::
312 312
313 { 313 {
314 "PrivateCreator" : "RawDataStore", 314 "PrivateCreator" : "My Company", // private creator here
315 "Tags" : 315 "Tags" :
316 { 316 {
317 "PatientName" : "Love^Sarah", 317 "PatientName" : "Love^Sarah",
318 "PatientID" : "7", 318 "PatientID" : "7",
319 "0405,0010" : "RawDataStore", 319 "PrivateCreatorForMyCompany" : "My Company", // and here !
320 "0405,1001" : "<xml><test>Testing</test></xml>" 320 "MyPrivateXMLTag" : "<xml><test>Testing</test></xml>"
321 } 321 }
322 } 322 }
323
324 Which then gives this in Orthanc UI:
325
326 .. image:: ../images/PrivateTagsInCreateDicom.png
327 :align: center
328 :width: 400px
323 329
324 Rob Oakes provides more a `detailed explanation about how to use 330 Rob Oakes provides more a `detailed explanation about how to use
325 private tags with Orthanc 331 private tags with Orthanc
326 <https://oak-tree.tech/blog/soandor-orthanc-private-headers>`__ on 332 <https://oak-tree.tech/blog/soandor-orthanc-private-headers>`__ on
327 Oak-Tree's homepage. 333 Oak-Tree's homepage.