How do I import this in ver6.0 Xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How do I import this in ver6.0 Xlate

  • Creator
    Topic
  • #55621
    Albert Sinha
    Participant

      prologue

         xlt_infile: hl7 2.4 quantros_adt ADT_A08

         who: tayala

         date: “January 12, 2018 8:42:54 AM PST”

         xlt_outfile: hl7 2.4 quantros_adt ADT_A08

         type: xlt

         version: 7

      end_prologue

      { { OP COMMENT }

         { COMMENT {********** SUPPRESS Non-Patient **********} }

      }

      { { OP IF }

         { ERR 0 }

         { COND { 0(0).PV1(0).#18(0).[0]  eq =1} }

         { THENBODY {

             { { OP SUPPRESS } }

         }}

         { ELSEBODY {

         }}

      }

      { { OP COMMENT }

         { COMMENT {********** MSH Segment **********} }

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN 0(0).MSH(0) }

         { OUT 0(0).MSH(0) }

      }

      { { OP IF }

         { ERR 0 }

         { COND { 0(0).MSH(0).#4(0)  eq =05 || 0(0).MSH(0).#4(0)  eq =06 || 0(0).MSH(0).#4(0)  eq =07} }

         { THENBODY {

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN =6100089 }

                 { OUT 0(0).MSH(0).#4(0) }

             }

         }}

         { ELSEBODY {

         }}

      }

      { { OP IF }

         { ERR 0 }

         { COND { 0(0).MSH(0).#4(0)  eq =10} }

         { THENBODY {

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN =6100090 }

                 { OUT 0(0).MSH(0).#4(0) }

             }

         }}

         { ELSEBODY {

         }}

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN =QUANTROS }

         { OUT 0(0).MSH(0).#5(0) }

      }

      { { OP COMMENT }

         { COMMENT {********** EVN Segment **********} }

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN 0(0).EVN(0) }

         { OUT 0(0).EVN(0) }

      }

      { { OP COMMENT }

         { COMMENT {********** PID Segment **********} }

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN 0(0).PID(0) }

         { OUT 0(0).PID(0) }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PID(0).#8(0).[0]}} }

         { OUT {{0(0).PID(0).#8(0).[0]}} }

         { TBL quantros_gender.tbl }

         { SIDE {} }

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN @null }

         { OUT 0(0).PID(0).#10(0) }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PID(0).#10(0).[0]}} }

         { OUT {{0(0).PID(0).#10(0).[0]}} }

         { TBL quantros_race.tbl }

         { SIDE {} }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PID(0).#10(0).[0]}} }

         { OUT {{0(0).PID(0).#10(0).[1]}} }

         { TBL quantros_race_desc.tbl }

         { SIDE {} }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PID(0).#16(0).[0]}} }

         { OUT {{0(0).PID(0).#16(0).[0]}} }

         { TBL quantros_marital.tbl }

         { SIDE {} }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PID(0).#16(0).[0]}} }

         { OUT {{0(0).PID(0).#16(0).[1]}} }

         { TBL quantros_marital_desc.tbl }

         { SIDE {} }

      }

      { { OP COMMENT }

         { COMMENT {********** PV1 Segment **********} }

      }

      { { OP PATHCOPY }

         { ERR 0 }

         { IN 0(0).PV1(0) }

         { OUT 0(0).PV1(0) }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PV1(0).#7(0).[0]}} }

         { OUT {{0(0).PV1(0).#7(0).[0]}} }

         { TBL physician_npi.tbl }

         { SIDE {} }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PV1(0).#8(0).[0]}} }

         { OUT {{0(0).PV1(0).#8(0).[0]}} }

         { TBL physician_npi.tbl }

         { SIDE {} }

      }

      { { OP ITERATE }

         { BASIS 0(0).PV1(0).#9 }

         { VAR %f1 }

         { TYPE field }

         { BODY {

             { { OP TABLE }

                 { ERR 0 }

                 { IN {{0(0).PV1(0).#9(%f1).[0]}} }

                 { OUT {{0(0).PV1(0).#9(%f1).[0]}} }

                 { TBL physician_npi.tbl }

                 { SIDE {} }

             }

         }}

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PV1(0).#17(0).[0]}} }

         { OUT {{0(0).PV1(0).#17(0).[0]}} }

         { TBL physician_npi.tbl }

         { SIDE {} }

      }

      { { OP TABLE }

         { ERR 0 }

         { IN {{0(0).PV1(0).#18(0).[0]}} }

         { OUT {{0(0).PV1(0).#18(0).[0]}} }

         { TBL quantros_pattype.tbl }

         { SIDE {} }

      }

      { { OP IF }

         { ERR 0 }

         { COND { 0(0).PV1(0).#10(0).[0]  eq =OBV} }

         { THENBODY {

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN =OVS }

                 { OUT {{0(0).PV1(0).#18(0).[0]}} }

             }

         }}

         { ELSEBODY {

         }}

      }

      { { OP COMMENT }

         { COMMENT {********** DG1 Segment **********} }

      }

      { { OP ITERATE }

         { BASIS 2(0).DG1 }

         { VAR %s1 }

         { TYPE segment }

         { BODY {

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN 2(0).DG1(%s1) }

                 { OUT 2(0).DG1(%s1) }

             }

         }}

      }

    Viewing 8 reply threads
    • Author
      Replies
      • #85934
        Albert Sinha
        Participant

          New to this  type of file for xlate, any help really appreciated.

        • #85935
          Jim Kosloskey
          Participant

            I am not sure what you want to know.

            What you show looks like an Xlate file.

            The Xlate tool actually reads that file so if it is in a site’s Xlate directory it should appear in the file list to be selected by the Xlate tool.

            If this is from one release of Cloverleaf and you want to use it in another release, it may need to go through one or more conversion utilities provided by the Cloverleaf releases.

            For example if going from 5.8 to 6.2 it may require going through a conversion at each release level (or not). Read the install notes of the intervening releases to be sure.

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

          • #85936
            Albert Sinha
            Participant

              This was sent to me by an another analyst, I wanted to use it, but do not know how to import/put it in the xlate list on my site.

              Really appreciate it.

            • #85937
              Steve Williams
              Participant

                Hi Albert,

                  One of Clvf’s strengths is the text nature of the configuration files. As text files, they can be easily copied.

                In your case, just open a new file in a text editor (i.e., Notepadd++, UltraEdit, PSpad, or even [gulp] Windows Notepad) and paste the contents of the xlate file. Then, *Save* the file in your site’s Xlate directory with a good name using the “.xlt” extension. Now, you should be able to open the xlate file using the Clvf GUI.

                Hope this helps.

              • #85938
                Albert Sinha
                Participant

                  ‘QuantrosFile.xlt’ is malformed: FileFormatException File ‘C:cloverleafcis6.0integratortestalXlateQuantrosFile.xlt’ is malformed at line 7: VERSION value ‘7’ not in [3.1,4.0,5.0,6.0,7.0]

                • #85939
                  Steve Williams
                  Participant

                    You’ll need to change line 7 from:

                    Code:

                    version: 7

                    >>

                    Code:

                    version: 7.0

                    Also, note you need to have the HL7 2.4 variant named “quantros_adt” in your formats directory. Otherwise you’ll get a variant not found error and the GUI will ask you to reconfigure (select a valid variant) the xlate file.

                  • #85940
                    Albert Sinha
                    Participant

                      Thanks Steve , that worked. it was very helpful.  Thanks again.

                    • #85941
                      Albert Sinha
                      Participant

                        it is giving this error now.  Attached is the screenshot.

                      • #85942
                        Jim Kosloskey
                        Participant

                          You need to have that variant defined in your HL/7 directory.

                          Try finding it in the same system you got the Xlate from and just copy the directories and files across or rebuild the variant using the HL/7 configurator tool.

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

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