FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
All structures in Reveal campaigns will be assigned a business status and associated color on the map. We need to reproduce this feature in the FHIR app.
Additionally, we need the business logic behind the task logic to be configurable. So, for example, "sprayed" or "not yet visited" do not need to be hardcoded into the app.
[ ] Support calculation of task business status when filling in questionairres. Business status is calculated from a combinations of various answers on the form e.g SPRAYED status is assigned to a structure when house hold is accessible && unsprayed reason not filled && Unsprayed total in first round = 0 || Unsprayed total during mop up = 0
[ ] Make logic for calculating the task business status configurable
[ ] Support calculating grouped color coding status for structures that have more than 1 task. An example is a residential structure that can have 'Family Registration', Bednet Distribution, Blood screening. The aggregate color coding would look like
FOCUS INVESTIGATION (combination of task business status)
Family registered + bednet distributed + atleast one blood screening - Green
Family registered + no other task complete - Pink
Family registered + bednet distributed - blue
Family registered + blood screening - purple
This particular grouping would entail fetching task data related to a structure and family members from the app db
[ ] Support displaying different colors on the structures depending on the task business status e.g SPRAYED - GreenNOT SPRAYED - red (3 hrs)
We can use MVEL to store configurable logic i.e functions and encode them in base64 to be stored as a JSON field.
A FHIR Basic Resource can be used for representation as an FHIR resource.
All structures in Reveal campaigns will be assigned a business status and associated color on the map. We need to reproduce this feature in the FHIR app.
Additionally, we need the business logic behind the task logic to be configurable. So, for example, "sprayed" or "not yet visited" do not need to be hardcoded into the app.
SPRAYED
status is assigned to a structure whenhouse hold is accessible && unsprayed reason not filled && Unsprayed total in first round = 0 || Unsprayed total during mop up = 0
Bednet Distribution
,Blood screening
. The aggregate color coding would look likeThis particular grouping would entail fetching task data related to a structure and family members from the app db
SPRAYED - Green
NOT SPRAYED - red
(3 hrs)Good candidate for CQL - No timelines