A repository of Open mHealth generic and clinical schemas. This repository also includes sample data and a validator for that data.
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
- Atom if you're comfortable with command line Git
- Atom and SourceTree if you're not comfortable with command-line Git
- IntelliJ IDEA Community Edition for a full IDE with Git integration
To run the validator, you'll also need
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.
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.
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.
gradlew build
java -jar build/libs/validator-1.0.0-SNAPSHOT.jar