Stream: implementers
Topic: Increasing cardinality in Simplifier resource
Omar El-Begawy (Feb 16 2017 at 13:12):
Hi,
The resource FinnishPatient (https://simplifier.net/FinnishPHR/FinnishPatient) is based on the Patient resource (https://www.simplifier.net/core-base-resources/Patient). I would like to make a new resource using FinnishPatient as a base, and which contains the telecom field from the original Patient. When I open the FinnishPatient resource in Forge (San Antonio 2017 edition), I can see the telecom field in the editor as overlined, but I cannot restore it. When I try to change its cardinality from 0..0 to anything else, the program gives a validation error, and says that cardinalities can only be restricted.
Can anyone please tell me how to change or increase the cardinality of a resource in Forge?
Michel Rutten (Feb 16 2017 at 14:15):
@Omar El-Begawy this is by design. According to FHIR rules, a profile can only further constrain the base profile. Specifically, you can only further limit the element cardinality. So if the base profile prohibits a certain element (max = 0), then derived profiles can never relax that constraint.
Michel Rutten (Feb 16 2017 at 14:17):
The reasoning behind this is that an instance that conforms to one of the derived profiles must also conform to the base profile, per definition. So a base profile cannot be "stricter" than a derived profile.
Last updated: Apr 12 2022 at 19:14 UTC