Auto-routing of DICOM images

252 views
Skip to first unread message

Gerson dias

unread,
Feb 7, 2022, 8:47:04 PM2/7/22
to Orthanc Users
Hello Friends, could someone give me a big help, I'm using this script

 "function OnStoredInstance ( instanceId , tags , metadata )
  Delete ( SendToModality ( instanceId , 'example' ))
end"
 to self-send images to another server, but it makes requests to send a tomography exam, for example, I would like a script that sends the exam in just one request

Luiz Eduardo Guida Valmont

unread,
Feb 7, 2022, 11:32:09 PM2/7/22
to Gerson dias, Orthanc Users
Hi, Gerson

You can perform a DICOM C-MOVE using the Rest API. Take a look at the following link:


From a Lua script you'll want to call the HttpPost function. Also you'll want to change the event your script is reacting to. Use OnStableStudy instead of OnStoredInstance. That way, once the study stabilized, orthanc will call your script, just once.

Finally, because your script deletes the image, you'll also want your script to call HTTP DELETE on the study that stabilized.


Hope this helps.

Best,
Luiz

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/8a9a2db3-5083-42df-be74-02255f0e376an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages