HL7 variant compare tool

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf HL7 variant compare tool

  • Creator
    Topic
  • #51177
    Michael Hertel
    Participant

      Is there a tool or a way to compare the same HL7 variants between two sites?

    Viewing 4 reply threads
    • Author
      Replies
      • #69061
        Keith McLeod
        Participant

          What platform?  If they are on the same server, you may be able to use something like ‘dircmp’.

          On AIX:

          dircmp

          Purpose

                Compares two directories and the contents of their common files.

        • #69062
          Jim Kosloskey
          Participant

            Michael,

            If the variant actually has differences from the standard, you could (assuming UNIX) do a diff or sdiff on the files that make up the variants.

            Since there could be multiple files depending on how the variant differed from the standard, it would mean multiple diffs.

            You could also use Ultra-Edit if you have it to point to the files via FTP and use Ultra-Edit’s difference checker.

            If there are no differences from the standard (meaning there are no segment, or messages, or fields entries in the respective directories) then they are, by definition equal (assuming same HL/7 version)

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

          • #69063
            Michael Hertel
            Participant

              I’m on AIX.

              I was hoping for a Healthvision tool.

              Looks like I have to do it the hard way. I’ll look at the dircmp.

              Thanks in advance guys

            • #69064
              Tom Rioux
              Participant

                One thing to look out for with the dircmp command.   Some of the files in the directories (i.e. segment files in the segment directories) have a “prologue”.  The prologue can be different between each file yet the actual definitions within that file be identical.  When the dircmp command hits this, it will show it as “different” and not “same”.

                Just an FYI…

                Tom Rioux

              • #69065
                Michael Hertel
                Participant

                  dircmp worked wonders.

                  And thanks for the heads up about the prologue.

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