FHIR Chat · exluding identifierr.type in a slice · shorthand

Stream: shorthand

Topic: exluding identifierr.type in a slice


view this post on Zulip David Hay (Oct 01 2020 at 18:22):

The following FSH should result in type being excluded (card. set to 0..0) in the slice shouldn't it? It doesn't seem to be

* identifier[dormant].system = "https://standards.digital.health.nz/ns/hpi-provider-id" (exactly)
* identifier[dormant].use = #old (exactly)
* identifier[dormant] ^short = "CPN (Common Person Name) identifiers that have been deprecated for this Person"
* identifier[dormant] ^definition = "An HPI Person Identifier or CPN of the person that is no longer in use.   An HPI Person ID becomes dormant when it is discovered that 2 CPNs exist for the same person. The CPNs are linked, one becomes ‘live’ the other ‘dormant’."
* identifier[dormant].type 0..0

view this post on Zulip Chris Moesel (Oct 01 2020 at 19:04):

It looks like it's not 0..0 in the slice because it's already 0..0 for all slices. Is that not intentional? Hard to see without the rest of your FSH.

But if I paste the following example FSH into FSH Online, I see the 0..0 correctly applied to only the dormant slice:

Profile: MyPractitioner
Parent: Practitioner
* identifier ^slicing.discriminator.path = "use"
* identifier ^slicing.discriminator.type = #value
* identifier ^slicing.discriminator[1].path = "system"
* identifier ^slicing.discriminator[1].type = #value
* identifier contains dormant 0..*
* identifier[dormant].system = "https://standards.digital.health.nz/ns/hpi-provider-id" (exactly)
* identifier[dormant].use = #old (exactly)
* identifier[dormant] ^short = "CPN (Common Person Name) identifiers that have been deprecated for this Person"
* identifier[dormant] ^definition = "An HPI Person Identifier or CPN of the person that is no longer in use.   An HPI Person ID becomes dormant when it is discovered that 2 CPNs exist for the same person. The CPNs are linked, one becomes ‘live’ the other ‘dormant’."
* identifier[dormant].type 0..0

Last updated: Apr 12 2022 at 19:14 UTC