Announcement

Collapse
No announcement yet.

User Defined Z segments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • User Defined Z segments

    Hello:

    I have an HL7 transaction with User Defined Z Segments that needs to pasted in the transformer template. When I paste the transaction in to the transformer template it does not recognize the user defined segments, therefore not posting them on the HL7 tree. It does not return a syntax error either. I need to know where in Mirth are the segment definitions being created and if new Z segment definitions can be added.


    Thank you,
    Charlie

  • #2
    Re: User Defined Z segments

    Can you paste a sample message? We added support for Z-messages in 1.3.3, but Z-segments should have already been supported.

    -Chris
    Chris Lang

    Comment


    • #3
      Re: User Defined Z segments

      Hello Chris:

      Here is the a sample of the HL7 transaction. Up to the PV1 Mirth will recognize and marked them in the blueish color, the Z segments do not get recognized nor get listed in the HL7 transaction tree. The Z segments are designed to have specific clinical information that is contained within a normal OBX or OBR segments, nurse intervention (med admin) and patient med intake information.

      MSH|^~\&|ADG|HIS|||200701220156||ADT^A08||P|2.3|||
      EVN|A04|200501060156|||
      PID|||XX3050||RUGRAT^BABY^GIRL||20050106|F|SAMANTH A|W||||||S||718567||XX9050
      PV1||O|N57^5703^02|4|||319419^CRAWFORD^JENNIFER^JE FFRIES|||PGL||||N||||A||023|||||||||||||||||||A04| |10|||200501060144
      ZD1||98.9|160||||X^^^^|^^^X^|^X^|X^^^|X^^^^|120^80 |X^^^^^|X^^^||||||||||||||||||||||||||
      ZNI||TEST^VALUE|XXX||||X^^|^X^|^X^|X^^|X^^^|120^80 |X^^|X^^^||||||||||||||||||||||||||
      ZOI||TEST|100||||X^^|^X^|^X^|X^|X^^|120^80|X^^|X^^ ^||||||||||||||||||||||||||

      I also checked to see if the segment delimiters where the cause but there is a carriage return after each segment.

      Thanks for your help.
      Charlie

      Comment


      • #4
        Re: User Defined Z segments

        Charlie,

        Mirth does parse the message, however the syntax highlighter can not recognize custom segment names. If you put that into the template area and bring up the HL7 tree, you will find the Z segments:

        in msg['ADT_A01.PROCEDURE']

        All of your Z segments are there and you can access them from a transformer by doing:
        msg['ADT_A01.PROCEDURE']['ZD1']['ZD1.2']

        Like any other segment.

        (They are in the procedure segment because HAPI defines Z segments for ADTA08 as part of a procedure.

        Hope this helps!
        -Chris
        Chris Lang

        Comment


        • #5
          Re: User Defined Z segments

          Thank you Chris,


          I applied you instructions and it works, this allows me to use custom segment names. As I mentioned before sometimes our solution is designed or configured to collect data that is not normally processed on the standard HL7 segments.

          Thank you again,
          Charlie

          Comment


          • #6
            Re: User Defined Z segments

            Excellent, glad it is working Charlie!
            -Chris
            Chris Lang

            Comment

            Working...
            X