I have been having great luck with the terser (using hapi-0.5.1.jar), until
I noticed it isn't finding ANY fields in the IN1 segment. My HL7 messages
are v2.2.
Here's a sanitized sample message:
MSH|^~\&|ADM||||200803300001||ADT^A08|51425407|P|2.2|||AL|NE
EVN|A08|200803300001
PID|1|XXX9999999|X9999999||XXXXXXX^XXXXXXXX^XXXXXX^^^|XXXXXXXX|99999999|F|^^
^^^|X|999 X XXXXXXX XXXX
XXXXXX^^XXXXXXXXXX^XX^99999||(999)999-9999|(999)999-9999||X||X99999999999|99
9-99-9999||
NK1|1|XXXXXXXXXXX^XXXXXXXX^^^^|FR^FRIEND|999 X XXXXXXX XXXX
XXXXXX^^XXXXXXXXXX^XX^99999|(999)999-9999||NOK
NK1|2|AXXXXXXXXXX^XXXXXXXX^^^^|FR^FRIEND|999 X XXXXXXX XXXX
XXXXXX^^XXXXXXXXXX^XX^99999|(999)999-9999||NOT
NK1|3|XXX XXX||99 XXXXXXXXXX
XXXXX^^XXXXXXXXXX^XX^99999||(999)999-9999|XXX||||||XXXXX XXXXX
XXXXXXXXXX|||||||||||||||||||||PT
PV1|1|P|ED1^^|||||||||||||||ER||SP|||||||||||||||||||AMC||PRE|||999999999999
||||||
PV2|||XXX XXXX,XXXXXX XXXX,XXXX
AL1|1|DA^^^XXXXX|XXXXX^XXXXX^XXXXX|XX|XXXXX|99999999
GT1|1||HXXXXXX^XXXXXXXX^XXXXXX||999 X XXXXXXX XXXX
XXXXXX^^XXXXXXXXXX^XX^99999|(999)999-9999|||||XX|999-99-9999||||XXXXXXX||||N
E|
IN1|1|SP||SELF PAY|||||||XXX
XXX|||||XXXXXXX^XXXXXXXX^XXXXXX^^^|SP|||||||||||||||||||||||||XX^XXXXXXXX
XXXX XXXX|||
UB2|||||||
I'm using this syntax:
get("/IN1(0)-4-1");
This syntax is working fine for all the other segments in a typical message
like the one above, but for the IN1, it returns null no matter which field I
ask for. For the example here, I'd expect it to return "SELF PAY."
The Javadoc for the Terser class is all I have found that describes the
terser syntax, and I'm clearly not doing it right! Pointers?
Many thanks,
-- Peter
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel