Appearance
sdc/unknown-function
error Reports a call to a function that fhirpath.js does not implement.What it checks
Every function call in an expression whose language is text/fhirpath, or in a {{…}} fragment of an x-fhir-query, at a catalogued location or found elsewhere in the Questionnaire, is compared with the functions fhirpath.js 4.10.1 implements. Calls on %factory and %terminologies are not checked, because fhirpath.js resolves them against their own functions.
Example
fist() is not a FHIRPath function, so this expression fails when the form runs.
fsh
Instance: unknown-function-similar-name
InstanceOf: Questionnaire
Usage: #example
* status = #draft
* item[0].linkId = "a"
* 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 = "a.fist()"