First Post – Help with nulling some obx5 fields.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf First Post – Help with nulling some obx5 fields.

  • Creator
    Topic
  • #51884
    Michael Bowman
    Participant

      Hello everyone. I am fairly new to the HL7/Cloverleaf world. I am learning as much as I can as quickly as I can, and have run in to an issue.

      A vendor we have is requiring us to remove a “footer” in a result message. The solution I would like to implement is to null the OBX5 field of 7 OBX segments every time a certain string is encountered in the OBX5.

      Example:

      OBX|176|TX|||      DATA REVIEWED: VITAL SIGNS, NURSES NOTES. REPEAT EXAM:. COUNSELING: I     ||||||F

      OBX|177|TX|||                                                                                ||||||F

      OBX|178|TX|||*** CHART COMPLETE ***                                                          ||||||F

      OBX|179|TX|||PAGE 3 OF 4                                                                     ||||||F

      OBX|180|TX|||NAME:JOHN DOE                                                          ||||||F

      OBX|181|TX|||ACCOUNT#:123456789                                                             ||||||F

      OBX|182|TX|||MRN:123456789                                                                   ||||||F

      OBX|183|TX|||DOB:01/04/1952                                                                  ||||||F

      OBX|184|TX|||ARRIVAL DATE:07/20/2010                                                         ||||||F

      OBX|185|TX|||                                                                                ||||||F

      OBX|186|TX|||                                                                                ||||||F

      OBX|187|TX|||PHYSICIAN DOCUMENTATION                                                         ||||||F

      I would like to null OBX178 – OBX184 and have the result:

      OBX|176|TX|||      DATA REVIEWED: VITAL SIGNS, NURSES NOTES. REPEAT EXAM:. COUNSELING: I     ||||||F

      OBX|177|TX|||                                                                                ||||||F

      OBX|178|TX|||                                                         ||||||F

      OBX|179|TX|||                                                         ||||||F

      OBX|180|TX|||                                                         ||||||F

      OBX|181|TX|||                                                         ||||||F

      OBX|182|TX|||                                                         ||||||F

      OBX|183|TX|||                                                         ||||||F

      OBX|184|TX|||                                                         ||||||F

      OBX|185|TX|||                                                         ||||||F

      OBX|186|TX|||                                                         ||||||F

      OBX|187|TX|||PHYSICIAN DOCUMENTATION                                                         ||||||F

      ANY HELP IS MUCH APPRECIATED!!!!!

    Viewing 1 reply thread
    • Author
      Replies
      • #72132
        Michael Bowman
        Participant

          OK, I think I figured something out that works. The footer occurs every 62 lines, so I just put an xlate that nulls the line within an iteration if the OBX1 is >= 54 and <= 60, etc for the other footers and embedded it in nested iff statements. Not the most elegant solution, but it seems to work.

        • #72133
          Chris Williams
          Participant

            Alternatively you could set a temp variable, once you reach the end of the part you want, that would act as a flag. Check the value of that flag to determine whether to pass on any OBX segments. Hard-coding something like a value expected in OBX-2 can cause problems down the road if the number of OBX segments should change.

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