@pablo did you get it working later? A former colleague of mine had it running a while ago.
@borut.fabjan and others ay Better:The readme file and documentation of the GitHub project is currently very thin. Perhaps you could improve/correct the text below and add it to the readme?
And it responded:
The code at better-care/web-template is a Java library that implements the WebTemplate specification for openEHR Clinical Data Repository (CDR). WebTemplate is a way of transforming openEHR archetypes and templates into a simpler and more user-friendly format, suitable for web applications and data entry¹. The library provides the following features:
Converting openEHR Operational Templates (OPT) into WebTemplates (WT)
Converting WebTemplates into JSON Schema for data validation
Converting JSON data into openEHR Composition objects
Converting openEHR Composition objects into JSON data
Validating JSON data against WebTemplates and openEHR rules
Providing metadata and terminology information for WebTemplates
The code is organized into several modules, each with a specific purpose and functionality. The main modules are:
web-template-core: contains the core classes and interfaces for WebTemplate representation and conversion
web-template-json: contains the classes and utilities for JSON serialization and deserialization of WebTemplates and Compositions
web-template-validator: contains the classes and logic for validating JSON data against WebTemplates and openEHR rules
web-template-test: contains the unit tests and test resources for the library
The code also includes some examples and documentation on how to use the library in different scenarios, such as generating WebTemplates from OPT files, creating JSON Schema from WebTemplates, converting JSON data to and from Compositions, and validating JSON data. The code is licensed under the Apache License 2.0 and follows the code of conduct and contributing guidelines of the better-care organization¹.
@erik.sundvall Not sure if this is helpful in this context, but for the case it does not have to be Better’s implementation, you can just use the implementation in the EHRbase openEHR SDK.