Skip to content
forked from hl7ch/ch-core

CH Core Implementation Guide (FHIR)

License

Notifications You must be signed in to change notification settings

dvribeira/ch-core

 
 

Repository files navigation

CH Core Implementation Guide (R4)

Core FHIR profiles for Switzerland

Building the Implementation Guide

You can build the Implementation Guide with the IG Publisher.

  • For building the Implementation Guide you need to install Jekyll.

  • Clone this repository and change into its main directory.

  • Download the latest version of IG Publisher:

wget https://github.com/HL7/fhir-ig-publisher/releases/latest/download/publisher.jar -O publisher.jar
  • Build the Implementation Guide:
java -Xms3550m -Xmx3550m -jar publisher.jar -ig ig.ini

Validate a Resource

If you are in the main directory of the Implementation Guide you can check your example against the specification of this IG with the Validator.

  • Download the latest version of Validator:
wget https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar -O validator_cli.jar
  • Validate the resource against a profile (e.g. ch-core-patient):
java -jar validator_cli.jar [file path] -version 4.0.1 -ig output -profile http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient

Validating without Building the IG

If you do not want to build the IG locally, you can validate your example against the Implementation Guide with the Validator as follows:

  • Download the latest version of Validator:
wget https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar -O validator_cli.jar
  • Validate the resource:
java -jar validator_cli.jar [file path] -version 4.0.1 -ig ch.fhir.ig.ch-core#current -profile http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-patient

In case the current published IG (#current) is not found, replace #current with the current version (e.g. #1.0.0) of the published IG (http://fhir.ch/ig/ch-core/history.html)

About

CH Core Implementation Guide (FHIR)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GLSL 99.5%
  • Other 0.5%