Best way to populate last OBX with disclaimer message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Best way to populate last OBX with disclaimer message

  • Creator
    Topic
  • #52537
    Sarah Brennan Thies
    Participant

      When a ‘cardiac cath’ result (report) is sent, we want to add a disclaimer to the last OBX that reads “more info see clinical notes”.

      There are identifers for the report in the ORC and OBX (see below)

      1(0).1(0).0(0).ORC(0).00216(0).[0].[0] “Placer Order Number” : >CC-11-0000029< or 1(0).1(0).0(0).ORC(0).00218(0).[1].[0] “Placer Group Number” : >CC CARDIAC CATH< or 1(0).1(0).1(0).OBX(0).00571(0).[1].[0] “Observation Identifier” : >CC CARDIAC CATH< I’m new so it’s unclear (to me) the best way to do this (i.e. lookup table or if statement) . . . . . Please advise. Thanks, Sarah

    Viewing 2 reply threads
    • Author
      Replies
      • #74617
        Jim Kosloskey
        Participant

          Sarah,

          Either one will work.

          The Table approach could involve less maintenance and present a more concise Xlate, however to know the values one would need to look in the Table.

          Even with a Table lookup, you will still likely need an IF Action so that you can take the appropriate steps.

          Do you know how you are going to detrmine where the last OBX is?

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

        • #74618
          Sarah Brennan Thies
          Participant

            Thanks for the quick response.  No, I’m uncertain how to configure what I want and how to determine the last OBX.  All tips welcomed 🙂

          • #74619
            Keith McLeod
            Participant

              If you do an iterate on the OBX segment, you can include a counter variable within the interate something like:

              iterate on segment

              math add 1 $%s9 –> $%s9

              Directly following you iterate you can copy your disclaimer

              copy ‘disclaimer text’ –> OBX(%s9).#5

              I did not use actual paths but should give you the idea.

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