I am trying to add some formatted data into a field. For example, I have:
dftMsg.getFINANCIAL(loop).getFT1().getNDCCode().getIdentifier().setValue(bill.getNdcString());
The string = 00121048905^ME^12.5
Unfortunately, when the string is generated, it comes out:
FT1|4|||20131021022700||CG|J8499|DIPHENHYDRAMI NE LIQUID 5ML=ML (2 ZEROS)||12.5||||||||E|780.60~708.0~708.9~698.9|1000^MANAGER^NURSE|||||J8499||||00121048905\S\ME\S\12.5
Is there a way that I can force the ^ to remain instead of having HAPI replace them with \S\?
Thanks,
Tom
I've tried changing the string to:
00121048905&ME&12.5
and using parse(string)
None of my attempts have worked.
Thanks,
Tom
Not sure what you are trying to achieve here. ^ and & are encoding characters and setting them in a string "as is" would violate HL7 serialization rules, so HAPI escapes them.