Hello MDTH developers!
I'm trying to setup a new model, however I struggle to generate code for the model, the class is generated in java but the content of the models is empty.
I performed the following steps:
Import from github as existing project (no copy) into my new workspace:
mdht/cda/plugins/org.openhealthtools.mdht.uml.cda
mdht/cda/plugins/org.openhealthtools.mdht.uml.hl7.datatypes
mdht/cda/plugins/org.openhealthtools.mdht.uml.hl7.rim
mdht/cda/plugins/org.openhealthtools.mdht.uml.hl7.vocab
mdht/cdat/plugins/org.openhealthtools.mdht.uml.term.models
mdht-models/generated/org.openhealthtools.mdht.uml.cda.ccd
mdht-models/generated/org.openhealthtools.mdht.uml.cda.cdt
mdht-models/generated/org.openhealthtools.mdht.uml.cda.ihe
mdht-models/models/org.openhealthtools.mdht.uml.cda.ccd.model
mdht-models/models/org.openhealthtools.mdht.uml.cda.cdt.model
mdht-models/models/org.openhealthtools.mdht.uml.cda.ihe.model
Creating a new ihe.pharm model (see screenshot):
Error message in console is:
Buildfile: /Users/oliveregger/Documents/workspace_mdht2/org.openhealthtools.mdht.uml.cda.ihe.pharm/transform.xml
all:
transformModel:
[cdatools] [Fatal Error] :1:1: Premature end of file.
[cdatools] Loaded model: file:/Users/oliveregger/Documents/workspace_mdht2/org.openhealthtools.mdht.uml.cda.ihe.pharm.model/model/pharm.uml
[cdatools] [Fatal Error] :1:1: Premature end of file.
[validateModel] Validating UML source model...
[validateModel] Warning: Not all the members of namespace '<<codegenSupport>> <Package> pharm' are distinguishable within it.
[transformToEcoreModel] Generating Ecore model...
[transformToEcoreModel] Saving Ecore model: file:/Users/oliveregger/Documents/workspace_mdht2/org.openhealthtools.mdht.uml.cda.ihe.pharm/model/pharm_Ecore.uml
postProcessing:
refresh:
BUILD SUCCESSFUL
Total time: 1 second
Source files are generated, however the class are empty (no content) except for PHARMPlugin.java, see other screenshot. Any help/tips greatly appreciated!
Oliver