FHIR Chat · Base element of inherited profile · Profiling Academy - archived

Stream: Profiling Academy - archived

Topic: Base element of inherited profile


view this post on Zulip Elsie Hoffet (Sep 21 2020 at 15:11):

Hi all,

@Melina Chamayou and I are trying to write StructureDefinitions for profiles based on existing profiles.
Let's consider the attribute "category" of the Observation resource. Its cardinality is (0,*).
A first profile, we call it profile 1, adds a constraint on this attribute : cardinality (1,*).
A second profile, based on profile 1, adds another constraint to the same attribute : cardinality (1,1). We call it profile 2.
Profile 2 is inherited from profile 1, which itself is inherited from the Observation resource.

Our question is the following. We consider the element "category" of the snapshot of profile 2. Should its base.min be equal to 0 or 1 ? In other words, should the base of an inherited profile be the original resource, or the profile it is based on ?

I hope my question is as clear as possible, please don't hesitate to ask if it is not.

Thanks a lot for the feedback,

Elsie

view this post on Zulip Richard Townley-O'Neill (Sep 21 2020 at 21:43):

In profile 2 you do not need to specify a min in the differential, the snapshot will inherit the min from profile 1.

view this post on Zulip Melina Chamayou (Sep 22 2020 at 08:31):

Thanks for your answer @Richard Townley-O'Neill !


Last updated: Apr 12 2022 at 19:14 UTC