iNTERFACEWARE Products Manual > Learning Center > Tutorials and Sample Scenarios > Working With Other Message Formats > Generating HL7 Version 3 CDA Documents > Creating a VMD File To Generate HL7 Version 3 CDA Documents |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Now that you have the VMD file that generates the XML text, the next step is to create a VMD file to generate the HL7 version 3 message. To create this VMD file:
This code is required because Chameleon expects all messages to start with an MSH segment, whereas the messages this VMD file will be receiving have been converted to XML data by the other VMD file.
The Transformation Script calls a function named V2toCDA() to generate the CDA output, which calls functions to create each section of the document in turn:
Each section of the document is generated by its own function. For example, the author section of the CDA document is generated by the author() function:
All of the other functions work the same way: they generate one specific section of an HL7 version 3 CDA document, using the supplied parameters to customize this message section.
|