The FHIR documentation highlightsNote that though a profile can constrain an element from x.. to x..1, this doesn't make any difference to the representation in the JSON format - the element will still be represented in an array. As an example, take Patient.name which has a cardinality of 0... In an unprofiled Patient, ... (https://www.hl7.org/fhir/profiling.html#cardinality)
However in the code it seems to me that the validation of multiple (Array/Object) is based on the cardinality of the profile.
Shouldn't the definition of multiple (Array/Object) be based on ElementDefinition.base.max instead of ElementDefinition.max?And that there is a permitted quantity inside the list?
The FHIR documentation highlights Note that though a profile can constrain an element from x.. to x..1, this doesn't make any difference to the representation in the JSON format - the element will still be represented in an array. As an example, take Patient.name which has a cardinality of 0... In an unprofiled Patient, ... (https://www.hl7.org/fhir/profiling.html#cardinality)
However in the code it seems to me that the validation of multiple (Array/Object) is based on the cardinality of the profile.
Shouldn't the definition of multiple (Array/Object) be based on ElementDefinition.base.max instead of ElementDefinition.max?And that there is a permitted quantity inside the list?
profile:
You should consider it correct: