Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalculatedExpressions not working? #151

Open
annabel-uzl opened this issue Jun 13, 2024 · 1 comment
Open

CalculatedExpressions not working? #151

annabel-uzl opened this issue Jun 13, 2024 · 1 comment

Comments

@annabel-uzl
Copy link

Hi,
I was playing with fhirpath and calculatedExpressions but I could not seem to get it working. I now tried this example: https://build.fhir.org/ig/HL7/sdc/Questionnaire-questionnaire-sdc-profile-example-form-behavior.json.html to check if this works, but this also does not render e.g. the BMI. I would expect if height and weight are filled in, BMI is calculated as this is how it's advertised on https://build.fhir.org/ig/HL7/sdc/expressions.html#fhirpath "This expression allows for dynamic calculation of answers to questions as other questions are answered. It behaves similarly to initialExpression extension, but instead of only setting its value when the QuestionnaireResponse is originally created or when a question is enabled, the value updates continuously as the answers to dependent questions change."
Can this be a bug in the Lforms package?

@plynchnlm
Copy link
Member

Both calculatedExpression and initialExpression are supported. For examples, you can try the "Featured Forms" in "SDC Questionnaire App" (which uses lforms). I will have to take a look at the example form you mention to see why it isn't working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants