Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libtemplates

Is a packaging of generated Java classes for operational templates. It is based on the tooling from EHRBase https://github.com/ehrbase/openEHR_SDK

Building

  1. Put .opt-files into src/main/resources/templates
  2. maven clean package

The resulting jar will have generated java classes

Usage

There is a TemplateProvider class you can use to unflatten template objects:

Unflattener cut = new Unflattener(new KarolinskaTemplateProvider());
LabMBAComposition composition = new LabMBAComposition();
composition.setLanguage(Language.EN_US);
RMObject obj = cut.unflatten(composition);
CanonicalJson json = new CanonicalJson();
System.out.println(json.marshal(obj));

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages