Skip to content

Commit

Permalink
Added validation instructions to fhir questionnaires (#149)
Browse files Browse the repository at this point in the history
* Added README instructions to how to validate fhir resources

* updated instructions

* fixed type

* fixed naming

* fixed typo
  • Loading branch information
Evan8456 authored May 29, 2024
1 parent 5d3f103 commit ef7e372
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions validation/README.md
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`


0 comments on commit ef7e372

Please sign in to comment.