AETitle of Origin

Hello, using Orthanc + Java, it was possible to make a router, where it simply maintains a list of pending studies for sending and every “x” minute it calls “/ modality / {modalityname} / store” to send to another Orthanc server.

The problem is that the mode sends the tag “0002,0016” with the source AET, but after that study is sent to Orthanc this tag no longer exists.

I need to know the AET of the modality to associate this study with the institution, but I do not have this tag, I started to use the “InstitutionName” tag to solve, but I do not know if it is the best way, moreover, using AET would be much more simple.

All help will be very welcome.

Thank you

Dear Marcelo,

I think you are looking for the “RemoteAET” metadata. Check out this post:
https://groups.google.com/d/msg/orthanc-users/4iQiEZo3XAs/CGDIWEvrAQAJ

HTH,
Sébastien-

Beautiful Sébastien,

Just a question, if I download the instances to the file system, then I delete the instances of Orthanc and import from the file system to Orthanc, this information “RemoteAET” will no longer be available, correct?

Is there any chance of recovery? Or do I need to resend the source to Orthanc again?

Thank you so much!

Hello,

Indeed, metadata is lost once the instances are deleted from Orthanc.

You could store such an information for backup in a remote database, by monitoring the arrival of new instances into Orthanc (either through the REST API, or through a Lua script).

HTH,
Sébastien-

Perfect Sébastien!

Very enlightening, in which case I really need to make two requests to Orthanc, right? I have the UID of the study in hand and I need to know the AET that sent the study, so I do the following:

“/studies/xxx-xxx-xxx/instances”

“/instances/yyy-yyy-yyy/metadata/RemoteAET”

At this point I get a string named AET.

Is there a more direct way or is the path correct?

Thank you!

Hello,

This is indeed the correct way of accessing this information.

Sébastien-