FHIR Chat · FHIR Message validation · hapi

Stream: hapi

Topic: FHIR Message validation


view this post on Zulip Kevin Mayfield (Apr 24 2020 at 07:25):

I'm using HAPI to validate and have been experimenting using CapabilityStatements to control how incoming resources are validated.

This has worked for resources (rest) and transactional bundles. I temporarily insert the profile I want to validate against into the resource(s). (So if Capability statement says my server supports UKCore-Patient, I force all incoming Patient resources to use this profile and then validate).

For messages I'm wondering if I should use a similar approach. I'm not sure how to handle MessageHeaders, as I understand it the eventCoding should match eventCoding of a MessageDefinition.
So I can look up which MessageDefinition I should be using for conformance.
Then, what I believe I should do is say, validate this 'bundle' against this 'messageDefinition'?


Last updated: Apr 12 2022 at 19:14 UTC