Sidebar
0 votes
115 views
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?

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
by ben-s-7515 (13.4k points)
...