Groovy Support of openEHR Operational Templates for CaboLabs Grails projects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
documents
html
lib
resources
src
xsd
.classpath
.gitignore
.project
Ejemplo.Composition.XML.groovy
Ejemplo.Parseo.XML.groovy
Ejemplo.Validacion.XML.groovy
LICENSE
MANIFEST.txt
Practica2.OPT.Carga.groovy
Practica2.OPT.Recorrida.groovy
Practica2.OPT.Texto.groovy
Practica2.OPT.Validacion.groovy
Practica6.SQL.groovy
README.md
adverse.opt
build.bat
build.sh
jargen.bat
jargen.sh
laboratory_results_report.en.v1.opt
openEHR_OPT.jar
opt.bat
opt.sh
test.bat
test.sh
test_manager.bat
test_manager.sh

README.md

openEHR-OPT

Groovy Support of openEHR Operational Templates for CaboLabs Grails/Java projects, with advanced command line tools.

This will be used in CaboLabs apps like EHRGen, EHRServer, EMRApp and XML Rule Engine.

Commands

Generate UI for data input

opt uigen path_to_opt dest_folder

Generate XML instances with random data

opt ingen path_to_opt dest_folder [amount] [version|composition|version_committer|tagged]

  1. amount: defines how many XML instances will be generated
  2. version: generates an instance of a VERSION object
  3. composition: generates an instance of a COMPOSITION object
  4. version_committer: generates an instance with the format required by the EHRCommitter to generate the UI and load data to test the EHRServer.
  5. tagged: generates a version instance with tags instead of data, useful to inject data from your app to commit to the EHRServer

Validate XML instances

Validate one instance:

opt inval path_to_xml_instance

Validate all instances in folder:

opt inval path_to_folder_with_xml_instances

Requires Java 8