Stream: implementers
Topic: Using profiles
Ville Lindholm (Jun 03 2017 at 12:31):
Hello!
We've been constructing vanilla FHIR resources with no problems, but I am now in the position of having to create some custom profiles. Reading the documentation, the process of creating a StructureDefinition seems quite straightforward (for simple cases at least), but I can't for the life of me find any mention of how to actually use the profiles once they are published on simplifier. We are doing a CDS system, should we just update our documentation to say, we are now using this and this profile, and start sending our own resources out to clients? Or is there some programmatic way to signify which profile we use in the actual resource? e.g. a resourceType of "CustomQuestionnaire" or whatever?
Lloyd McKenzie (Jun 03 2017 at 13:35):
You can declare your profile using Resource.meta.profile near the top of any resource. There's no requirement to do so - and no requirement for receivers to pay attention to the declaration, but it does allow receivers to get a sense of what they could validate the instance against if they wished. The primary purpose of profiles is to support tighter validation.
Ville Lindholm (Jun 03 2017 at 19:39):
Great, that makes things easier :) Thanks!
Last updated: Apr 12 2022 at 19:14 UTC