TIP-Global-Health / eheza-app

Apache License 2.0
3 stars 1 forks source link

[META]: Eheza Reports #906

Open anvmn opened 9 months ago

anvmn commented 9 months ago

Requirements from https://docs.google.com/document/d/1-6ToGLuCbmeI4wKH5IwI6KL-tkjRlimEZYk3HUD_A48/edit:

We need a site that is capable of displaying high-level statistics from the e-heza usage that can also be filtered by date range and demographic areas (geofields hierarchy / health center).

The site will be used by administrators and implementers and will not be used by healthcare workers on the ground. As such, the application will not need to work without web connection and can use a normal web interface with a browser.

We envision several groupings of data:

Requirements:

anvmn commented 1 month ago

@adamhstewart

Analysed the requirements, and as I see this, there's no need to create dedicated portal. We can have this on our back-end.

that can also be filtered by date range and demographic areas (geofields hierarchy / health center).

This rules of the usage of existing scripts, if we want to be able to provide quick replies. There are numerous variations of inputs, and we can't prepare a data set (using scripts) that can support this. Also, Pantheon times out when response to request takes more than 60 seconds to generate.

A solution I suggest is similar to what we have for aggregated NCDA:

Ideally the data would be consumable in a standardised format so that we could provide other interfaces to some eta of the data for other purposes.

This implies that back-end will need to generate final results, which is not supported by suggested solution. We had same issue with NCDA, and decided that we'll deal with it if actual requirements will come from customer. I suggest we take similar approach here (and if possible, reject requests for API).

anvmn commented 1 month ago

@adamhstewart

POC demo:

Peek 2024-05-24 00-05

anvmn commented 1 month ago

@adamhstewart

Went through Demographics report script, and found that the scope of Registered Patients part is:

The scope of Encounters part also includes:

Nutrition report scope is:

To determine impacted, it uses the table created for Demographics report, so we have a potential for impacted calculation to be slightly off.

Should we adjust the scope of Demographics patients report? Add SPV? Home encounter? We also have additional types of encounter now (Child scorecard, TB, HIV)?

anvmn commented 1 month ago

@adamhstewart

Isn't impacted defined by patient that had 2 or more encounters? Currently, the label says 'more than 2 visits':

Selection_590

anvmn commented 2 weeks ago

@adamhstewart

Questions for demographics report:

Questions for nutrition report:

adamhstewart commented 2 weeks ago
  1. Postpartum encounters should be included under ANC, not acute illness
  2. All encounter should be counted. I pushed a new PR called fix – reports that is more inclusive, but we should add to that also HIV and TB management.
  3. Nutrition report should include all encounters in which nutrition measurements are taken, nutrition, and SPV.
  4. Impacted scope for nutrition should only include nutrition encounters to determine if the patient is impacted.