FHIR Chat · slicing by type fhirpath · implementers

Stream: implementers

Topic: slicing by type fhirpath


view this post on Zulip 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"
        }

view this post on Zulip Patrick Werner (Apr 15 2020 at 13:19):

but i don't fully understand if $this is used, or $this.resolve().

view this post on Zulip 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?

view this post on Zulip Grahame Grieve (Apr 15 2020 at 13:21):

you can't determine the resource type from the reference itself

view this post on Zulip Patrick Werner (Apr 15 2020 at 13:21):

Probably i'm completely wrong, but couldn't find the answer to this question-

view this post on Zulip Patrick Werner (Apr 15 2020 at 13:22):

So if i want to slice Observation.derivedFrom i would declare $this.resolve()

view this post on Zulip Grahame Grieve (Apr 15 2020 at 13:22):

y


Last updated: Apr 12 2022 at 19:14 UTC