HL7 to XML (State Immunization Registry)

Clovertech Forums Cloverleaf HL7 to XML (State Immunization Registry)

Tagged: 

  • Creator
    Topic
  • #115043
    Jordan Matos
    Participant

      Hi all,

      I’m attemping to take an HL7 message from our EMR and populate an XML transaction to send to our state immunization registry.  They want us to use a web-service to PUT the xml to them.

       

      Our team previously worked on this  and we have an xlate that is HL7 to XML.

      The issue is that we need to copy the entire HL7 message to one of the elements.  Basically, they want the entire HL7 message as a string in this element.

      Is there a way to do this through the Xlate GUI?

      Is there a better way we can be doing this?

    Viewing 4 reply threads
    • Author
      Replies
      • #115045
        James Nelson
        Participant

          I’ve done something similar where I use a tcl proc in the pre-xlate stack to save the message to the USERDATA metadata and then read it back in the Xlate.

        • #115046
          Jordan Matos
          Participant

            Hmm, I’ll have to check this out.

             

            Do you have any snippets of code to share?  Really appreciate it.

          • #115049
            Anonymous

              I have never created a translation to XML, but it sounds like an FRL to XML translation might work. Just one field in the FRL to hold the entire HL7 message, and copy it to the payload field on the XML side?

            • #115053
              James Nelson
              Participant

                Here is the code I use to store the message in the metadata

                [code]

                keylget args MSGID mh
                #puts “========”
                #puts [msgget $mh]
                #puts “========”
                set USERDATA_kl [msgmetaget $mh USERDATA]
                keylset USERDATA_kl MESSAGE [msgget $mh]
                msgmetaset $mh USERDATA $USERDATA_kl

                [/code]

                Then in the Xlate I pull it out with:

                [code]

                set USERDATA_kl [xpmmetaget $xlateId USERDATA]
                keylget USERDATA_kl MESSAGE msg

                [/code]

                 

              • #115114
                Jordan Matos
                Participant

                  I ended up doing an Xlate (FRL to XML) and this worked.

                   

                  As was mentioned, one field is holding the entire HL7 message.  I then use TCL in the xlate to grab individual pieces of the message as needed.  However, I’m also able to just copy over the entire HL7 message as well because it’s all in one field.

              Viewing 4 reply threads
              • You must be logged in to reply to this topic.