Vadim Peretokin NEHTA Schematron NET Java 8 generation













- Slides: 13
Vadim Peretokin @ NEHTA Schematron, . NET & Java 8 generation in MDHT HL 7 WGM 2016 Orlando Jan 2016 1 National E-Health Transition Authority www. nehta. gov. au
WE ARE NEHTA A corporate entity owned by the Australian Federal, state and territory governments, to identify and jointly develop the necessary foundations and services for a national e. Health capability • Identifiers • Authentication • Terminology • Secure Messaging • Clinical Documents • Supply Chain 2 National E-Health Transition Authority www. nehta. gov. au
WE WILL BE USING 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. 3 National E-Health Transition Authority www. nehta. gov. au
HOWEVER MDHT was missing these outputs: • Schematron • . NET API code 4 National E-Health Transition Authority www. nehta. gov. au
SCHEMATRON STATUS Started developing Schematron as an output from MDHT models. Current status: work in progress. Snapshot preview available. 5 National E-Health Transition Authority www. nehta. gov. au
HOW IT WORKS FOR THE USER No additional work needed – existing models are compatible. Model using MDHT’s UI as you would normally – set cardinality, terminology, template. Id, value constraints, etc. Custom OCL constraints are supported. 6 National E-Health Transition Authority www. nehta. gov. au
7 National E-Health Transition Authority www. nehta. gov. au
HOW IT WORKS AS A TECHNOLOGY 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 generate Schematron from it. 8 National E-Health Transition Authority www. nehta. gov. au
HOW IT WORKS AS A TECHOLOGY 9 National E-Health Transition Authority www. nehta. gov. au
. NET STATUS Started developing. NET API code as an output from MDHT models. Current status: work in progress. Snapshot preview available. 10 National E-Health Transition Authority www. nehta. gov. au
11 National E-Health Transition Authority www. nehta. gov. au
Bonus: native Java 8 validation Due to new lambda semantics in Java 8, it was pretty easy to add. 12 National E-Health Transition Authority www. nehta. gov. au
Q&A 13 National E-Health Transition Authority www. nehta. gov. au













