Skip to content

Commit

Permalink
POC-544-v2b: Create End Points for the NCD Monthly Report
Browse files Browse the repository at this point in the history
  • Loading branch information
henrykorir committed Feb 15, 2024
1 parent 75b2286 commit a4a6f2a
Showing 1 changed file with 41 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit a4a6f2a

Please sign in to comment.