-
Notifications
You must be signed in to change notification settings - Fork 285
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
App crashing when dynamically setting the range for a date item #1759
Comments
Thanks for raising this @KhumboLihonga. Unfortunately i don't think the sdc library supports this right now - we do try to evaluate FHIRPath expressions in the calculatedValue extension (with canonical url @brynrhodes can you help here please? what should the questionnaire be if we want to reference a patient's birthdate? should we use launch context? fyi @maimoonak |
also @costateixeira might be able to help |
@jingtang10 have been trying to simulate this issue and here is my approach. I have made an update to this questionnaire and here is my output from the demo app. |
I think this is now possible with launch context, variable expression and constraits. |
This is obsolete and confirmed by Ager. |
Describe the bug
The use case is that when entering a patient's test date, the date range should be after the patient's birth date and also not a future date. When the former is applied and the date picker is tapped, the app crashes.
Component
SDC library
To Reproduce
N/A
Expected behavior
I expect the date picker to open with the range applied accordingly.
Screenshots
N/A
Smartphone (please complete the following information):
Additional context
Here is the questionnaire I'm using to test this. Specifically, this line is what is causing the crash,
"expression": "@Patient.birthDate"
. I've tried a number of ways to do this but can't seem to get it to work.Here is the log:
Would you like to work on the issue?
This can be a follow up to #1442
The text was updated successfully, but these errors were encountered: