Skip to content

Commit

Permalink
POC-544: Create End Points for The NCD Monthly Report
Browse files Browse the repository at this point in the history
POC-544-v2: Added report to get latest vitals

POC-544-v2: Create End Points for The NCD Monthly Report
  • Loading branch information
henrykorir committed Feb 15, 2024
1 parent 9b622ab commit b6679c2
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 124 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "ncdLatestClinicalEncounterDate",
"version": "1.0",
"tag": "",
"description": "",
"uses": [],
"sources": [
{
"table": "etl.flat_ncd",
"alias": "t1"
}
],
"columns": [
{
"type": "simple_column",
"alias": "person_id",
"column": "t1.person_id"
},
{
"type": "simple_column",
"alias": "latest_encounter_date",
"column": "MAX(t1.encounter_datetime)"
},
{
"type": "simple_column",
"alias": "location_id",
"column": "t1.location_id"
}
],
"filters": {
"conditionJoinOperator": "and",
"conditions": [
{
"filterType": "tableColumns",
"conditionExpression": "t1.is_clinical_encounter = 1",
"parameterName": ""
}
]
},
"groupBy": {
"groupParam": "groupByParam",
"columns": ["t1.person_id"],
"excludeParam": "excludeParam"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -511,29 +511,36 @@
},
{
"label": "Mentally Ill",
"required": "0",
"indicator": [
{
"type": "nw_mh_f",
"required": "1",
"description": "Female new in care and have mental health disorder"
},
{
"type": "nw_mh_m",
"required": "1",
"description": "Male new in care and have mental health disorder"
},
{
"type": "nw_mh",
"required": "1",
"description": "PLHIV new in care and have mental health disorder"
},
{
"type": "ct_mh_f",
"required": "1",
"description": "Female continuing in care and have mental health disorder"
},
{
"type": "ct_mh_m",
"required": "1",
"description": "Male continuing in care and have mental health disorder"
},
{
"type": "ct_mh",
"required": "1",
"description": "PLHIV continuing in care and have mental health disorder"
}
]
Expand All @@ -560,6 +567,130 @@
}
]
},
{
"sectionTitle": "Other Cardiovascular Diseases",
"indicators": [
{
"label": "Location",
"indicator": "location"
},
{
"label": "Status",
"indicator": ["New", "CT"]
},
{
"label": "Header",
"indicator": ["F", "M", "T", "F", "M", "T"]
},
{
"label": "Heart Failure",
"indicator": [
{
"type": "nw_hf_f",
"description": "Female new in care and have heart failure"
},
{
"type": "nw_hf_m",
"description": "Male new in care and have heart failure"
},
{
"type": "tot_nw_hf",
"description": "PLHIV new in care and have heart failure"
},
{
"type": "ct_hf_f",
"description": "Female continuing in care and have heart failure"
},
{
"type": "ct_hf_m",
"description": "Male continuing in care and have heart failure"
},
{
"type": "tot_ct_hf",
"description": "PLHIV continuing in care and have heart failure"
}
]
},
{
"label": "Myocardinal Infarction",
"indicator": [
{
"type": "nw_myo_inf_f",
"description": "Female new in care and have Myocardinal Infarction"
},
{
"type": "nw_myo_inf_m",
"description": "Male new in care and have Myocardinal Infarction"
},
{
"type": "tot_nw_myo_inf",
"description": "PLHIV new in care and have Myocardinal Infarction"
},
{
"type": "ct_myo_inf_f",
"description": "Female continuing in care and have Myocardinal Infarction"
},
{
"type": "ct_myo_inf_m",
"description": "Male continuing in care and have Myocardinal Infarction"
},
{
"type": "tot_ct_myo_inft",
"description": "PLHIV continuing in care and have Myocardinal Infarction"
}
]
},
{
"label": "General Cardiovascular Disorder ",
"indicator": [
{
"type": "sub_tot_nw_cvd_f",
"description": "Female new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_nw_cvd_m",
"description": "Male new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_nw_cvd",
"description": "PLHIV new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd_f",
"description": "Female continuing in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd_m",
"description": "Male continuing in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd",
"description": "PLHIV continuing in care and have Cardiovascular Disease"
}
]
},
{
"label": "Status Sub Total",
"indicator": [
{
"type": "tot_nw_cvd",
"description": "PLHIV new in care and have Cardiovascular Disease"
},
{
"type": "tot_ct_cvd",
"description": "PLHIV continuing in care and have Cardiovascular Disease"
}
]
},
{
"label": "Total Cardiovascular Disease",
"indicator": {
"type": "tot_cvd",
"description": "PLHIV having Cardiovascular Disease"
}
}
]
},
{
"sectionTitle": "Kidney Disease",
"indicators": [
Expand Down Expand Up @@ -1101,130 +1232,6 @@
}
]
},
{
"sectionTitle": "Cardiovascular Disease (other than Hypertension)",
"indicators": [
{
"label": "Location",
"indicator": "location"
},
{
"label": "Status",
"indicator": ["New", "CT"]
},
{
"label": "Header",
"indicator": ["F", "M", "T", "F", "M", "T"]
},
{
"label": "Heart Failure",
"indicator": [
{
"type": "nw_hf_f",
"description": "Female new in care and have heart failure"
},
{
"type": "nw_hf_m",
"description": "Male new in care and have heart failure"
},
{
"type": "tot_nw_hf",
"description": "PLHIV new in care and have heart failure"
},
{
"type": "ct_hf_f",
"description": "Female continuing in care and have heart failure"
},
{
"type": "ct_hf_m",
"description": "Male continuing in care and have heart failure"
},
{
"type": "tot_ct_hf",
"description": "PLHIV continuing in care and have heart failure"
}
]
},
{
"label": "Myocardinal Infarction",
"indicator": [
{
"type": "nw_myo_inf_f",
"description": "Female new in care and have Myocardinal Infarction"
},
{
"type": "nw_myo_inf_m",
"description": "Male new in care and have Myocardinal Infarction"
},
{
"type": "tot_nw_myo_inf",
"description": "PLHIV new in care and have Myocardinal Infarction"
},
{
"type": "ct_myo_inf_f",
"description": "Female continuing in care and have Myocardinal Infarction"
},
{
"type": "ct_myo_inf_m",
"description": "Male continuing in care and have Myocardinal Infarction"
},
{
"type": "tot_ct_myo_inft",
"description": "PLHIV continuing in care and have Myocardinal Infarction"
}
]
},
{
"label": "General Cardiovascular Disorder ",
"indicator": [
{
"type": "sub_tot_nw_cvd_f",
"description": "Female new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_nw_cvd_m",
"description": "Male new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_nw_cvd",
"description": "PLHIV new in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd_f",
"description": "Female continuing in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd_m",
"description": "Male continuing in care and have Cardiovascular Disease"
},
{
"type": "sub_tot_ct_cvd",
"description": "PLHIV continuing in care and have Cardiovascular Disease"
}
]
},
{
"label": "Status Sub Total",
"indicator": [
{
"type": "tot_nw_cvd",
"description": "PLHIV new in care and have Cardiovascular Disease"
},
{
"type": "tot_ct_cvd",
"description": "PLHIV continuing in care and have Cardiovascular Disease"
}
]
},
{
"label": "Total Cardiovascular Disease",
"indicator": {
"type": "tot_cvd",
"description": "PLHIV having Cardiovascular Disease"
}
}
]
},
{
"sectionTitle": "Neurologic Disease",
"indicators": [
Expand Down

0 comments on commit b6679c2

Please sign in to comment.