Sending RTF Encoded Text in an OBX-5

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Sending RTF Encoded Text in an OBX-5

  • Creator
    Topic
  • #50398
    Lawrence Staffieri
    Participant

    Our customer wants us to send them a progress note in RTF format.  The sample they provided shows that the data has the RTF markup in the message. It is passed in the OBX Segment.

    Has anyone else done this?

    If so, what are the Gotchas?  Is there anything I need to be aware of? or anything special I need to do to make this happen correctly?

    Thanks,

    Larry Staffieri

    Standing Stone Inc.

Viewing 2 reply threads
  • Author
    Replies
    • #65959
      Robert Kersemakers
      Participant

      Hi Larry,

      I never had to send RTF with HL7, but we receive RTF inside an ORU message from another system. One thing to take note of is to escape all HL7 special characters (|, ^, & etc) in the RTF-text. Or else your HL7 message isn’t valid when you include the RTF into OBX-5.

      And if images are included in the RTF, then your RTF can get very large.

      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

    • #65960
      Jim Kosloskey
      Participant

      Lawrence,

      One way to do this is to encode the RTF to base-64. Then there is no need to escape the MSH-2 and MSH-3 characters (the receiving system may not handle the escape mechanism) in the report.

      The OBX-2 field should also have the correct Data Type (if memory serves I think that is ED) and then the OBX-5 field needs to be formatted correctly and one of the components specifies the encoding technique as base-64.

      This is all clearly specified in the HL/7 documentation and should be followed.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #65961
      Lawrence Staffieri
      Participant

      Thank you for the reply.  We are going to implement the Base-64 encoding.

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,300
Replies
34,445
Topic Tags
288
Empty Topic Tags
10