{
  "version": 1,
  "title": "Monthly report of Elderly program",
  "source_file": "Elderly_Program_Registration_draft_HHA.xlsx",
  "source_sheet": "Monthly_report",
  "source_sha256": "2d17adeb9d5c52dd478bb3a4bb343a6b0fb5cddf19ba48ad1d718e207a1be368",
  "month_cell": "B3",
  "year_cell": "C3",
  "columns": [
    "Indicator",
    "Male",
    "Female",
    "Total"
  ],
  "rows": [
    {
      "row": 6,
      "key": "new_enrolled",
      "label": "Number of new elder enrolled into the program",
      "entity": "register",
      "period": "month",
      "field": null,
      "value": null,
      "description": "Registration date falls in the selected month/year.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\")",
        "C": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\")",
        "D": "=SUM(B6:C6)"
      }
    },
    {
      "row": 7,
      "key": "calendar_year_enrolled",
      "label": "Cumulative number of elder registered in the program (within the calendar year)",
      "entity": "register",
      "period": "year",
      "field": null,
      "value": null,
      "description": "All registrations in the selected calendar year, including months after the selected month.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\")",
        "C": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\")",
        "D": "=SUM(B7:C7)"
      }
    },
    {
      "row": 8,
      "key": "chronic_disease",
      "label": "Number of registered elder with chronic diseases",
      "entity": "register",
      "period": "month",
      "field": "has_chronic_disease",
      "value": 1,
      "description": "New registrations in the selected month/year with chronic disease = affirmative.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\",Register[လက်ရှိ နာတာရှည်ရောဂါ],\"ရှိသည်\")",
        "C": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\",Register[လက်ရှိ နာတာရှည်ရောဂါ],\"ရှိသည်\")",
        "D": "=SUM(B8:C8)"
      }
    },
    {
      "row": 9,
      "key": "disability",
      "label": "Number of registered elder with disabilites",
      "entity": "register",
      "period": "month",
      "field": "has_disability",
      "value": 1,
      "description": "New registrations in the selected month/year with disability = affirmative.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\",Register[[လက်ရှိ မသန်စွမ်းမှု ]],\"ရှိသည်\")",
        "C": "=COUNTIFS(Register[Reg_Month],IF($B$3<>\"\",$B$3,\"*\"),Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\",Register[[လက်ရှိ မသန်စွမ်းမှု ]],\"ရှိသည်\")",
        "D": "=SUM(B9:C9)"
      }
    },
    {
      "row": 10,
      "key": "food_package",
      "label": "Number of elder who had been provided food package in the reporting month",
      "entity": "followup",
      "period": "month",
      "field": "food_package_amount",
      "value": "nonblank",
      "description": "Follow-up rows in the selected visit month/year with a nonblank food amount. Counts rows, not people or quantities.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[Food Pkt - Amount],\"<>\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[Food Pkt - Amount],\"<>\")",
        "D": "=SUM(B10:C10)"
      }
    },
    {
      "row": 11,
      "key": "household_package",
      "label": "Number of elder who had been provided HH package in the reporting month",
      "entity": "followup",
      "period": "month",
      "field": "household_package_amount",
      "value": "nonblank",
      "description": "Follow-up rows in the selected visit month/year with a nonblank household amount. Counts rows, not people or quantities.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[HH Pkt - Amount],\"<>\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[HH Pkt - Amount],\"<>\")",
        "D": "=SUM(B11:C11)"
      }
    },
    {
      "row": 12,
      "key": "medical_services",
      "label": "Number of elder who had been provided medical services at MAM or other medical center in the reporting month",
      "entity": "followup",
      "period": "month",
      "field": "medical_attendance",
      "value": 1,
      "description": "Follow-up rows in the selected visit month/year with regular medical attendance selected.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[လိုအပ်ပါက],\"ပုံမှန်ပြသနေသည်\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[လိုအပ်ပါက],\"ပုံမှန်ပြသနေသည်\")",
        "D": "=SUM(B12:C12)"
      }
    },
    {
      "row": 13,
      "key": "housing_services",
      "label": "Number of elder who had been provided housing services (renovation, etc) in the reporting month",
      "entity": "followup",
      "period": "month",
      "field": "housing_repair_received",
      "value": 1,
      "description": "Follow-up rows in the selected visit month/year with housing repair received selected.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[လိုအပ်ပါက 4],\"ရရှိပါသည်\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[လိုအပ်ပါက 4],\"ရရှိပါသည်\")",
        "D": "=SUM(B13:C13)"
      }
    },
    {
      "row": 14,
      "key": "social_support",
      "label": "Number of elder who had been provided social supports (finance, assisted device or others) in the reporting month",
      "entity": "followup",
      "period": "month",
      "field": "social_support_received",
      "value": 1,
      "description": "Follow-up rows in the selected visit month/year with social support received selected.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[[လိုအပ်ပါက ]],\"ရရှိပါသည်\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[[လိုအပ်ပါက ]],\"ရရှိပါသည်\")",
        "D": "=SUM(B14:C14)"
      }
    },
    {
      "row": 15,
      "key": "mam_referrals",
      "label": "Number of Elder who has been referred to MAM clinic",
      "entity": "followup",
      "period": "month",
      "field": "mam_clinic_referral",
      "value": 1,
      "description": "Follow-up rows in the selected visit month/year with referral to MAM selected.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[MAM clinic သို့ လွှဲပြောင်းခဲ့ခြင်း],\"ရှိ\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[MAM clinic သို့ လွှဲပြောင်းခဲ့ခြင်း],\"ရှိ\")",
        "D": "=SUM(B15:C15)"
      }
    },
    {
      "row": 16,
      "key": "other_referrals",
      "label": "Number of Elder who has been referred to other medical center",
      "entity": "followup",
      "period": "month",
      "field": "hospital_referral",
      "value": 1,
      "description": "Follow-up rows in the selected visit month/year with hospital referral selected.",
      "source_formulas": {
        "B": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"M\",Follow_up[ဆေးရုံသို့ လွှဲပြောင်းခဲ့ခြင်း],\"ရှိ\")",
        "C": "=COUNTIFS(Follow_up[Fup_Month],IF($B$3<>\"\",$B$3,\"*\"),Follow_up[Fup_Year],IF($C$3<>\"\",$C$3,\"*\"),Follow_up[Sex],\"F\",Follow_up[ဆေးရုံသို့ လွှဲပြောင်းခဲ့ခြင်း],\"ရှိ\")",
        "D": "=SUM(B16:C16)"
      }
    },
    {
      "row": 18,
      "key": "outcome_total",
      "label": "Outcome of elder program",
      "entity": "sum",
      "period": "year",
      "field": null,
      "value": null,
      "description": "Sum of Under care, Stopped and Dead, using current outcomes of registrations enrolled in the selected year.",
      "source_formulas": {
        "B": "=SUM(B19:B21)",
        "C": "=SUM(C19:C21)",
        "D": "=SUM(B18:C18)"
      }
    },
    {
      "row": 19,
      "key": "under_care",
      "label": "Under care",
      "entity": "register",
      "period": "year",
      "field": "outcome",
      "value": "Under care",
      "description": "Current Under care outcome among registrations enrolled in the selected year.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\",Register[Outcome],A19)",
        "C": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\",Register[Outcome],A19)",
        "D": "=SUM(B19:C19)"
      }
    },
    {
      "row": 20,
      "key": "stopped",
      "label": "Stopped",
      "entity": "register",
      "period": "year",
      "field": "outcome",
      "value": "Stopped",
      "description": "Current Stopped outcome among registrations enrolled in the selected year.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\",Register[Outcome],A20)",
        "C": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\",Register[Outcome],A20)",
        "D": "=SUM(B20:C20)"
      }
    },
    {
      "row": 21,
      "key": "dead",
      "label": "Dead",
      "entity": "register",
      "period": "year",
      "field": "outcome",
      "value": "Dead",
      "description": "Current Dead outcome among registrations enrolled in the selected year.",
      "source_formulas": {
        "B": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"M\",Register[Outcome],A21)",
        "C": "=COUNTIFS(Register[Reg_Year],IF($C$3<>\"\",$C$3,\"*\"),Register[Sex],\"F\",Register[Outcome],A21)",
        "D": "=SUM(B21:C21)"
      }
    }
  ]
}
