Functions Orthanc

Hello,

Studying on self-routing reached a lua script that performs the function “SendToModality” I wonder if there are other functions available and where to find them, it would be in the source code? or there is some documentation of the functions?

Thank you.
Marcelo

Hello,

Please check the Orthanc Book:
https://orthanc.chu.ulg.ac.be/book/users/lua.html

In Lua scripts, besides “SendToModality()”, you have full access to the REST API of Orthanc:
https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml?gid=2132414044&single=true

So, you can for instance trigger a POST call against URI “/modalities/{dicom}/store” with function “RestApiPost()”:
https://orthanc.chu.ulg.ac.be/book/users/rest.html#sending-one-resource

HTH,
Sébastien-

Hello Sébastien perfect!

Orthanc is a great job and sample documentation.

Thank you!