Support fhirpath supplement context literal #1958
Labels
effort:medium
Medium effort - 3 to 5 days
P1
High priority issue
type:enhancement
New feature or request
Is your feature request related to a problem? Please describe.
To make question fhirpath dynamic and have current questionnaire item we need to support fhirpath supplement context literal. This allow to get current questionnaire item as %context into fhirpath expressions on questionnaire items. Details for spec defined here https://build.fhir.org/ig/HL7/sdc/expressions.html#fhirpath-supplements .
Describe the solution you'd like
An implementation exists in PR #1957 . This has a catalog implementation as an example as well. The enableWhen evaluate method passes the questionnaireResponseItem when calling evaluate for expression.
Additional context
This is a bug fix and the changes MAY affect existing use of enableWhenExpression where anyone tried to write expression for questionnaireResponse as $this. $this refers to current item under consideration aka %context as well. Old implementation might have entertained $this as questionnaireResponse. Hence anyone using expression wrongfully can have erratic behavior for their current enableWhenExpressions
Would you like to work on the issue?
Done in PR #1957
The text was updated successfully, but these errors were encountered: