changeset 905:db62aa60a9b3

private tags
author Alain Mazy <am@osimis.io>
date Fri, 06 Jan 2023 16:03:36 +0100
parents a4a02709b188
children 6057a8beee07
files Sphinx/source/images/PrivateTagsInCreateDicom.png Sphinx/source/users/advanced-rest.rst
diffstat 2 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
Binary file Sphinx/source/images/PrivateTagsInCreateDicom.png has changed
--- a/Sphinx/source/users/advanced-rest.rst	Thu Dec 22 14:38:53 2022 +0100
+++ b/Sphinx/source/users/advanced-rest.rst	Fri Jan 06 16:03:36 2023 +0100
@@ -301,8 +301,8 @@
 
   {
     "Dictionary" : {
-      "0405,0010" : [ "LO", "Private data element", 1, 1, "RawDataStore" ],
-      "0405,1001" : [ "ST", "XML", 1, 1, "RawDataStore" ]
+      "0405,0010" : [ "LO", "PrivateCreatorForMyCompany", 1, 1, "My Company" ],   // reserve 0405,10xx for "MyCompany"
+      "0405,1001" : [ "ST", "MyPrivateXMLTag", 1, 1, "My Company" ]               // all tags from "MyCompany" must start with 0405,10xx 
     }
   }
 
@@ -311,16 +311,22 @@
 ``/tools/create-dicom``::
 
   {
-    "PrivateCreator" : "RawDataStore",
+    "PrivateCreator" : "My Company",                             // private creator here
     "Tags" :
     {
       "PatientName" : "Love^Sarah",
       "PatientID" : "7",
-      "0405,0010" : "RawDataStore",
-      "0405,1001" : "<xml><test>Testing</test></xml>"
+      "PrivateCreatorForMyCompany" : "My Company",               // and here !
+      "MyPrivateXMLTag" : "<xml><test>Testing</test></xml>"
     }
   }
 
+Which then gives this in Orthanc UI:
+
+.. image:: ../images/PrivateTagsInCreateDicom.png
+           :align: center
+           :width: 400px
+
 Rob Oakes provides more a `detailed explanation about how to use
 private tags with Orthanc
 <https://oak-tree.tech/blog/soandor-orthanc-private-headers>`__ on