opensrp / fhircore

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.
https://smartregister.org
Apache License 2.0
53 stars 41 forks source link

[Quest/eCBIS] - Configure Quest app to view measure report for Indicator 2 - Pregnancy Count #1391

Closed f-odhiambo closed 2 years ago

f-odhiambo commented 2 years ago

Reference Link: https://docs.google.com/spreadsheets/d/1Kfp0rRYlksrBoSIecAuovZ8Y3k8yH9mkmgHcpQbMtXI/edit#gid=446158820

Narrative We need to get :

  1. How many families are there
  2. Of the family members who are Female, of Reproductive Age and are pregnant

Each household or a family is represented using a group resource as outlined below

{
  "resourceType": "Group",
  "id": "107759",
  "meta": {
    "versionId": "3",
    "lastUpdated": "2022-04-14T13:54:41.656+00:00",
    "source": "#2f77c0c4a5d11f1e"
  },
  "identifier": [ {
    "use": "official",
    "value": "7bb7fa82-59e4-4744-a6d2-96722afca23b"
  }, {
    "use": "secondary",
    "value": "656766"
  } ],
  "active": true,
  "type": "person",
  "code": {
    "coding": [ {
      "system": "https://www.snomed.org",
      "code": "35359004",
      "display": "Family"
    } ]
  },
  "name": "Kamwana Rao",
  "managingEntity": {
    "reference": "RelatedPerson/2e2c9d4e-b67f-4673-8e83-e3f576046296"
  },
  "member": [ {
    "entity": {
      "reference": "Patient/c535f2e6-a17a-4b2a-913e-30e8b42553d0",
      "display": "Rao Kamwana"
    },
    "inactive": false
  }, {
    "entity": {
      "reference": "Patient/d0612f01-01c3-467e-9fbc-4e6ebe8bf9e6",
      "display": "Magarita Rao"
    },
    "inactive": false
  } ]
}

Narrative

  1. Count of all Female Patients enrolled on the app in each household
  2. Count of ANC Clients with active Pregnancies registered in the app, disaggregated by age and gender for each age group.

this will be via All patients with Pregnancy conditions and SNOMED code 77386006 as shown below

    "code": {
        "coding": [
            {
                "system": "http://snomed.info/sct",
                "code": "77386006",
                "display": "Pregnancy"
            }
        ],
        "text": "Pregnancy"
    },
  1. Age disaggregation will be (15-49)

Pre-requisite

  1. 700

  2. Add a household registration encounter e.g http://hl7.org/fhir/encounter-example-home.json.html
  3. 1233

  4. https://github.com/google/android-fhir/pull/1280

Subtasks

Acceptance Criteria

pld commented 2 years ago

How is the family/group related to this? Wouldn't you run the query against patients to get this indicator?

f-odhiambo commented 2 years ago

How is the family/group related to this? Wouldn't you run the query against patients to get this indicator?

We need to know how many Families/Households are present, of the family members how many are pregnant/ANC Clients based on the narrative that was shared

pld commented 2 years ago

OK, I think we need to update the narrative then, how this factors into the 2 indicators listed above is ambiguous.

  1. Count of all Female Patients enrolled on the app in each Households

is this the overall count of female patients? or is this the count of households that include a female patient, or something else?

  1. Count of ANC Clients with active Pregnancies registered in the app, disaggregated by age and gender for each age group.

do families not factor into this?

  1. Age disaggregation will be (0-11, 1-5, 6-14, 15-49, 50+)

Is this a disaggregation of the age of the pregnant woman? If so, these ranges don't make sense, eg 1-5

pld commented 2 years ago

Re-assigning to Anne and marking as blocked until we figure out the indicators exactly

AnnieMungai commented 2 years ago

@f-odhiambo @dubdabasoduba

pld commented 2 years ago

It's still not clear how to calculate this, can you please list out each indicator we will need to show, and for each include an example of what the inputs would be and the formula to calculate it?

maimoonak commented 2 years ago

Done. Two PRs for fhir-resources and fhircore are following. (Condition extraction is under progress in other ticket by Fikri)

Household pregnancy by age group | Measure Report from Composition #1404 Cucumber testing module | Household pregnancy measure fhir-resources/94

f-odhiambo commented 2 years ago

Check on the Date filter We should focus the date on the numerator count of interest thus if I add 1st to 31st January I should only get all ANC Clients enrolled in January