Hi, I want to customise a button that will send the dicom file to an ordinary backend server when it is clicked.
I have tried writing a lua script but it does not show the button on OrthancExplorer 2.
Much appreciated if I can be pointed to some direction and resources
Hi,
You can not extend OrthancExplorer2 with a lua script.
You may implement a new API route in python. This route can, e.g, take the Study id in argument, download the study and send it to your node server.
Then, you can add a custom button in Orthanc Explorer 2 that would call your new route.
Hope this helps,
Alain
Heyy this definitely helped! Got a few questions for this
- Is the API route in python necessary if I can get the dcm file of the study?
- I have made the changes below, but it seems that the button is not appearing on the frontend. Are there any other additional steps that should be done?
"CustomButtons": {
"study": [
{
"HttpMethod": "POST",
"Id": "send-study-to-server",
"Tooltip": "Send study files to another server",
"Icon": "bi bi-grid",
"Url": "http://localhost:8000/studies",
"Payload": {
"files": "http://localhost:8042/dicom-web/studies/{StudyInstanceUid}"
},
"Refresh": true
}],
"instance": [],
"series": [
]
}
No
Are you sure to use the latest version ?
Yepp I downloaded the MacOS 25.1.1 package from
Unless I am supposed to download it somewhere else?
Sorry am quite new to this and am still finding my way
Hi @rtan059
Well, it should be 25.2.0. There has been an issue with the latest build for MacOS.
While we fix it, you can download it from here.
Sorry for the inconvenience,
Alain
THank you so much @alainmazy