Hl7 needs Carriage Returns. If you have Newline, that could cause this.

Sent from my iPhone

> On Jul 28, 2013, at 1:11 AM, Lisa <lisax...@googlemail.com> wrote:
> 
> Hi everyone,
> 
> I have a problem when using the terser to parse an ORU_R01 message. I receive 
> the message via an REST POSt request.
> It still works for the MSH segment, but starting with the PID segment, my 
> terser always returns null.
> 
> e.g.
> mContext =  new DefaultHapiContext();
> mParser = mContext.getPipeParser();
> mMessage = (ORU_R01) mParser.parse(msgRepresentation);
> Terser terser = new Terser(mMessage);
> String  result = 
> terser.get("/PATIENT_RESULT/ORU_R01_ORDER_OBSERVATION/ORU_R01_OBSERVATION/OBX-5");
> 
> The strange thing is, that if I read in the same message from a file with the 
> help of an Hl7InputStreamMessageIterator
> the terser works fine.
> Can somebody help me?
> I'm really desperate…
> 
> Thanks in advance
> Greets
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to