You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Task.restriction is not a search param and therefore the FHIR Engine in the Android FHIR SDK does not allow us to use it to get tasks whose restriction.period.end is below the current date/datetime. Therefore we can either:
Run a raw query directly using a separate SQLiteOpenHelper since FHIR Engine does not allow us to run the query. This allows us to run full-scan queries without locking the database and slowing down other reads and writes requested by the app on the foreground.
Use the FHIR Engine to get tasks which are neither cancelled nor completed and then add code to check the restriction end dates. This will run on the TokenIndexEntity table using an index. This will reduce the runtime of these queries and minimize the lag introduced
Enhancement context
overdue
tasks. However, some tasks get expired after a certain period of them beingoverdue
Task.status
tocancelled
.Task.restriction.period.end
. If the end date is =<today()
then the task is expired.Implementation
application_config
. In case it's not added then the default is set to 1 hour.Task.restriction.period.end
should be used to determine the task expiry.Task.restriction.period.end
date =<today()
then update theTask.status
tocancelled
Acceptance Criteria
cancelled
.The text was updated successfully, but these errors were encountered: