Event Management on FHIR Core #1953
Replies: 8 comments 15 replies
-
Some comments
|
Beta Was this translation helpful? Give feedback.
-
On Refresh/Invalidate Cache
Remote/p2p
Start/stop background jobs
|
Beta Was this translation helpful? Give feedback.
-
Some of the events described here are handled by using Android LiveData and ViewModel e.g. (the events under this section Refresh/Invalidate cache). Is the general objective to of this discussion to implement some sort of a generic event bus to handle all the events? |
Beta Was this translation helpful? Give feedback.
-
The current implementation handles completing a CarePlan only when a task has both expired and is the last task on that careplan |
Beta Was this translation helpful? Give feedback.
-
Here are some options for consideration when thinking about building a generic event bus Livedata
Flows
StateFlow and SharedFlow StateFlow SharedFlow Channel
Resources
|
Beta Was this translation helpful? Give feedback.
-
One of the use-cases for event management as outlined above is Redirecting to different screens. An example of this would be redirecting the user to the family register after a family has been removed. The current implementation redirects the user to the household profile. @ellykits @dubdabasoduba it would be prudent to have a discussion about the different use cases that would need to be handled in addition to how configurability would be approached |
Beta Was this translation helpful? Give feedback.
-
Event Management | CarePlan and Related resources Closure Update
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Introduction
This discussion is to highlight the different event types and the different functions that need to the performed before or after each event.
Event Types
Event functions
Event Types & functions use cases.
1. Questionnaire Open & Closure
Update different resources in the local database.
Use Case 1: Child patient age update
canceled
. This means the patient is now eligible for the CarePlan and subsequent Tasks.Use Case 2: ANC patient with a Pregnancy Outcome
Use Case 3: Removing a patient or family
canceled
.Redirecting to different parts of the Application
Use Case 1: Redirecting to different screens
Refresh/Invalidate cache.
Use Case 1: Removing a patient or family.
User Case 2: Tasks generation or cancellation.
2. Remote / P2P sync start & completion
Notify users of any changes
Use Case 1: Updating the sync setting page and sync timestamps.
Use Case 2: Showing the users the snack bars after the sync is complete.
Start/Stop Background jobs
Use Case 1: Reruning the report generation background jobs on sync completion.
Refresh/Invalidate cache.
User Case 1: Refreshing/Invalidating the registers and profile cache on sync completion.
Beta Was this translation helpful? Give feedback.
All reactions