Stream: implementers
Topic: Q on extension and profile
Nath (Jan 13 2020 at 00:47):
Hi,
I wanted to add some additional custom fields to patient resource. I have been reading the forum that I need to add an extension and searchparameter (for searching). Do I need to create profile also?. I am having difficulty understanding the relationship between extension and profile. Could someone help me with this?. (Btw, this extension is not already there). thanks
Grahame Grieve (Jan 13 2020 at 01:17):
you are expected to create a 'profile' that defines the extension, and publish that at the URL you use to identify the extension - that way a system that encounters the extension can fetch it's documentation
Grahame Grieve (Jan 13 2020 at 01:17):
you don't need to 'profile' the resource where you use the extension - you an just go ahead and use it.
Grahame Grieve (Jan 13 2020 at 01:18):
but if you do profile it, then you've documented your expectations around the extension and that's better
Nath (Jan 13 2020 at 15:09):
you are expected to create a 'profile' that defines the extension, and publish that at the URL you use to identify the extension - that way a system that encounters the extension can fetch it's documentation
thanks @Grahame Grieve . I looked at the hapifhir website under "Profiles and extensions" but didn't see the steps to create a profile. Could you please kindly point me to the link?. thanks.
David Hay (Jan 13 2020 at 19:29):
https://fhirblog.com/2019/03/07/how-to-profile/ has a reference to the firely documentation...
Nath (Jan 14 2020 at 03:51):
thanks @David Hay for the link.
Last updated: Apr 12 2022 at 19:14 UTC