130 likes | 150 Views
Learn how MDHT (Model-Driven Health Tools) can generate Schematron output for HL7 standards compliance in Java & .NET. This guide explores the seamless integration and generation capabilities of MDHT.
E N D
Schematron, .NET & Java 8 generation in MDHT HL7 WGM 2016 Orlando Jan 2016 Vadim Peretokin @ NEHTA
WE ARE NEHTA A corporate entity owned by the Australian Federal, state andterritory governments, to identify and jointly develop the necessary foundations and services for a national eHealth capability • Identifiers • Authentication • Terminology • Secure Messaging • Clinical Documents • Supply Chain
MDHT = Model-Driven Health Tools MDHT delivers UML publishing tools that are used to generate specification documents that are ready for submission to standards organizations and generates Java code used by healthcare implementers. WE WILL BE USING MDHT
MDHT was missing these outputs: Schematron .NET API code HOWEVER
Started developing Schematron as an output from MDHT models. Current status: work in progress. Snapshot preview available. SCHEMATRON STATUS
No additional work needed – existing models are compatible. Model using MDHT’s UI as you would normally – set cardinality, terminology, templateId, value constraints, etc. Custom OCL constraints are supported. HOW IT WORKS FOR THE USER
MDHT generates OCL for model constraints, which gets inserted as-is into Java validation code to perform validation at runtime. We take that OCL, read it in as AST(Abstract Syntax Tree) and generateSchematron from it. HOW IT WORKS AS A TECHNOLOGY
Started developing .NET API code as an output from MDHT models. Current status: work in progress. Snapshot preview available. .NET STATUS
Due to new lambda semantics in Java 8, it was pretty easy to add. Bonus: native Java 8 validation