I want to be able to escaped the special encoding characters by using \S\ or \R\ but this doesn't seem to work for me.
I also tried the code snippet below but it seems that using the quick start init method creates multiple repetitions of the message type, for example: ORR_O02 orr002=new ORR_O02(); MSH mshSegment = orr002.getMSH(); orr002.initQuickstart("ORR", "002", "P"); results in the message below with the message type repeated which is not what I want: MSH|^~\&|CDB||MCK||20010925202704||ORR^002^ORR_O02|1301|P|2.5 Instead I only want MSH|^~\&|CDB||MCK||20010925202704||ORR^002 |1301|P|2.5 I tried setting the message code like so: mshSegment.getMsh9_MessageType().getMessageCode().setValue("ORR\\S\\002"); but this produces MSH - MSH|^~\&|CDB||MCK||20010925202704||ORR\E\S\E\002|||2.5 It's not clear how to accomplish escaping encoding characters. How does one do that, since the above does not work? For example, I want to escaped the tilde in the message below, can this be done and how? I hoped \R\ would work but it didn't. MSA|PD|879-0999-1|Text1~Text2~Text3
------------------------------------------------------------------------------
_______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel