Menu

#201 Issue Parsing Field with ^

2.2
open
nobody
None
9
2013-11-11
2013-10-23
No

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

Discussion

  • Thomas Gregory

    Thomas Gregory - 2013-10-23

    I've tried changing the string to:

    00121048905&ME&12.5

    and using parse(string)

    None of my attempts have worked.

    Thanks,
    Tom

     
  • Christian Ohr

    Christian Ohr - 2013-11-11

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.