FHIR Chat · External extension used in instance · shorthand

Stream: shorthand

Topic: External extension used in instance


view this post on Zulip Elliot Silver (Jul 21 2021 at 04:52):

Are all three of these extension uses valid? For some reason only the third is accepted.

The extension is defined in an IG that this IG has a dependency on.

Alias: $ext-ca-aboriginalidentitygroup = http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-aboriginalidentitygroup
Alias: $cs-hl7-dar  = http://terminology.hl7.org/CodeSystem/data-absent-reason

Instance: CaPatientInstance
InstanceOf: http://hl7.org/fhir/ca/baseline/StructureDefinition/profile-patient
Title: "Sample CA Baseline Patient Instance"
Description: "Patient instance conforming to CA Baseline PatientProfile"
Usage: #example

* extension[$ext-ca-aboriginalidentitygroup].valueCoding = $cs-hl7-dar#not-asked

* extension[http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-aboriginalidentitygroup].valueCoding = $cs-hl7-dar#not-asked

* extension[+].url = "http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-aboriginalidentitygroup"
* extension[=].valueCoding = $cs-hl7-dar#not-asked

view this post on Zulip Chris Moesel (Jul 21 2021 at 13:06):

Hi @Elliot Silver. All three approaches should work. I have a simple demonstration here w/ one of the extensions that comes in FHIR core: https://fshschool.org/FSHOnline/#/share/3iwFJAz

The problem you're running into is that the particular extension you're using has an incomplete snapshot. This actually has come up before with this very same extension! See: https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/How.20to.20add.20extension.20using.20Sushi/near/226152809

view this post on Zulip Elliot Silver (Jul 21 2021 at 15:06):

Wow, thanks for tracking that down. So this comes from the Simplifier issue of not generating snapshots?

view this post on Zulip Chris Moesel (Jul 21 2021 at 17:26):

No. There is a snapshot. The problem is that the snapshot is incomplete. More specifically, it does not contain the base Extension.value[x] element in it. It contains the slice (Extension.value[x]:valueCoding), but not the actual element that is _being_ sliced.

view this post on Zulip Elliot Silver (Jul 21 2021 at 17:53):

That sounds like an error with Simplifier, rather than CA Baseline, correct?

(@Ward Weistra, @Sheridan Cook , @Joel Francis )

view this post on Zulip Chris Moesel (Jul 21 2021 at 18:16):

I don't know how that snapshot was generated, so it's hard to say...

view this post on Zulip Elliot Silver (Jul 21 2021 at 18:29):

My understanding is that they're developing the profiles in Simplifier, then downloading the package, and using it as input for the IG publisher. (Which also means we're straying from FSH concerns.)

view this post on Zulip Ward Weistra (Jul 26 2021 at 11:17):

@Elliot Silver I don't think this is on the Simplifier side either.
Indeed, CA Core is being developed on Simplifier, but without snapshots (as is good practice in development): https://simplifier.net/CanadianFHIRBaselineProfilesCA-Core/ExtensionAboriginalIdentityGroup/~xml. If you download the resource with snapshot from Simplifier (Download > Download snapshot as JSON) it includes the Extension.value[x] element in the snapshot that is missing from the published version.

Even if they would give them with snapshots to the IG publisher, I assume the IG publisher would regenerate them. But I'm not sure about that.

view this post on Zulip Elliot Silver (Jul 26 2021 at 15:17):

Hi Ward, it looks like I misunderstood the CA Baseline workflow -- they are editing the IG by hand and using GitHub sync to copy into simplifier. As I dig further, it doesn't look like a Simplifier issue. Sorry.

view this post on Zulip Ward Weistra (Jul 27 2021 at 07:32):

@Elliot Silver No worries, always happy to help debugging!


Last updated: Apr 12 2022 at 19:14 UTC