Health Tasks workflow #1557
Replies: 5 comments 14 replies
-
What's the corresponding FHIR task status for overdue? |
Beta Was this translation helpful? Give feedback.
-
There's an interesting library here from Tinder we can check out https://github.com/Tinder/StateMachine |
Beta Was this translation helpful? Give feedback.
-
Thanks for the write-up, based on the description, this sounds broader, more about Task Workflow / Management than the state machine specifically, because the state machine is only one sub-component of the different interactions you are describing, like scheduling and loading of specific questionnaires seem key to this but outside the scope of what is normally a state machine. With $apply getting closer (maybe it won't be ready in time) we should consider if we can use it for the task generation portions, like rerunning it after data changes to generate the updated tasks. Ignoring the question of whether they're embedded in a CarePlan or not, does $apply generate all or only currently applicable tasks? |
Beta Was this translation helpful? Give feedback.
-
@pld @f-odhiambo I will go ahead and create the SDK-related issue for it to be worked on. |
Beta Was this translation helpful? Give feedback.
-
@dubdabasoduba how do we handle expired tasks - these are the tasks that became overdue but were not completed. If they are not completed within a specific period of time, then they become irrelevant to the user thus are termed as expired. They are no longer seen on the client profile. Example is a referral task that was not followed up after when it was supposed to be followed up. |
Beta Was this translation helpful? Give feedback.
-
Defining the flow of Tasks through the different statuses
Tasks status
executionPeriod.start
date is in the future.executionPeriod.start
date is <= to today and theexecutionPeriod.end
date >= todaydraft
completed
executionPeriod.end
date < todaycancelled
status on the Task resource. This is a Task that has been Overdue for a while and therefore it can't be performed anymore.Tasks Color Coding
Current Workflow.
executionPeriod.end
date.Proposed workflow
Tasks generation changes
completed
[Quest] Updating the Tasks generation to on demand instead of all at once #1696executionPeriod.end
is >= to the CarePlanperiod.end
date.Overdue
Tasks. This means these Tasks will be clickable and the users could fill up the Questionnaires tied to them. [Quest] Allow completion of Overdue Tasks #1697executionPeriod.end
date to the date the Questionnaire is completed.cancelled
.restriction.period
to hold the allowed lifespan of the TasksexecutionPeriod.start
. It's the DateTime the task is supposed to start.Task.input.valueReference
property on the Task. This accepts different kinds of data types one of them being a Resource Reference.QuestionnaireResponse.status
property is set toComplete
[Quest] Update Extraction triggering to only happen for QuestionnaireResponses with thestatus
==Completed
#1700Tasks state machine changes
Overdue
Tasks. This service can be run every time the Tasks are loaded on each page.cancelled
) tasks. This service can be run periodically.status
tocancelled
.Ready
Tasks. This service can run in 2 different ways [Quest] Add the ability to mark Tasks are Ready. #1701executionPeriod.start
date == to today then change theTask.status
property toready
QuestionnaireResponse.status
property to identify whether the QuestionnaireResponse isIn Progress
. The functionality then updates the TaskTask.status
property toIn Progress
. [Quest] Add the ability to mark Tasks as Complete or In progress #1702QuestionnaireResponse.status
property to make sure it's set toCompleted
before marking a Task as complete. [Questionnaires] Adding the ability to save QuestionnaireResponse as In Progress #1631**Questionnaire Response Changes -- SDK Related #1631
QuestionnaireResponse.status
property toIn Progress
.QuestionnaireResponse.status
property toin progress
, then redirects to the screen before the questionnaire render.Beta Was this translation helpful? Give feedback.
All reactions