Appearance
sdc/reserved-name
error Reports a declaration of a name that FHIRPath, FHIR or SDC defines.What it checks
Looks at the name of every declaration: variables, other named expressions such as an itemPopulationContext, launchContexts and extractAllocateIds. It reports a name that FHIRPath defines (%context, %ucum), that FHIR defines (%resource, %rootResource, %sct, %loinc, %terminologies, %factory, %server, and any name that starts with vs- or ext-), or that SDC defines (%questionnaire, %qitem).
Example
The name %qitem is defined by SDC, so a form cannot declare it; it is unclear which value expressions that use it get.
fsh
Instance: reserved-name-variable
InstanceOf: Questionnaire
Usage: #example
* status = #draft
* item[0].linkId = "bmi"
* item[=].type = #string
* item[=].extension.url = "http://hl7.org/fhir/StructureDefinition/variable"
* item[=].extension.valueExpression.name = "qitem"
* item[=].extension.valueExpression.language = #text/fhirpath
* item[=].extension.valueExpression.expression = "%resource"