Connect PACS Server with Android App

Hi,

I am trying to build an android app to view dicom images. My intention is to connect my app with the PACS server through a REST API. Is that possible to set the local and remote settings through REST API ? Can anyone help me to resolve this?

Hello,

What do you mean by “Is that possible to set the local and remote settings through REST API?”?

Sébastien-

Hi,

What I am trying to do is to communicate with the Orthanc server from my app. I need all the configuration ( setting AETitle, Port and IP) and communication to be done through REST APIs.

At this point this is new functionality, but I suppose you can build an api that exposes settings and changes the json file.

Chico Venancio

You can use the REST API of Orthanc to dynamically create/update modalities.

Check out the related integration test “test_update_modalities”:
https://bitbucket.org/sjodogne/orthanc-tests/src/90e5331ddee905afbe4657e7547c8e10bdb2349d/Tests/Tests.py?at=default&fileviewer=file-view-default#Tests.py-1246

HTH,
Sébastien-

Did not know about that, Sébastien,

But I figured he meant the Orthanc instance’s own AETitle, Port and IP.

Thanks for the clarification, Chico!

Indeed, setting Orthanc’s own AET and port cannot be done through REST API (note that setting the IP address makes no sense, as this is a system-level setting).

You would need a plugin that would overwrite the configuration file (check out the function “OrthancPluginGetConfigurationPath()” from Orthanc SDK [1]), then POST on “/tools/reset” to restart Orthanc.

Sébastien-

[1] http://sdk.orthanc-server.com/group__Toolbox.html#gac5330e46fe3b5ceddd7fb9d910244c96

Thanks for your replies.

But before trying these I need a clarification. Inorder to communicate with Orthanc server from my app, do my app act as either another server (ie. after configuring the local & remote settings, then use C-ECHO, C-FIND and C-MOVE queries for the communication) or a client which simply uses the REST APIs of Orthanc.

The second possibility is the best one: Your application would communicate with the Orthanc REST API (through some HTTP client), and would take advantage of the DICOM support provided by Orthanc to avoid re-implementing it.

Sébastien-

Thank You…

Hi,

Is that possible to go with the second option, if am trying to communicate with another PACS Server, not Orthanc? Means will the viewer app be vendor neutral ?

Check out DICOMweb:
http://book.orthanc-server.com/plugins/dicomweb.html