Login
Register
Home
Q&A
Questions
Tags
Send feedback
Sidebar
Can I validate a FHIR resource when it is read into QIE
0
votes
115
views
asked
Sep 5
by
ben-s-7515
(
13.4k
points)
I am receiving FHIR resources and want to validate the resource before processing it, how would I validate it?
fhir
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
QIE uses the HAPI java libraries to help process FHIR resources. This means that the HAPI FHIR validator can be used as well. To get the validator object you will call:
hapi.context.getFhirValidator()
Information on using the validator can be found at:
https://hapifhir.io/hapi-fhir/apidocs/hapi-fhir-base/ca/uhn/fhir/validation/FhirValidator.html
Information on the validation result object can be found at:
https://hapifhir.io/hapi-fhir/apidocs/hapi-fhir-base/ca/uhn/fhir/validation/ValidationResult.html
answered
Sep 5
by
ben-s-7515
(
13.4k
points)
Please
log in
or
register
to add a comment.
...