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?