Application owner needs a list of all facilities that have shown up in PID.3.3 in all the ORUs from the last month.
After a little research, it seems that if I can get the messages into XML most RDBMs have tools to suck in an XML file and turn it into a series of tables. Then the only challenge is to get a SMAT resend file into XML format. Of course this is complicated by the wide variety of HL7 variants we have in our environment.
I am wondering if anyone has ever created a script that parses the Cloverleaf HL7 definition files in the Formats directory of a site and automatically creates XSDs based on them? It doesn’t seem like it would be that hard to do. It would be a short step then to automate the updating and compiling of the XML packages on the server.
With accurate xsds, it would be easy to generate great XML files and I am am a few simple steps away from the power of SQL queries.
All this said, is there an easier way to answer my application user’s question?
Mike