From: Sara F. <sar...@gm...> - 2014-06-27 06:07:36
|
Hi Eric, Thank you for the guidelines. I followed your suggestions and added the missing fields in the HL7 message, this is the new message which is now created. MSH|^~\&|TestSendingSystem|OpenMRS|PAMSimulator|IHE|||ADT^A28^ADT_A05|20140627113226|P|2.5.1|123 > EVN||20140627113226|||||OpenMRS > > PID||62|~62||kapoor^ram|^India||||^BV|&address^^city^state^34566^country|||||^DIVORCED|||||||Hyd|||^India On sending this message to the PAMSimulator, I am getting below response, > > MSH|^~\&|PAMSimulator|IHE|TestSendingSystem|OpenMRS|20140627080226||ACK^A28^ACK|20140627080226|P|2.5 > MSA|AE|20140627113226 > ERR|||207|E||||Message structure is not the one expected, event A28 should > use ADT_A05 If the message is sent successfully then it should be found here <http://gazelle.ihe.net/PatientManager/patient/allPatients.seam?title=gazelle.simulator.pam.patientsReceivedByPDC&actor=PDC&cid=7786>. But here I cannot see the patient which I created, is it because of the Error field which is received as response? Thanks & Regards Sara Fatima On Thu, Jun 26, 2014 at 4:23 PM, Eric Poiseau <eri...@in...> wrote: > Sara Fatima > > You MSH is invalid. Please correct it as follow : > MSH.9.1 is missing > MSH4 is missing.... > EVN segment is missing .... > > MSH|^~\&|TestSendingSystem|*Put something here*|PAMSimulator|*here also* > |201406261200||ADT^A05^ADT_A05|20140626150246|P|2.5|123 > PID||71|||Barber^Steve|||||^ABVGJ|&13 Park > Street^^Ina^ANB^7899^INHJ|||||^MARRIED|||||||Hyd|||^Indian > > I have started to use the Gazelle HL7 validator to fix your message please > find the outcome at the following URL ; > > > http://gazelle.ihe.net/EVSClient/hl7v2Result.seam?&oid=1.3.6.1.4.1.12559.11.1.2.1.4.66000 > > Let us know if you have further questions > > Best regards > > > > Eric Poiseau > *IHE Europe Technical Project Manager* > Gazelle Project Leader > INRIA Rennes > Campus Universitaire de Beaulieu > F-35042 Rennes Cedex FRANCE > Tel: +33 2 99 84 74 58 <//+33299847458> > Cell: +33 6 85 97 01 26 <//%20+33685970126> > http://www.ihe-europe.net follow us on *linkedIn* > <http://www.linkedin.com/company/ihe-europe> > > > > On 26 juin 2014, at 11:48, Sara Fatima wrote: > > Hi, > > I am working on sending the HL7 message to PAM simulator > <http://gazelle.ihe.net/PatientManager/pdc/PDC.seam?cid=4835#>, but I am > facing the below error. I am unable to resolve this. > >> ca.uhn.hl7v2.model.DataTypeException: Failed validation rule for value >> "MSH": Matches the regular expression (\+|\-)?\d*\.?\d*: Segment: ERR Field >> #2 >> at >> ca.uhn.hl7v2.model.AbstractPrimitive.setValue(AbstractPrimitive.java:89) >> at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:408) >> at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:351) >> at ca.uhn.hl7v2.parser.PipeParser.parse(PipeParser.java:1119) > > > I am using this sample > <https://svn.code.sf.net/p/hl7api/code/branches/RELEASE_1_0/hapi-mvn/hapi-examples/src/main/java/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.java> as > helper code. I have committed the code to Git hub > <https://github.com/saramirza14/openmrs-module-IHEInteroperability/tree/hapi/api>, > for you to have a look. > Here is where > <https://github.com/saramirza14/openmrs-module-IHEInteroperability/blob/hapi/api/src/main/java/org/openmrs/module/IHEInteroperability/CreateMessageUtility.java> I > am creating the HL7 message, and this is the code > <https://github.com/saramirza14/openmrs-module-IHEInteroperability/blob/hapi/api/src/main/java/org/openmrs/module/IHEInteroperability/SendMessageUtility.java> which > I am using to send message to the PAMSimulator. > > This is the message which I am sending, > >> MSH|^~\&|TestSendingSystem||PAMSimulator||||^A05^ADT >> A05|20140626150246|P|2.5.1|123 >> PID||71|||Barber^Steve|||||^ABVGJ|&13 Park >> Street^^Ina^ANB^7899^INHJ|||||^MARRIED|||||||Hyd|||^Indian > > > Thanks & Regards > Sara Fatima > > > ------------------------------------------------------------------------------ > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > > http://p.sf.net/sfu/Bonitasoft_______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > |