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
Cell: +33 6 85 97 01 26
http://www.ihe-europe.net follow us on linkedIn
On 26 juin 2014, at 11:48, Sara Fatima wrote:
> Hi,
>
> I am working on sending the HL7 message to PAM simulator, 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 as helper code. I have committed the code to Git hub,
> for you to have a look.
> Here is where I am creating the HL7 message, and this is the code 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
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
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
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel