-
Notifications
You must be signed in to change notification settings - Fork 296
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
Implement inequality operators (<, >, <=, >=) in the enable when statement #818
Comments
@maimoonak can you briefly describe your use case? thanks! |
We want to use Enable when for condition age >= 15 but this crashes EnableWhen on answerInteger (crashes when value input for integer field) Alternate enableExpression is also not workingis is not supported |
@jingtang10 and me had below offline discussion. Its in progress. |
linking #847 which was done to prepare for this change |
Is your feature request related to a problem? Please describe.
See documentation for enable when operators: https://www.hl7.org/fhir/valueset-questionnaire-enable-operator.html
At the moment we support exists/eq/not eq but none of the inequality operators.
Describe the solution you'd like
Code change needs to be made here:
android-fhir/datacapture/src/main/java/com/google/android/fhir/datacapture/enablement/EnablementEvaluator.kt
Line 120 in 7351fec
to support the 4 operators missing.
Describe alternatives you've considered
Don't think we can use things like fhir path engine. this needs to be implemented in the library.
Additional context
NA
Would you like to work on the issue?
NA
The text was updated successfully, but these errors were encountered: