I am still trying to get an HL7 message into a patient record. I have spent a
week on this and do not want to give up now....I am a persistent type 8-)
Thanks to those who have generously offered help till now.
I am running 1.8.1-stable-with-WS-alpha
I now can get the message into the HL7 message queue, but when the
processHL7Task tries to process it I get the following in the log printed out :
Com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException:
Column 'encounter type' cannot be null.
Darius said that currently getting the encounter from the MSH segment is not
implemented (I am going to submit a ticket on that).
He suggested creating a form, and using that id
My msg is :
"data":"MSH|^~\\&|FORMENTRY|AMRS|HL7LISTENER|AMRS|20060809121931||ORU^R01|formentry20060809121931|P|2.5|2||||||||2^2^http://schema.openmrs.org/2006/FormEntry/formId^URI|||||\r
PID|||123^^^Old Identification
Number||jeff^marc^price||20011114|M|||20371^02^2400^724||||||724^Y||||||02|||11|20371|724^ESPA?A^N||N\r
PV1||O|1|1|1|1|2^Ima Doc
(2-6)|zzz|zzz|zzz||||||||||||||||||||||||||||||||||20060807|||||||V\r
ORC|RE||||||||20060807161605|1^Super User\r
OBR|1|||1238^MEDICAL RECORD OBSERVATIONS^99DCT\r
OBX|1|NM|5089^WEIGHT (KG)^99DCT||70|||||||||20060807
"}' | curl -i -X POST -H"Content-Type: application/json" -u admin:Admin123 -d@-
http://127.0.0.1:8081/openmrs-standalone/ws/rest/v1/hl7
The red text is what is called the Message Profile Identifier as defined by HL
http://www.interfaceware.com/hl7-standard/hl7-segment-MSH.html
The 4 subfields according the the HL7 wiki page are :
https://wiki.openmrs.org/display/docs/HL7#HL7-MSH%28MessageHeader%29Key%3A
field-name
value I used
Message Profile Identifier 2(the id
form I created)
Unique System ID
2(not sure what to set this to-used same as form id(2)
Namespace of assigning authority
http://schema.openmrs.org/2006/FormEntry/formId
Universal ID type
URI
Does anyone have any ideas...I'll even take bad ones....on what to do ?
Not sure if this is possible, but perhaps somebody could try exactly what I am
using (above3) and run a debugger on it to see why the error is occurring. It
is probably something silly I am doing but cannot figure it out.
Thank You !
Jeff Price
West Wireless Health Institute<http://www.westwirelesshealth.org/>
Principal Systems Enginner
[email protected]<mailto:[email protected]>
(858) 535-7000 / TEL
(858) 412-8639 / DIRECT
(858)-361-5751 / CELL
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]