-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added validation instructions to fhir questionnaires (#149)
* Added README instructions to how to validate fhir resources * updated instructions * fixed type * fixed naming * fixed typo
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### How to validate FHIR Questionnaires ### | ||
Once you have the generate the fhir json using SUSHI, proceed with the following steps to vlaidate a given fhir resource against the IG: | ||
|
||
1. [Download the latest FHIR Validator CLI](https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar) | ||
|
||
2. [Retreive the package.tgz from the deployed IG ](https://github.com/kind-lab/kind-lab.github.io/raw/main/vbai-fhir/package.tgz) or get it one from the output folder after running `./_genonce.sh` | ||
|
||
3. To ensure the FHIR validator works with your IG, perform the following command in the directory where the package.tgz is stored: | ||
|
||
``` | ||
tar -xvzf package.tgz | ||
cd package/ | ||
cp -a example/. . | ||
rm -r example | ||
cd .. | ||
tar -cvzf package-new.tgz package | ||
``` | ||
4. Now take any of the output fhir jsons and validate with the IG using the following command: `java -jar validator_cli.jar path/to/json -version 4.0.1 -ig path/to/package-new.tgz -questionnaire required` | ||
|
||
|