Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added validation instructions to fhir questionnaires #149

Merged
merged 5 commits into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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`


Loading