FHIR Chat · error Inline extensions should only be defined in Extensions · shorthand

Stream: shorthand

Topic: error Inline extensions should only be defined in Extensions


view this post on Zulip Jose Costa Teixeira (Jun 16 2021 at 09:12):

This error is new to me. How do I get around it?
My simple fsh:

Profile: MyAddress
Parent: Address
* extension contains region 0..1 MS
* extension[region].value[x] only CodeableConcept

view this post on Zulip Nick Freiter (Jun 16 2021 at 13:03):

FSH only allows "inline" extensions to be placed on other extensions, so if you want to add an extension to a profile, you have to first define the extension as its own entity, and then use it on the profile. So something like this:

Profile: MyAddress
Parent: Address
* extension contains Region named region 0..1 MS


Extension: Region
Id: region
* value[x] only CodeableConcept

For reference, it appears we decided to disallow inline extensions on profiles in this thread.


Last updated: Apr 12 2022 at 19:14 UTC