Skip to content

Commit

Permalink
Merge pull request #358 from OpenSRP/deceased-12-59-months-lastyear-i…
Browse files Browse the repository at this point in the history
…ndicator-issue-201

Add Children (12-59 months) who died in the last year indicator
  • Loading branch information
allan-on authored May 9, 2019
2 parents 7b88469 + 4dca1b9 commit 79af13c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opensrp-chw/src/main/assets/config/indicator-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ indicators:
description: "Children (0-11 months) who died in the last year"
indicatorQuery: "select count(distinct event.baseEntityId) from event where eventType = 'Remove Child Under 5' and eventDate = '%s' and event.baseEntityId in (select ec_child.base_entity_id
from ec_child where date(ec_child.dob) >= date('now', '-11 month') and date(ec_child.dod) >= date('now', '-12 month'))"

- key: "CHW_003"
description: "Children (12-59 months) who died in the last year"
indicatorQuery: "select count(distinct event.baseEntityId) from event where eventType = 'Remove Child Under 5' and eventDate = '%s' and event.baseEntityId in (select ec_child.base_entity_id
from ec_child where date(ec_child.dob) >= date('now', '-60 month') and date(ec_child.dob) < date('now', '-11 month') and date(ec_child.dod) >= date('now', '-12 month'))"

0 comments on commit 79af13c

Please sign in to comment.