[HAPI-devel] Escaping Encoded characters

2015-12-16 Thread Davies, Brian
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

Re: [HAPI-devel] Escaping Encoded characters

2015-12-16 Thread Ian Vowles
In HL7 v2.5 the MSH-9 segment is a datatype with 3 fields. HAPI supports this, so it gives you getters and setters for all the components in the datatype. To set up what you want you can do the following: mshSegment.getMsh9_MessageType().getMessageCode().getMsg1_MessageCode().setValue("ORR"); msh