Stream: implementers
Topic: Complex extension with cardinality zero-to-many
Silvia Lillie (Aug 14 2018 at 13:32):
I have a complex extension that I would need to configure as having items with cardinality more than one.
Is this legal?
How would the "repeated" data items be represented in json?
Example
A complex extension of a HealthcareService that contains the"Named Clinicians" associated to that Service and the "Additional Support Services" provided (such as Transport, Interpreter, Advocacy).
What I am working with so far is below (the data is fake, obviously), is this correct?
"extension": [ { "url": "[baseURL]/extension-HealthcareServiceAdditionalInfo-1", "extension": [ { "url": "namedClinician", "valueReference": { "reference": "[baseURL]/Practitioner/63429202", "display": "Richard Palmer" } }, { "url": "namedClinician", "valueReference": { "reference": "[baseURL]/Practitioner/8775522", "display": "Anna Foster" } } ] } ]
Lloyd McKenzie (Aug 14 2018 at 14:17):
That's correct. The repetitions happen at the extension level, not the value level. The values are polymorphic and we can't do repeating polymorphic elements.
Last updated: Apr 12 2022 at 19:14 UTC