FHIR Chat · Cardinality of 'source[x]' in Consent · implementers

Stream: implementers

Topic: Cardinality of 'source[x]' in Consent


view this post on Zulip Niek van Galen (May 01 2019 at 14:19):

We have a Dutch Functional model of TreatmentDirective (based on Consent, see here: https://simplifier.net/NictizSTU3-Zib2017/ZIB-TreatmentDirective), it deviates from the FHIR Consent resource in a broader .source that refers to multiple AdvanceDirectives (also based on Consent, see here: https://simplifier.net/nictizstu3-zib2017/zib-advancedirective).
For instance: two AdvanceDirectives can be needed to substantiate one TreatmentDirective. In the FHIR Consent resource, the cardinality of 'source[x]' is 0..1. Would there be objection to change the cardinality to 0..*?

view this post on Zulip Lloyd McKenzie (May 01 2019 at 14:28):

It's not possible to have a polymophic element (one ending in '[x]') that repeats. If there's a need to specify multiple sources, we'd have to change the structure so that an outer repeating element contained the polymorphic element.

view this post on Zulip Lloyd McKenzie (May 01 2019 at 14:28):

@David Pyke ?

view this post on Zulip David Pyke (May 01 2019 at 14:33):

We can definitely have a look at allowing multiple sources via a change but that is a significant variation from Consent that we've worked with to date. Can you open a CR so that we can review it during the WGM?

view this post on Zulip Niek van Galen (May 01 2019 at 14:44):

Thank you both. I will do that and ask @Alexander Henket to explain further at the WGM if needed.

view this post on Zulip Niek van Galen (May 01 2019 at 14:59):

Created GF#21224

view this post on Zulip John Moehrke (May 01 2019 at 15:37):

I would prefer we change source[x] to simply source as a Reference. Thus it could be 0..*


Last updated: Apr 12 2022 at 19:14 UTC