Stream: implementers
Topic: slicing by type fhirpath
Patrick Werner (Apr 15 2020 at 13:19):
If i want do slice on the resource type for Observation.derivedFrom i tried:
"slicing": { "discriminator": [ { "type": "type", "path": "$this" } ], "rules": "open" }
Patrick Werner (Apr 15 2020 at 13:19):
but i don't fully understand if $this is used, or $this.resolve().
Patrick Werner (Apr 15 2020 at 13:20):
this.resolve would resolve the referenced resource and check the type? While only $this looks at the referencepath to determine the Resource-type?
Grahame Grieve (Apr 15 2020 at 13:21):
you can't determine the resource type from the reference itself
Patrick Werner (Apr 15 2020 at 13:21):
Probably i'm completely wrong, but couldn't find the answer to this question-
Patrick Werner (Apr 15 2020 at 13:22):
So if i want to slice Observation.derivedFrom i would declare $this.resolve()
Grahame Grieve (Apr 15 2020 at 13:22):
y
Last updated: Apr 12 2022 at 19:14 UTC