FHIR Chat · Slicing Observation Performer · shorthand

Stream: shorthand

Topic: Slicing Observation Performer


view this post on Zulip Christian Nau (Apr 21 2021 at 15:10):

Hi, I'm trying to create an Observation-Profile that specifies that there must be a Practitioner-Reference in the performer array (other references should be allowed optionally).
For this I defined the following slicing:

* performer ^slicing.discriminator.type = #pattern
* performer ^slicing.discriminator.path = "$this"
* performer ^slicing.rules = #open
* performer ^slicing.description = "Slice based on performer"
* performer contains practitionerPerformer 1..1 MS
* performer[practitionerPerformer] only Reference(Practitioner)

I also tried reference instead of $this for the discriminator.path

Sushi compilation works, but IG generation fails with the error Slicing cannot be evaluated: Could not match discriminator ([reference]) for slice Observation.performer:practitionerPerformer in profile https://.../observation - the discriminator [reference] does not have fixed value, binding or existence assertions

What am I doing wrong for the slicing?

view this post on Zulip ryan moehrke (Apr 21 2021 at 15:27):

if you just need a practitioner use the slicing type of "type" not "pattern" https://www.hl7.org/fhir/profiling.html#discriminator

view this post on Zulip Christian Nau (Apr 21 2021 at 15:55):

Ah! Thank you! This solved it.


Last updated: Apr 12 2022 at 19:14 UTC