Hi,

 

When I have OBX.2 as ST or FT, the OBX.5 gets messed up after I parse and
re-encode the message.

I've raised a bug for that: https://sourceforge.net/tracker/?func=detail
<https://sourceforge.net/tracker/?func=detail&aid=2791424&group_id=38899&ati
d=423835> &aid=2791424&group_id=38899&atid=423835

I was wondering if someone has overcome this problem.

 

This is the code I wrote.

{{{

StringWriter message = new StringWriter();

PrintWriter out = new PrintWriter(message);

 

out.println("MSH|^~\\&|OADD||DADD||20090511130702||ORU^R01|91310000023|P|2.3
||||");

out.println("PID|||2278111^^^6||CSCXBOB^LAB^||19480205|M|^^||^^,
^^|||||||||");

out.println("PV1||O|CSC^||||2499^LAST^^FIRST I
MD|^||||||||||OP|35848990||||||||||||||||||||6|||||200904130000|200904140000
|");

out.println("ORC|RE|59761179|M3541|||||||||2499^LAST^^FIRST I MD||||^|");

out.println("OBR|1|59761179|M3541^OADD|CR^Cell
study|||200905110800||||||||^|2499^LAST^^FIRST I
MD||||||||H|F||^^^^^R|^||||^^|^^||");

out.println("OBX|1|ST|CR^Cell
study|1|(note)||||||F|||200905111306|MMC^Tacoma General
H|7^LASTNAME^FIRSTNAME|");

out.println("OBX|2|ST|CR^Cell study|1|WBCS:  Adequate in number & normal in
appearance||||||F|||200905111306|MMC^Tacoma General
H|7^LASTNAME^FIRSTNAME|");

out.println("OBX|3|ST|CR^Cell study|1|RBC:   Occasional \"target\"
cells||||||F|||200905111306|MMC^Tacoma General H|7^LASTNAME^FIRSTNAME|");

 

Parser p = new GenericParser();

Message hMsg = p.parse(message.toString());

 

System.out.println(p.encode(hMsg));

}}}

 

I can see that the text "WBCS:  Adequate in number & normal in appearance"
appears as "WBCS:  Adequate in number & normal in appearance ^ normal in
appearance" on SYSOUT.

While I wrote this about ampersands, it holds good for carets too.

 

Thanks.

 

Regards,

rahul

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to