Closed ageryck closed 4 months ago
@ndegwamartin and @ageryck have tested the first two cases when the minimum date is set to the patient's birthdate and when it is set to a given date. the date picker restricts dates to be picked according to the values respectively you can see the images appended above.
@brandy-kay the first screenshot looks okay however it is not visible on the second kindly confirm it is restricted based on the patient birthdate queried through an expression and equally limits the max value as set. If yes then you can proceed to add some documentation about this.
sure @ageryck let me test it futher
Describe the feature request. Allow the SDC to evaluate variables passed with definite values to be evaluated via cqf expression. An example will be testing a
minDate
value of a static date provided to validate thedatepicker
widget.Additional context Refer to these two tickets https://github.com/google/android-fhir/issues/2292 https://github.com/google/android-fhir/issues/1759
And the Implementing PR - https://github.com/google/android-fhir/pull/2326
Acceptance criteria
minDate
on the date picker and use it for widget validationminDate
Implementation plan (For Engineers) The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed. _i.e. Describe how you intend to solve the problem
Demo