XML to HL7

  • Creator
    Topic
  • #48159
    Michael Lacriola
    Participant

      We are finally going to do this. I remmeber back in 3.8.x days that the DTD name needed to be the same as the XML root name or something like that.

      What kind if gotches do I need to look out for? This will be an experience, so I’ll be posting a lot. I goojng to try something small first before hitting the big time.

    Viewing 3 reply threads
    • Author
      Replies
      • #57870
        Michael Lacriola
        Participant

          I need some help here. I cannot see the fields LAST, FIRST, or MIDDLE within a xlate config file after compilation of a very simple DTD. I included the DTD for those who want to poke around. I need some help real bad.

          Wondering how I can get the actual root name to be capitalized instead of it taking it from file name (admitdb from admitdb.dtd).

          Some help really appreciated.

        • #57871
          Bill Bertera
          Participant

            I think this is where you need the first element to match the name of the dtd.

            So, you should have 1 more element above those:

          • #57872
            Mike Grieger
            Participant

              Though my XML integration has been based on an xsl or xsd, I’ll give this a try.  From the documentation:

              The DTD root node must match the filename; otherwise, an error will occur.

              If the filename does not match the root name, then you can compile the DTD by using

              the hcixmlcompile command line tool, using the

              -r argument to specify the root name.

              So, I took your 4 lines, made a file called tech.dtd and moved it to a new package folder (I also named ‘tech’).  Then at command line, I issued a “hcixmlcompile -f tech -p tech -r PATIENT_NAME”  The -r specifies the root element.  This compiled the OCM, then in an Xlate, the elements are available.

              Is that what you’re looking for?

            • #57873
              Michael Lacriola
              Participant

                Thanks Bill, you hit in right on the head.

                I am now wondering why works and not

                My XML book is a tad bit old (> 5 years) so I’m wondering if syntax changed a bit.

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