My dilemma is that I'm working with a file that has three different data records plus the header and trailer. The record type is in positions 21-23. The header and trailer have spaces in positions 1-20. The data records have a variable data in positions 1-20.
I have a text file that is fixed width delimited and am using a BPL to process this file, ultimately performing a transform from the text file to an HL7 message. I created a DTL, mapping from the recordmap to the HL7. In my BPL, I am performing some loops and other logic (that all is working). My issue is what to do when I perform the Transform.
Are there any utilities/api in HealthConnect 2016.2.1 that will allow conversion of XML virtual document to Json format? We were thinking to convert HL7 ADT message to XML via Ensemble DTL and then send it to another BP to convert to Json format for transmission via Web Services. To my understanding there isn't anyway to represent Json as a virtual object so it can be use for direct mapping of HL7 2.x message to Json via Ensemble DTL.
I've found a couple of methods that will tell me whether a package is mapped from another database, but not which database. Is there such a method/routine?