Integration of Orthanc to PHP based web application (Electronic Health Record system)

1,171 views
Skip to first unread message

Krish

unread,
May 18, 2015, 1:49:16 PM5/18/15
to orthan...@googlegroups.com
We, a group of doctors from a developing country attempting to develop integrated EHR system (with PACS and LIMS) to be used in our tirtiary care hospital, where all of our services are free of charge!.

We are piloting an EHR web application based on PHP, Javasctipt, and Ajax with MySQL and now we are getting little bit familiar with those technologies, but NOT with C++ or other technologies with Orthanc.

We manged to setup Orthanc server(s) in our LAN and send dicom images from our radiology department modalities (MRI, CT and CR) to it and retrieve those without much hassle (through HTTP and DICOM)

Now we need to incorporate the Orthanc web viewer  to our patient based EHR system as follows;

In our EHR web application, first we need to select the patient which redirect to patient dashboard, where there is a button calld medical Images. when clicked, we need to display all the STUDIES related to that patient (in our Orthanc server) in chronological order, and then browse SERIES and INSTANCES as in your defalt web viever/series viewer.

In our php web application, PatientID is a session variable and so we need to display all dicom studies related to that PatientID only (may be in a iframe or div). So what is the way (simple URL like http://10.10.10.44:8042/app/explorer.html#patient?patientid=123456789) to display all the studies related and then browse and view series and instances?

We know that this is 99% possible and its a simple thing for a IT guy, but with our poor knowledge of IT domain, we are stuck there. Sorry to post such a long description for a silly question. Any help with example code or link will be highly appreciated.

Thank you. 

Emsy Chan

unread,
May 19, 2015, 3:02:50 AM5/19/15
to orthan...@googlegroups.com
Hi!

Dammit, I'm also a doctor, not an IT guy / gal... :)

Here's a file to access the lookup function.

Usage:
- configure $orthanc to your server
- call lookup.php?patientID=123456 (e.g. patientID as 123456)

This returns the studies for that patient. You'll probably need to do a few more file_get_contents if you want to list the studies in your EHR instead of listing the studies in Orthanc Explorer.

Regards,
Emsy
lookup.php
Message has been deleted

Sébastien Jodogne

unread,
May 19, 2015, 12:32:55 PM5/19/15
to orthan...@googlegroups.com, wij...@gmail.com
Hello,

To this end, you might want to use a Lua script to filter out DELETE/POST requests:

Sébastien-


Also now we need to disable Patients, Upload, Delete and Anonymize ability in Orthanc explorer, as it is not needed and harmful to our EMR, Any clue/suggestion?

Krish

unread,
May 19, 2015, 12:34:31 PM5/19/15
to orthan...@googlegroups.com
Thank you Emsy,

Finally just now we manged to get what we want, after few struggles, the worst was;
- Had to enable cURL in PHP: http://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php-xampp

Thank you very much once again..

Krish

unread,
May 19, 2015, 1:23:06 PM5/19/15
to orthan...@googlegroups.com
Thank you very much Sebastien for the quick response and the wonderful piece of this DICOM app as FOSS. You saved a lot of time we had to spent with DCM4CHEE and Weasis. Please keep it up the good work. Cheers..!

Sébastien Jodogne

unread,
May 19, 2015, 1:39:15 PM5/19/15
to orthan...@googlegroups.com, wij...@gmail.com
Glad to hear that Orthanc is useful to you :)

mr nijai

unread,
Feb 15, 2017, 12:43:44 AM2/15/17
to Orthanc Users
Hi,
Soory for digging an old thread,
Just started testing orthanc.
Have followed the direction to enable curl and use lookup.php.
but still cannot find the patient.am i missing something?

mr nijai

unread,
Feb 15, 2017, 1:52:28 AM2/15/17
to Orthanc Users
Sorry,
It seems the error is on my part.
I've enable authentication but have not set the oprion on the curl call.
Sorry for the misunderstanding


On Tuesday, 19 May 2015 01:49:16 UTC+8, Krish wrote:

omar hassan

unread,
Apr 11, 2018, 1:14:15 PM4/11/18
to Orthanc Users
Hi
i have the same problem that you solved it befor 
can you tell me what you did to integrate orthanc with php 
Reply all
Reply to author
Forward
0 new messages