Appearance
sdc/unresolved-linkid
warning Reports a literal linkId that no item in the Questionnaire has.What it checks
Looks at each where(linkId = '…') in a FHIRPath expression, and in each {{…}} fragment of an x-fhir-query, that selects items of this form: from %questionnaire, %resource or %context, from %qitem on an item, or from the expression’s own input, through item, answer, repeat(…), where(…) and select(…). The linkId must be the linkId of an item somewhere in the Questionnaire; whether the selection reaches that item’s depth is not checked.
Example
No item in this Questionnaire has linkId 'smokr'.
fsh
Instance: unresolved-linkid-similar
InstanceOf: Questionnaire
Usage: #example
* status = #draft
* item[0].linkId = "smoker"
* item[=].type = #boolean
* item[+].linkId = "q"
* item[=].type = #string
* item[=].extension.url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression"
* item[=].extension.valueExpression.language = #text/fhirpath
* item[=].extension.valueExpression.expression = "%resource.repeat(item).where(linkId = 'smokr').answer.value"