Stream: implementers
Topic: 0..* cardinality in a complex extension
Andrew Patterson (Oct 17 2018 at 03:12):
I feel I should know the answer to this - but can't find any examples to clarify my thinking..
If I have a complex extension - and I want the cardinality of the internal slice 'targetPanel' to be 1..* (min value="1", max value="*").. how then would I actually make an instance of this extension?
This is the best I've come up with - but feels wrong..
"resource": {
"extension": [
{
"extension": [
{
"url": "targetPanel",
"valueString": "Test Panel 1"
},
{
"url": "targetPanel",
"valueString": "Test Panel 2"
}
],
"url": "http://my-complex-extension.org"
}
]
Grahame Grieve (Oct 17 2018 at 03:13):
no that's right
Andrew Patterson (Oct 17 2018 at 03:14):
ah, ok.. the multiple cardinality elements at a resource level end up in arrays rather than as repeated elements.. so I thought this might be wrong.. all good. Thanks!
Lloyd McKenzie (Oct 17 2018 at 03:35):
That's correct.
Last updated: Apr 12 2022 at 19:14 UTC