Need information about HL7 in OpenMRS

9 views
Skip to first unread message

Ujjwal Arora

unread,
Apr 5, 2014, 9:16:00 AM4/5/14
to d...@openmrs.org
Hello all

I am developing a custom module for OpenMRS which basically aims at :
-- receiving a xml file from a wireless device. 
-- the xml file will contain a HL7 record of a patient
-- Module will parse the record and insert the patient data into openmrs database
-- hence, a patient record is stored in omrs from a mobile device

Please help and suggest me how to go about it.

I know OMRS recognizes HL7. So, is there a provision of directly giving HL7 record to OpenMRS and it'll store into db.

Related wiki links welcome. 

Thanks

Grahame Grieve

unread,
Apr 5, 2014, 9:22:55 AM4/5/14
to d...@openmrs.org, d...@openmrs.org
What kind of hl7? CDA, v2 (what message type)?

Grahame
--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.

Ujjwal Arora

unread,
Apr 5, 2014, 9:43:45 AM4/5/14
to d...@openmrs.org
I am open to any type. Which is best supported by omrs ?

Suranga Kasthurirathne

unread,
Apr 5, 2014, 11:22:20 AM4/5/14
to d...@openmrs.org

Hi Ujjwal,

I'm happy to say that the OpenMRS core does support hl7 v2 at this point. Have you seen this page ?
Unfortunately, we are still to develop any support for CDA.

Best regards,
Suranga



On Sat, Apr 5, 2014 at 9:43 AM, Ujjwal Arora <liferock...@gmail.com> wrote:
I am open to any type. Which is best supported by omrs ?

--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.



--
Best Regards,

Suranga

Ujjwal Arora

unread,
Apr 5, 2014, 3:55:45 PM4/5/14
to d...@openmrs.org
Hi Suranga

As omrs supports hl7 v2 very well, its a great help to me.
 
Yes....I am referring to that link only. ADTA28 will work for me. I have few questions if you could answer that :

There's a URL in REST web service resource - POST /ws/rest/v1/hl7 
- how to pass hl7 message here, a string or what ?
- will it automatically create new patient and insert its observations, visits, encounters etc in omrs db ?

Also, can a java applet pass this URL to REST module running in omrs on same pc? If yes, how ?

Ujjwal Arora

unread,
Apr 5, 2014, 5:39:18 PM4/5/14
to d...@openmrs.org
One more question, 

If we talk about HL7 message types, ADT-A28 creates a new patient and ORU-R01 adds a observation. 

If I directly transmit ORU-R01, will it also create a new patient because observation could only added for an existing patient ?

Joaquín Blaya

unread,
Apr 6, 2014, 9:14:27 PM4/6/14
to d...@openmrs.org
Ujjwal, Is there a specific mobile system that you're planning on working with?  The reason being that it you're going to develop a module like this, it might be worthwhile to talk to a few of the popular mobile system (CommCare, ODK) to see about this working wiht them as well. 

Also, do you see this being in both directions or only from the mobile device into OpenMRS?


Joaquín
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


--

Darius Jazayeri

unread,
Apr 7, 2014, 12:34:36 AM4/7/14
to dev
To answer a specific question, no, the ORU-R01 will not create the patient. It will only add encounter+obs for existing patients. An ADT-A28 message will not have any ill effects if the patient already exists, so if your mobile system doesn't know if the patient exists yet on the server, it can always send an A28 and then an R01.

-Darius

Ujjwal Arora

unread,
Apr 7, 2014, 1:47:49 AM4/7/14
to d...@openmrs.org

Joaquin, thanks for the reply. I am using Android SDK but it doesn't matter in my case because the file is first received by a java applet running on same system as openmrs, from mobile via PCSC reader. The openmrs module takes it from java applet.

I have a doubt that if I directly transmit ORU-R01 hl7 message, will it also create a new patient because observation could only added for an existing patient ?

Ujjwal Arora

unread,
Apr 7, 2014, 1:54:04 AM4/7/14
to d...@openmrs.org

Thanks Darius, that clears my doubt ☺

Reply all
Reply to author
Forward
0 new messages