Hi,

the segment delimiter \r is lost somewhere when transmitting the web service
(or replaced by a space). As a result ...P|2.5\rMSA|A... becomes ...P|2.5
MSA|A...  and HAPI complains about not knowing the HL7 version "2.5 MSA".
Make sure the segment delimiters are preserved.

regards
Christian


depeche007 wrote:
> 
> Hi,
>  I am using HAPI- 1.0 with soapUI pro 3.5.1. Once we receive the hl7
> string message from the web service and try to parse this message using
> PipeParser, we get the following error message:
> 
> Error message:
> "HL7Exception: ca.uhn.hl7v2.HL7Exception: Can't process message of version
> '2.5 MSA' - version not recognized".
> 
> The message sent by we service as a string is:
> 
> "MSH|^~\\&||3f0203ca-7da1-4c92-8dcf-743a5579673f|GENERIC|3f0203ca-7da1-4c92-8dcf-743a5579673f|20100609105613||RSP^K22^RSP_K21|20100609105613230588|P|2.5\rMSA|AE|11312110\rERR||QPD^1^3^1^1|204^Unknown
> Key Identifier^HL7 Table 0357|E\rQAK|QRY11312110|AE|IHE PDQ Query\rQPD|IHE
> PDQ Query|QRY11312110|@PID.5.2^Jack [email protected]^ [email protected]^10173"
> 
> The message processed through groovy script at soapUI pro 3.5.1 is:
> 
> "MSH|^~\&||3f0203ca-7da1-4c92-8dcf-743a5579673f|GENERIC|3f0203ca-7da1-4c92-8dcf-743a5579673f|20100609105613||RSP^K22^RSP_K21|20100609105613230588|P|2.5
> MSA|AE|11312110 ERR||QPD^1^3^1^1|204^Unknown Key Identifier^HL7 Table
> 0357|E QAK|QRY11312110|AE|IHE PDQ Query QPD|IHE PDQ
> Query|QRY11312110|@PID.5.2^Jack [email protected]^ [email protected]^10173"
>      
>                                                             OR
> 
> "MSH|^~\&||3f0203ca-7da1-4c92-8dcf-743a5579673f|GENERIC|3f0203ca-7da1-4c92-8dcf-743a5579673f|20100609105613||RSP^K22^RSP_K21|20100609105613230588|P|2.5
> MSA|AE|11312110 ERR||QPD^1^3^1^1|204^Unknown Key Identifier^HL7 Table
> 0357|E QAK|QRY11312110|AE|IHE PDQ Query QPD|IHE PDQ
> Query|QRY11312110|@PID.5.2^Jack [email protected]^ [email protected]^10173"
> 
> Code at groovy level:
>    Parser p = new PipeParser();
>    Message hapiMsg = p.parse(demographicsQueryResult); //
> demographicsQueryResult is the above        //                                
>                                             
> //message received from web service.
>    hapiMsg = p.encode(hapiMsg);
>    Terser terser = new Terser(hapiMsg);
> 
> Is this issue related to segment delimiter or something else?
> 
> Thanks & Regards,
>   depeche
> 

-- 
View this message in context: 
http://old.nabble.com/segment-delimiter-issue%3A-HL7Exception%3A-ca.uhn.hl7v2.HL7Exception%3A-Can%27t-process-message-of-version-%272.5-MSA%27-tp28826341p28830624.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to