FHIR Validator

How to use

Go to Downloads and download Validator Pack.

Extract the .zip archive in the desired folder.

Please ensure that you have Java installed.

Run cmd through the start menu or through the shortcut key Win+R.

Change directory to where you have extracted Validator Pack.

Run the following command:

java -jar org.hl7.fhir.validator.jar

You will see the following prompt:

FHIR Validation tool.
The FHIR validation tool validates a FHIR resource or bundle.
Schema and schematron checking is performed, then some additional checks are performed
JSON is not supported at this time
Usage: FHIRValidator.jar [source] (-defn [definitions]) (-profile [profile]) (-output [output]) (-noxslt) where:
* [source] is a file name or url of the resource or bundle feed to validate
* [definitions] is the file name or url of the validation pack (validation.zip). Default: get it from inside the jar file
* [profile] is an optional filename or URL for a specific profile to validate a
resource against. In the absence of this parameter, the resource will be checked against the base specification using the definitions.
* [output] is a filename for the results (OperationOutcome). Default: results are sent to the std out.
* -noxslt means not to run the schematrons (you really need to run these, but they need xslt2).
Master Source for the validation pack: http://hl7.org/documentcenter/public/standards/FHIR-Develop/validator.zip

If you want to validate your resource against the base specification using the definitions run the following command:

java -jar org.hl7.fhir.validator.jar name-of-your-file-with-fhir-resource.xml -defn validation.zip

If you want to validate your resource against specific profile (structure definition) run the following command:

java -jar org.hl7.fhir.validator.jar name-of-your-file-with-fhir-resource.xml -defn validation.zip -profile name-of-your-file-with-structure-definition.xml