easy(?) question re HL7 2.3

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf easy(?) question re HL7 2.3

  • Creator
    Topic
  • #52224
    Doug Stelley
    Participant

      I am getting back into HL7 and Cloverleaf after a few years doing a different project.

      I have 2.3 ADT_A31 files.

      In the PID 10 (   0(0).PID(0).#10(0)     )

      field on the inbound file is a normal text field. It is as long as needed.

      I need to change that using a table to something different.

      example: “Enrolled” becomes “Active”

      BUT

      when I test it the PID10 only becomes 1 character in length.

      In the translater I have tried using a table, a cope with a constant, and I get the same result. What am I missing?

    Viewing 1 reply thread
    • Author
      Replies
      • #73471
        Jim Kosloskey
        Participant

          Doug,

          Well PID-10 is Race. That is where one would expect to find the Patient’s Race. Are you sure it is PID-10 you want to work with?

          If so, then the default variant (or even your variant if you made one but did not change the field) has a length of 1 for the PID-10 field.

          On inbound, Cloverleaf does not restrict the length of the field but on outbound that is a different matter. If the field length in the variant is not large enough truncation will occur. That is what you are experiencing.

          If you want PID-10 outbound to be longer (better make sure this is really the value the receiving system wants) then you can change the field length for PID-10 in your variant. If you do not have a variant, you can construct one easily and change the field length. This would be the variant for the outbound in this case, but since the inbound is also violating the length, I would change the inbound variant as well – you never know when the sending system might become a receiving system.

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

        • #73472
          Doug Stelley
          Participant

            Yep, its the race. The data coming in is populated with up to 25 or so characters. You got me going though. I found field 00113 was a length of 1. When I made it unlimited, it started working as needed.

            Thanks.

            I told you it was an easy one!

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