Difference between revisions of "MIF based code generation"
Rene spronk (talk | contribs) (New page: category:RIMBAA Issue ==Summary== When it comes to code generation the best (most complete) code should be generated from the MIF. An alternative is [[Schema based code generation...) |
Rene spronk (talk | contribs) |
||
Line 4: | Line 4: | ||
==Analysis== | ==Analysis== | ||
− | + | The primary source for the code generation is likely to be one of the options shown below: | |
+ | #MIF - the code generator has to be aware of the structure of the MIF | ||
+ | #UML (derived from the MIF) - the code generator has to know UML, including a few extensions that are v3 specific | ||
+ | |||
+ | ==UML== | ||
+ | Anyone concerned that we cannot represent HL7 concepts in UML ignores the fact that UML can be extended using something called a "UML profile". When RIM.coremif is imported all the HL7-specific extensions are imported into stereotype properties. Nothing is lost. We are using two profiles: | ||
+ | #HDF profile based on the profile authored by Abdul Malik, if you recall, some time ago | ||
+ | #RIM profile that allows us to track clones to the RIM and to store the class/type and moodCode which would a look redundant to an audience outside HL7. | ||
+ | |||
+ | To install and use these profiles (along with the vocabulary and abstract datatypes) you need update Eclise-based UML 2 tool and install the HL7 plugin as specified in: [http://hl7projects.hl7.nscee.edu/docman/view.php/44/258/RSM%20Quickstart.doc RSM Quickstart.doc]. IBM is providing free RSM licenses for those who need UML tools for HL7 standard development (DAM, DIM, etc.). | ||
+ | |||
+ | If you wish to learn more about the UML extensions and how they are represented as UML stereotypes, please take a look at: | ||
+ | [http://www.umlbof.org/wiki/index.php?title=Main_Page UML BOF Wiki]. | ||
+ | |||
+ | The HL7 plugin will be maintained and improved by the Open Health Tools' [http://www.openhealthtools.org/Reports/Apr08/Charter-ModelingToolsForHealthcare.pdf Modeling Tools for Healthcare] project. | ||
+ | |||
+ | We have imported RIM.coremif into UML and checked into SVN at: [http://svn.hl7.nscee.edu/svn/hl7v3/uml-tools/trunk/may_08/ this directory] (RIM.emx). | ||
==Discussion== | ==Discussion== |
Revision as of 14:46, 18 January 2009
Contents
Summary
When it comes to code generation the best (most complete) code should be generated from the MIF. An alternative is Schema based code generation.
Analysis
The primary source for the code generation is likely to be one of the options shown below:
- MIF - the code generator has to be aware of the structure of the MIF
- UML (derived from the MIF) - the code generator has to know UML, including a few extensions that are v3 specific
UML
Anyone concerned that we cannot represent HL7 concepts in UML ignores the fact that UML can be extended using something called a "UML profile". When RIM.coremif is imported all the HL7-specific extensions are imported into stereotype properties. Nothing is lost. We are using two profiles:
- HDF profile based on the profile authored by Abdul Malik, if you recall, some time ago
- RIM profile that allows us to track clones to the RIM and to store the class/type and moodCode which would a look redundant to an audience outside HL7.
To install and use these profiles (along with the vocabulary and abstract datatypes) you need update Eclise-based UML 2 tool and install the HL7 plugin as specified in: RSM Quickstart.doc. IBM is providing free RSM licenses for those who need UML tools for HL7 standard development (DAM, DIM, etc.).
If you wish to learn more about the UML extensions and how they are represented as UML stereotypes, please take a look at: UML BOF Wiki.
The HL7 plugin will be maintained and improved by the Open Health Tools' Modeling Tools for Healthcare project.
We have imported RIM.coremif into UML and checked into SVN at: this directory (RIM.emx).