error handling for quotes in hl7 messages

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf error handling for quotes in hl7 messages

  • Creator
    Topic
  • #48388
    Nancy McDaniel
    Participant

      I just had a problem where we received a couple of HL7 messages with double quotes in the NTE segments.  This caused my tcl proc (which does some filtering) to fail.

      Any recommendations on the best way to 1) remove the double quotes and/or 2) put in some error handling to handle these types of errors.

      thanks,

      Nancy

    Viewing 0 reply threads
    • Author
      Replies
      • #58489
        Abe Rastkar
        Participant

          Nancy,

          The quote characters may be needed by the receiving application. If So, then you can insert an escape character before each double quote.

          For example,

              regsub -all — “”” $str {\”} newstr

          Where str is you message or segment.

          Abe Rastkar

          UMO Health Care

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