FHIR Chat · Validation against Implementation Guides packages · hapi

Stream: hapi

Topic: Validation against Implementation Guides packages


view this post on Zulip Stefan Baum (Jul 23 2020 at 14:21):

Hello,
I'm new to FHIR an HAPI FHIR.
My task ist to validate (offline) resource-files by using the Java-API of HAPI FHIR.
The profile resources has dependencies to other resources which are part of several Implementation Guide packages (*.tgz-files).
I can find the statement below within the HAPI FHIR documentation:
...
Instance Validator is validation of the raw or parsed resource against the official FHIR validation rules (ie. the official FHIR definitions, expressed as profile resources such as StructureDefinition and ValueSet.

The Instance Validator can also be used to validate resources against individual Implementation Guides which derive from the core specification (e.g. the US Core implementation guide).
...
I can't find a code example for it.
Are Implementation Guides supported by the Validaton-API of HAPI FHIR?
If not, how has this task to be implemented?

Thanks for help
Stefan

view this post on Zulip Kevin Mayfield (Jul 23 2020 at 14:23):

This is using tgz packages and hapi https://github.com/NHSDigital/fhir-validation-service

view this post on Zulip Stefan Baum (Jul 23 2020 at 15:15):

Thanks for the fast reply,
unfortunately the type IGValidationSupport from the code example is not part of the HAPI FHIR API.
The type org.hl7.fhir.utilities.cache.NpmPackage is used to implement it.
That's new to me too and first I've to study it...


Last updated: Apr 12 2022 at 19:14 UTC