I’ve been reading through various threads on this form / Orthanc docs on the subject of private tags, but I am still unclear on basics… If anyone could answer my questions / point me to the right doc, etc… I’d appreciate it.
Q1)
Does Orthanc store any private tags under “Unknown Tag & Data” exposed via /simplified-tags REST API?
Q2)
My collaborator is planning to send us images to our Orthanc instance that contains various private tags. I need those private tags to pass through Orthanc and receive them via /simplified-tags REST API. Do I need to register those private tags somewhere in the Orthanc configuration files in order for them to appear on the JSON? If so, how can I do that?
but, through instances/:id/tags?simplify, you'll just get:
"Unknown Tag & Data" : null
However, you may access their value through instances/:id/content/8889,8889 and instances/:id/content/8889,8887
Q2)
My collaborator is planning to send us images to our Orthanc instance that contains various private tags. I need those private tags to pass through Orthanc and receive them via /simplified-tags REST API. Do I need to *register* those private tags somewhere in the Orthanc configuration files in order for them to appear on the JSON? If so, how can I do that?
I think you could do this only via a plugin by calling OrthancPluginRegisterDictionaryTag
My collaborator is planning to send us images to our Orthanc instance that contains various private tags. I need those private tags to pass through Orthanc and receive them via /simplified-tags REST API. Do I need to register those private tags somewhere in the Orthanc configuration files in order for them to appear on the JSON? If so, how can I do that?
I think you could do this only via a plugin by calling OrthancPluginRegisterDictionaryTag
I confirm, creating a plugin that calls “OrthancPluginRegisterDictionaryTag()” during its initialization is currently the only possibility. This function will be available in forthcoming 0.9.5 release.
Thanks for your replies! I tried to Google “OrthancPluginRegisterDictionaryTag” but I couldn’t find much information. I don’t know how to write an Orthanc plugin, but is there are sample code or such?
Ideally though… it would be nice if I can just add a list of private tags in the Orthanc configuration so that those tags won’t be converted to “Unknown Tag & Data”… Could such a feature added to future releases?
I’d like to help test it, but is there a git repo URL? (I see hg url though). If there is a tar ball for the src, I can plug that right into my Docker build file also…
Regarding Docker, you can find an official Dockerfile that compiles from the latest version of the mainline at the following location (we use GitHub in this context, for the integration with DockerHub): https://github.com/jodogne/OrthancDocker/tree/master/orthanc
We weren’t aware first that AcquisitionMatrix already existed in as a standard dicom dictionary that Orthanc was handling by default. Above configuration basically caused Orthanc to overwrite (when it’s exported via /simplified-tags API) the standard AcqusitionMatrix field with “null” value since the image didn’t contain value for “0051,100B” but was set to the same name. The fix was simple… we just had to rename our private tag to something like
Now, I think it will be nice if Orthanc would display some kind of a warning (or even an error) during the boot process to make sure that the Dictionary name doesn’t collide with already known field name.