FHIR Chat · Slicing and setting a profile at the same time · IG creation

Stream: IG creation

Topic: Slicing and setting a profile at the same time


view this post on Zulip Jean Duteau (Jun 10 2021 at 03:03):

I have a guide where I'm slicing Organization.telecom and I'm also setting the datatype to be a profile at the same time. If I declare the profile at the top-level:

* telecom 2..* MS
* telecom only SPLContactPoint
* telecom ^slicing.discriminator.type = #value
* telecom ^slicing.discriminator.path = "system"
* telecom ^slicing.rules = #open
* telecom ^slicing.description = "Require a telephone number and an email address."
* telecom contains Phone 1..1 MS and Email 1..1 MS
* telecom[Phone].system = #phone
* telecom[Email].system = #email

then although the StructureDefinition says that telecom is ContactPoint(SPLContactPoint), the table view doesn't show it:
Screen-Shot-2021-06-09-at-8.59.33-PM.png

If I declare the profile on the slices, then it does show up as I would expect:
Screen-Shot-2021-06-09-at-9.00.05-PM.png

view this post on Zulip Lloyd McKenzie (Jun 10 2021 at 15:19):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Jun 11 2021 at 17:04):

how do I reproduce this?

view this post on Zulip Jean Duteau (Jun 11 2021 at 17:28):

https://github.com/HL7/fhir-spl/

If you look at input/fsh/CommonOrganization.fsh, the profile for USAgentOrganization has the 2nd where I've set the profile on the slices. If you change that to the code I posted above (where the profile is set at the top-level), then you can see the 1st table view.

view this post on Zulip Grahame Grieve (Jun 14 2021 at 05:29):

fixed next release


Last updated: Apr 12 2022 at 19:14 UTC