Stream: shorthand
Topic: Profiles slicing Reference fields
Bas van den Heuvel (Jan 29 2020 at 11:00):
I'm trying to code some of our profiles in FHIR shorthand and I struggle getting some of the slicing done.
We want a profile that says that the basedOn field of a resource must contain at least one reference to a ServiceRequest. I could not get this working. Can someone provide me with an example on how to achieve this?
Jose Costa Teixeira (Jan 29 2020 at 11:22):
not sure, but this?
(salvaged from another profile)
* basedOn ^slicing.discriminator.type = #value * basedOn ^slicing.discriminator.path = "reference.type" * basedOn ^slicing.rules = #open * basedOn contains basedOnServiceRequest 0..1 MS * basedOn[basedOnServiceRequest].identifier.type.coding.code = #ServiceRequest
Bas van den Heuvel (Jan 29 2020 at 14:01):
That seams to work - thx
Last updated: Apr 12 2022 at 19:14 UTC