From a4a6f2af0b56cf61a74085cc60c204a05d244272 Mon Sep 17 00:00:00 2001 From: henrykorir Date: Thu, 15 Feb 2024 11:53:24 +0300 Subject: [PATCH] POC-544-v2b: Create End Points for the NCD Monthly Report --- .../latest-hiv-ncd-triage.json | 83 +++++++++---------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/app/reporting-framework/json-reports/plhiv-ncd-v2-reports/disaggregations/latest-hiv-ncd-triage.json b/app/reporting-framework/json-reports/plhiv-ncd-v2-reports/disaggregations/latest-hiv-ncd-triage.json index 6ebd5656c..9ea84740e 100644 --- a/app/reporting-framework/json-reports/plhiv-ncd-v2-reports/disaggregations/latest-hiv-ncd-triage.json +++ b/app/reporting-framework/json-reports/plhiv-ncd-v2-reports/disaggregations/latest-hiv-ncd-triage.json @@ -1,46 +1,45 @@ { - "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": "" - } - ] + "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)" }, - "groupBy": { - "groupParam": "groupByParam", - "columns": ["t1.person_id"], - "excludeParam": "excludeParam" + { + "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" } - \ No newline at end of file +}