Temporary Vars in a Contains comparison

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Temporary Vars in a Contains comparison

  • Creator
    Topic
  • #55285
    Jon Blanchard
    Participant

      CL 6.1.2 on AIX OS

      Xlating HL7 2.5.1 to HL7 2.3

      In an Xlate, if I set two temporary vars as follows:

      COPY Source 0(0).MSH(0).#9(0).[1] to Destination @triggerEvent

      COPY Source =A18A34A35A36A39 to Destination @level1

      then create an IF action to test if @level1 contains the value in @triggerEvent, using the condition

      Code:

      @level1  ct  @triggerEvent

      the test fails.  Can someone help me understand why?

      Thanks in advance.

      Migration Consultant
      Coffee Regional Medical Center
      Eastern Time Zone

    Viewing 5 reply threads
    • Author
      Replies
      • #84807
        Jim Kosloskey
        Participant

          Try flipping the 2 in the IF.

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

        • #84808
          Jim Kosloskey
          Participant

            Never mind I did not read properly.

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

          • #84809
            Jim Kosloskey
            Participant

              Now having put my good glasses on, Have you verified the contents of both Temp Variables?

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

            • #84810
              Jon Blanchard
              Participant

                <span style="color: #471A60]Here is the output from the Testing Engine”>

                Code:

                Please Wait ……
                Command Issued: hcixlttest -i -e ASCII -d 1 -f nl ama_epic_to_gemaclab_adt.xlt /cloverleaf/cis6.1/integrator/ama_adt_t/data/maclab_A08.nl
                Command output:

                XLT is loaded from local site, read /cloverleaf/cis6.1/integrator/master_t/formats/hl7/2.5.1/Epic_AIP_711700_IB/fields from master
                XLT is loaded from local site, read /cloverleaf/cis6.1/integrator/master_t/formats/hl7/2.3/GEMacLab_41_OB/fields from master
                ama_epic_to_gemacllab_adt.xlt: @triggerEvent = A08
                ama_epic_to_gemacllab_adt.xlt: @level1 = A18A34A35A36A39
                ama_epic_to_gemacllab_adt.xlt: @level2 = A01A04A05A06A07A08A13A14
                ama_epic_to_gemacllab_adt.xlt: @level3 = A01A02A03A04A05A06A07A08A11A12A13A14A17A18A34A35A36A38A39
                ama_epic_to_gemacllab_adt.xlt: @level4 = A01A02A03A04A05A06A07A08A11A12A13A14A17A38
                ama_epic_to_gemacllab_adt.xlt: @level5 = A01A02A04A05A06A07A08A11A12A13A14A17A38
                ama_epic_to_gemacllab_adt.xlt: @level6 = A01A04A05A06A07A08A13A14
                ama_epic_to_gemacllab_adt.xlt: @level7 = A01A03A04A05A06A07A08A11A12A13A14A38
                ama_epic_to_gemacllab_adt.xlt: @level8 = A01A03A04A05A06A07A08A13A14
                ama_epic_to_gemacllab_adt.xlt: @level9 = A01A04A05A06A07A08A13A14
                abq_epic_to_gemaclab_adt.xlt: MSH Segment; 0(0).MSH(0).#9(0).[1] = A08
                abq_epic_to_gemaclab_adt.xlt: PID Segment
                abq_epic_to_gemaclab_adt.xlt: PD1 Segment
                abq_epic_to_gemaclab_adt.xlt: MRG Segment
                ama_epic_to_gemaclab_adt.xlt: @level1  ct  @TriggerEvent contain operation failed
                abq_epic_to_gemaclab_adt.xlt: NK1 Segment
                abq_epic_to_gemaclab_adt.xlt: PV1 Segment
                abq_epic_to_gemaclab_adt.xlt: PV2 Segment
                MESSAGE 1
                Fetch failure on ‘triggerEventA’

                Migration Consultant
                Coffee Regional Medical Center
                Eastern Time Zone

              • #84811
                Jim Kosloskey
                Participant

                  Make sure your triggerEvent in the IF does not have any non displayable characters after it (or for that matter that is really says triggerEvent and not triggerEventA.

                  Note the fetch error is on something called triggerEventA

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

                • #84812
                  Jim Kosloskey
                  Participant

                    Oh I also noted the variable you set is triggerEvent and the line about the contains failing shows TriggerEvent with the leading t in caps.

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

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