How to use Escape character in hl7 message

前端 未结 2 727
萌比男神i
萌比男神i 2021-01-20 00:23

I am using ca.uhn.hl7v2.util.Terser to create hl7 message. For one of the hl7 fields I need to set the following value \"\\home\\one\\two\".

HL7 message type is M

2条回答
  •  耶瑟儿~
    2021-01-20 00:38

    As @Amit Joshi mentioned, this has to do with HL7 escaping. You may want to try to change your escape character to one other than a backslash that is unlikely to appear in your message as your client appears to not be following it anyway.

    This would be the 3rd character in MSH-2.

提交回复
热议问题