{"id":16795396,"url":"https://github.com/js-kyle/fhir-questionnaireresponse-validation","last_synced_at":"2025-03-17T03:14:04.112Z","repository":{"id":152880976,"uuid":"618193882","full_name":"js-kyle/fhir-questionnaireresponse-validation","owner":"js-kyle","description":"Example of validating a FHIR QuestionnaireResponse against a Questionnaire using the FHIR validator","archived":false,"fork":false,"pushed_at":"2023-03-24T01:54:43.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T12:46:43.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/js-kyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T00:15:14.000Z","updated_at":"2023-03-24T01:09:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4274a7ae-170d-4108-877b-89b6b406602b","html_url":"https://github.com/js-kyle/fhir-questionnaireresponse-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Ffhir-questionnaireresponse-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Ffhir-questionnaireresponse-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Ffhir-questionnaireresponse-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-kyle%2Ffhir-questionnaireresponse-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-kyle","download_url":"https://codeload.github.com/js-kyle/fhir-questionnaireresponse-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965781,"owners_count":20375918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T09:16:15.107Z","updated_at":"2025-03-17T03:14:04.083Z","avatar_url":"https://github.com/js-kyle.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fhir-questionnaireresponse-validation\nBasic example of validating a FHIR QuestionnaireResponse against a Questionnaire using the FHIR validator.\n\n### Prerequisites\n\n[Download the latest FHIR Validator CLI](https://github.com/hapifhir/org.hl7.fhir.core/releases/latest/download/validator_cli.jar) and move `validator_cli.jar` to the root of this project.\n\n### Example\n\nRunning `sh validate.sh` will run an example script which validates the `qr-pass.json` QuestionnaireResponse resource. This resource should pass validation.\n\nRunning `sh validate-fail.sh` will run an example script which validates the `qr-fail.json` QuestionnaireResponse resource. This resource should fail validation as it is missing a required property which is defined in the Questionnaire, which is in the example `ig` folder.\n\nExample expected error:\n\n```\n*FAILURE*: 1 errors, 0 warnings, 0 notes\n  Error @ QuestionnaireResponse (line 1, col2): No response answer found for required item 'B'\n```\n\n### Gotchas\n\n1) The FHIR Validator does not appear to include resources which are listed as `example` usage as part of it's validation process, so ensure that all Questionnaire resources are NOT `example` type. You can check this by downloading the `pacakge.tgz` of the Implementation Guide and ensuring you resource is not in the `examples` directory once unarchived.\n\n2) The validator does not attempt to 'resolve' the questionnaire resource over http, it must find the canonical url as part of the Implementation Guide used for validation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-kyle%2Ffhir-questionnaireresponse-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-kyle%2Ffhir-questionnaireresponse-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-kyle%2Ffhir-questionnaireresponse-validation/lists"}