Skip to content

haddadda/schemas

 
 

Repository files navigation

Open mHealth Schema Repository

A repository of Open mHealth generic and clinical schemas. This repository also includes sample data and a validator for that data.

Tooling

There are a few tools which are well suited to working with the schemas and source code in this repository.

  • Git to be able to pull the code
  • some text editor, preferably one that can do syntax highlighting for JSON documents

To run the validator, you'll also need

  • Gradle to build the source code (but this should get downloaded automatically)
  • Java SE 8 to run it

Validator

The validator is a simple application that validates sample data against schemas. It makes good use of Francis Galiegue's JSON Schema validator, which you can find here. Thank you, Francis.

Configuration

By default, the validator looks for schemas in the schemas directory and sample data files in the sampleData file directory. If you want to test new schemas or new sample data, just drop them into these directories and the validator will pick them up.

To change these defaults, modify the corresponding lines in the application.properties file. You can also set the logging level in there to WARN if you find the output too verbose.

Running

If you're using IntelliJ, simply create a run configuration that points at org.openmhealth.schema.configuration.Application.

If you're running from the command line on Linux or from Terminal on OS X, run the following commands from the root of the project directory.

  1. gradlew build
  2. java -jar build/libs/validator-1.0.0-SNAPSHOT.jar

About

A repository of Open mHealth schemas.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%