How to put private tags as ExtraMainDICOMTags fields in headers?

Hi everyone,

I’m working on the project where

  1. we have data to store in private tags
  2. we need these private tags to be supported in Orthanc
  3. we want these private tags to be indexed
  4. we need those private tags to appear in API response

As a solution it should be possible to put ExtraMainDICOMTag fields in headers. I’ve added “ExtraMainDicomTags”:{…} as instructed in the book, but those private tags are not shown in Orthanc.

I’ve tried to find other solutions, but with no luck so far.
Note: I’ve added standard tags to ExtraMainDICOMTags and they appeared in Orthanc successfully.
Is there a way to do this for private tags?

I would appreciate any advice/input on this.

Hi,

It’s not perfect but it seems there is a way to make it work somehow.

In the config, I have declared private tags this way (note the 0010 here):

    "Dictionary": {
      "0013,0010" : [ "IS", "CTPPrivate data element", 1, 1, "CTP"]
  }

Then, the ExtraMainDicomTags (note the 1010 here because it assumes the CTP Private group is ‘10’ which is true if CTP is the only one to use the private tag 0013,0010 in the DICOM file you are importing)

    "ExtraMainDicomTags": {
      "Instance": [
        "Rows",
        "Columns",
       ...
        "0013,1010"
      ],

And then, here is what I get from Orthanc when calling http://localhost:8043/instances/29a62c28-5033e3ce-4b80ffe2-081ed5be-9f9b7bc5?full

{
   ...
   "MainDicomTags" : {
     ...
      "0013,1010" : {
         "Name" : "Unknown Tag & Data",
         "Type" : "String",
         "Value" : "NSCLC Radiogenomics"
      },
     ...
   },
   ...
}

HTH,

Alain

1 Like