Origin of Dicom ?

226 views
Skip to first unread message

Salim Kanoun

unread,
Jul 3, 2018, 4:00:25 AM7/3/18
to Orthanc Users
Hi there,

I have a simple question for which I didn't found a answer yet. 

Is there somewhere in Orthanc RestApis where the origin of the DICOM can be found ? 

I will try to make an autorouting app in Java using Orthanc APIs and one of the requested features is to make autorouting depending on the origin of the DICOM (in the DICOM comes from AET X send to AET Y).

The /change API do not deliver the origin of the event and I don't find this information in the orther study / series API.

The Origin AET of DICOM is it stored somewhere ? 

Best regards,

Salim

Bryan Dearlove

unread,
Jul 3, 2018, 4:28:43 PM7/3/18
to Orthanc Users
One option is on OnStoredInstance, take the origin and put it into a tag. (Thats what I do myself)

Luiz Eduardo Guida Valmont

unread,
Jul 3, 2018, 8:03:45 PM7/3/18
to Bryan Dearlove, Orthanc Users
I'm sorry I'm on my way home but I'd like to leave my U$0,02 on the table.

If you're interacting with Orthanc through C/C++ plugins you can obtain an instance's origin through the OrthancPluginGetInstanceOrigin function.


This is so as of 1.3.2, which is the code base I've been messing with.

Strictly through Rest API without plugins or Lua Scripts I don't know how.
Screenshot_20180703-205757.png

Sébastien Jodogne

unread,
Jul 12, 2018, 12:07:58 PM7/12/18
to Orthanc Users
Hi,

Information about the origin of the instances is stored as Metadata, which can be accessed using the REST API:

[
   "IndexInSeries",
   "ReceptionDate",
   "RemoteAET",
   "Origin",
   "TransferSyntax",
   "SopClassUid",
   "RemoteIP",
   "CalledAET"
]

The relevant metadata about the origin of an instance is:
  • "Origin": Whether the instance was received from the REST API, the DICOM protocol, some plugin or some Lua script.
  • "RemoteAET": The remote AET (for DICOM).
  • "RemoteIP" (new in Orthanc 1.4.0): The IP address of the remote server (for REST API and DICOM).
  • "CalledAET" (new in Orthanc 1.4.0): The called AET (for DICOM).
  • "HttpUsername" (new in Orthanc 1.4.0): The username that created the instance (for REST API).
HTH,
Sébastien-

Salim Kanoun

unread,
Jul 14, 2018, 5:25:48 AM7/14/18
to Orthanc Users
Thank you so much Sébastien !

Thiago Régis

unread,
Feb 22, 2019, 4:52:22 PM2/22/19
to Orthanc Users
This worked gracefully for me.

Additionally, to see the values of these properties, you must add the querystring `?expand` at the end of the URL:


Thanks Sebastien!

Rana Asim Wajid

unread,
Apr 15, 2019, 4:37:48 PM4/15/19
to Orthanc Users
how can this be done?

Sébastien Jodogne

unread,
Apr 16, 2019, 1:56:44 AM4/16/19
to Orthanc Users
Reply all
Reply to author
Forward
0 new messages