Hi James,

I am using a MFN_M01 message, my code is something like this:

MFN_M01 mf = new MFN_M01();
mf.getMSH().getFieldSeparator().setValue("|");
mf.getMSH().getEncodingCharacters().setValue("^~\\&");
...
mf.addNonstandardSegment("ZBN");
ZBN zbn = (ZBN) mf.get("ZBN");
zbn.getLocation().setValue("xxxxxxxxxxxxxxx");

I am getting the following exception though:
java.lang.ClassCastException: ca.uhn.hl7v2.model.GenericSegment

my ZBN class extends AbstractSegment (later I tried to change it to extends
GenericSegment but both failed)

I am using v23.

Thanks,
-- 
View this message in context: 
http://www.nabble.com/Non-standard-segments-of-a-message-are-not-shown-tp9054289p18592514.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to