FHIR Chat · constraining external extension? · shorthand

Stream: shorthand

Topic: constraining external extension?


view this post on Zulip Bob Milius (Apr 08 2020 at 16:19):

I'm getting an error with this fsh when trying to constrain an external extension:

Alias: PatientBirthPlaceExtension = http://hl7.org/fhir/StructureDefinition/patient-birthPlace

Profile:        Mypatient
Parent:         us-core-patient
Id:             mypatient
Title:          "My Patient"
Description:    "My patient"

* extension contains PatientBirthPlaceExtension named PatBirthPlaceExt MS
* extension[PatBirthPlaceExt].city 1..1 MS

the error is

No element found at path extension[PatBirthPlaceExt].city for Mypatient, skipping rule

I must be missing something obvious, but what is it?

sushi v0.11.1

view this post on Zulip Bob Milius (Apr 08 2020 at 16:25):

Nevermind... forgot the valueAddress, ie

* extension[PatBirthPlaceExt].valueAddress.city 1..1 MS

view this post on Zulip David Hay (Apr 08 2020 at 18:32):

I do that kinda stuff all the time :)

view this post on Zulip David Hay (Apr 08 2020 at 18:33):

Nice that sushi picks it up for me!


Last updated: Apr 12 2022 at 19:14 UTC