Stream: implementers
Topic: Existence of the profile tag
Joel Francis (Mar 23 2018 at 15:39):
Hi,
I wanted to confirm that a missing profile tag, for a Bundle of resources including the Bundle itself means that the instance(s) is/are created against the base fhir resource(s).
For our specific scenario, we have a Bundle resource that was profiled and within it a dozen or so resources also profiled. In this case we have a “profile” tag within the Meta element pointing to the StructureDefinitions of each resource profiled. Otherwise there would be no way to tell what profile the instance conforms to without it.
Thanks,
Joel, @Tim Berezny
Lloyd McKenzie (Mar 23 2018 at 16:26):
The absense of a profile tag doesn't imply anything. If present, a resource is expected to be valid against the profiles declared. But it's not mandatory to populate - and even if the sending system did populate it, they wouldn't necessarily fill it with profiles that the receiver knows or cares about. If your implementation depends on profiles being declared, you'll have to negotiate with client systems to get them to send the profiles you care about. If that's not feasible, you'll have to figure out what profile(s) the instance complies with by looking at data within the instance. (It must always be possible to determine relevant profiles by looking at the instance - profiles aren't ever allowed to add information.)
Eric Haas (Mar 23 2018 at 16:26):
Nope you may be using a profile but choose not to declare in the resource.
Eric Haas (Mar 23 2018 at 16:29):
And you don't list all the profiles under Bundle.meta - Each entry would get it own meta since the meta is about the resource. If I'm wrong then I would like to know where its documented.
Lloyd McKenzie (Mar 23 2018 at 16:30):
Profiles declared in .meta must apply to the resource declaring the profile.
Joel Francis (Mar 26 2018 at 18:29):
Profiles declared in .meta must apply to the resource declaring the profile.
@Tim Berezny
Last updated: Apr 12 2022 at 19:14 UTC