OBR fields to OBX segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf OBR fields to OBX segment

  • Creator
    Topic
  • #52911
    Mark Brown
    Participant

      I’m not sure how to tackle a vendor’s request. They’re wanting the ordering physician’s number and name copied from OBR:16 to a new OBX segment in this format:

      OBX:3.1 – doc number

      OBX:3.2 – doc number

      OBX:5    – doc name

      The vendor says they can’t retrieve from OBR:16 which is why they want it in an OBX segement.  The ORU messages they are recieving can have a varying number of OBX segments.  So I’m not really sure how I can do this.

      Any suggestions?

    Viewing 1 reply thread
    • Author
      Replies
      • #75899
        David Dillard
        Participant

          I would create a translate to iterate over the OBR segments, save the provider information for each OBR then loop over all the OBX segment under the OBR and set the fields using the variables.

          iterate over the OBR segments

               save the provider information into variables

               iterate over the OBX segments for each OBR

                     Set the OBX fields with the variables

        • #75900
          Michael Vork
          Participant

            David,

            You might ask your vendor was the point is of supporting HL7 only partially? All or nothing would be better.

            Greetings,

            Micha

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