parse or replace any hl7 field

Clovertech Forums Read Only Archives Cloverleaf Tcl Library parse or replace any hl7 field

  • Creator
    Topic
  • #50386
    Lal Senanayake
    Participant

      Using this proc (lal_msg.tcl) will get or replace you the HL7 field/subfield value you need. This way we don’t need to split a message every time and write code to look up or replace a HL7 field/subfield value in a message.

      Lal Senanayake

      System Integration

      John Muir Health, Walnut Creek

    Viewing 4 reply threads
    • Author
      Replies
      • #65920

        Thanks for posting the script.

        -- Max Drown (Infor)

      • #65921
        Lawrence Staffieri
        Participant

          I am relatively new to both Cloverleaf and TCL so please bare with me 🙂

          How would I go about modifying this script to work with an XML file?

          or is there a better way to approach this with regards to translating an XML file into HL7 2.x?

          Thanks,

          Larry Staffieri

          Standing Stone Inc.

        • #65922
          Lal Senanayake
          Participant

            Hi Larry,

            These two procs only works for HL7 messages. I don’t think this will help you translating a XML file into HL7.

            I haven’t had to write code to translate XML into HL7. I think you will have to create a variant for the XML messages. Check on Clovertech and you might find some information about it.

            Thanks.

            Lal

          • #65923
            Mark Thompson
            Participant

              Larry,

              XML messages don’t have a variant like HL7.  You need to use the XML Configuration tool to compile a DTD or Schema that describes the XML message.  After your schema is compiled, you can configure a translate to use it for message input.  Since the message structures can be very different between XML and HL7, you may have lots of work to do in the translate.  We have done translations for XML to a couple other message types (VRL & X12) but not to HL7, although it shouldn’t be any different.

              - Mark Thompson
              HealthPartners

            • #65924
              Lawrence Staffieri
              Participant

                Thanks for the input 🙂

            Viewing 4 reply threads
            • The forum ‘Tcl Library’ is closed to new topics and replies.