Stream: fhir-messages
Topic: Associate MessageHeader profile with MessageDefinition
Simone Heckmann (Oct 26 2018 at 07:36):
Question: If I wanted to require the MessageHeader of a message to comply to a specific profile, how do I express that in the MessageDefinition?
It MessageDefinition.focus the appropriate place for this?
It seems legitimate to use "MessageHeader" as a code, set it to min=1 max=1 and reference a profile, but it's not specifically mentioned and the name "focus" appears to only relate to the resources referenced from MessageHeader.focus.
Lloyd McKenzie (Oct 26 2018 at 14:44):
The way I do it is by placing a constraint on the Bundle profile that says that the MessageHeader profile must declare a particular profile in meta.profile. If it gets declared, the validator will enforce it.
Simone Heckmann (Oct 26 2018 at 17:24):
Ok, thanks @Lloyd McKenzie
Follow up question: how do I associate the Bundle-Profile with the MessageDefinition?
Lloyd McKenzie (Oct 26 2018 at 18:18):
I did it with an invariant, but the tooling should have progressed to the point where you can now do it with slicing.
Last updated: Apr 12 2022 at 19:14 UTC