How the weight() function searches for score extensions
masterWhen evaluating weight(), the engine searches for the first available score extension for each source node using the following priority order:
- Source Node: Check the source node itself for a score extension.
- QuestionnaireResponse Answers: If the source node is an answer from a
QuestionnaireResponseor itsvalue[x]:- Check the
value[x]element for a score extension. - Check the corresponding answer option (if any) of the corresponding
Questionnaireitem for a score extension. - If the
Questionnaireitem references a containedValueSet, check the corresponding element there for a score extension.
- Check the
- Local CodeSystem: If the source resource (e.g.,
QuestionnaireResponse) orQuestionnairecontains a correspondingCodeSystem, check for a score extension (R4) or property (R5) there. - Terminology Server: Look for a score extension (R4) or property (R5) in the corresponding
CodeSystemloaded from a remote terminology server.