Stream: shorthand
Topic: any examples how to slice contained by type
Eric Haas (Oct 07 2020 at 00:41):
any examples how to slice contained by type
David Pyke (Oct 07 2020 at 00:58):
I have a bundle with entries sliced by type: https://build.fhir.org/ig/DavidPyke/CEQSubscription/StructureDefinition-CEQNotificationBundle.html
Eric Haas (Oct 07 2020 at 01:14):
I am interested in the fsh structure not the rendered output
David Pyke (Oct 07 2020 at 01:16):
- type = #transaction (exactly)
- entry ^slicing.ordered = false
- entry ^slicing.rules = #open
- entry ^slicing.discriminator.type = #type
- entry ^slicing.discriminator.path = "resource"
- entry ^slicing.description = "Slice based on the entry.resource type"
-
entry contains
subscriptionentry 1..1 -
entry[subscriptionentry].resource 1..1
- entry[subscriptionentry].resource only CEQsubscription
- entry[subscriptionentry].request.method = #POST
Last updated: Apr 12 2022 at 19:14 UTC