Skip to content

Commit

Permalink
added family planning to the health reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Catchit committed Jul 2, 2012
1 parent ef829e6 commit 6f188f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions application/app/models/report.rb
Expand Up @@ -396,7 +396,8 @@ def self.prepopulate_concept_ids_and_extra_parameters(patient_type, health_task)
concepts_list = ["HEALTHCARE VISITS", "NUTRITION", "BODY CHANGES",
"DISCOMFORT", "CONCERNS", "EMOTIONS",
"WARNING SIGNS", "ROUTINES", "BELIEFS",
"BABY'S GROWTH", "MILESTONES", "PREVENTION"]
"BABY'S GROWTH", "MILESTONES", "PREVENTION",
"FAMILY PLANNING"]
end
else #all
encounter_type_list = ["MATERNAL HEALTH SYMPTOMS", "CHILD HEALTH SYMPTOMS"]
Expand Down Expand Up @@ -437,7 +438,7 @@ def self.prepopulate_concept_ids_and_extra_parameters(patient_type, health_task)
"SLEEPING", "FEEDING PROBLEMS", "CRYING",
"BOWEL MOVEMENTS", "SKIN RASHES", "SKIN INFECTIONS",
"UMBILICUS INFECTION", "GROWTH MILESTONES",
"ACCESSING HEALTHCARE SERVICES"
"ACCESSING HEALTHCARE SERVICES", "FAMILY PLANNING"
]
end

Expand Down Expand Up @@ -541,7 +542,7 @@ def self.call_count_for_period(date_range, patient_type)
end

query = "SELECT distinct obs.value_text " +
"FROM obs LEFT JOIN person ON obs.person_id = person.person_id" +
"FROM obs LEFT JOIN person ON obs.person_id = person.person_id " +
"WHERE obs.concept_id = #{call_id} " +
"AND DATE(obs.date_created) >= '#{date_range.first}' " +
"AND DATE(obs.date_created) <= '#{date_range.last}' " +
Expand Down

0 comments on commit 6f188f8

Please sign in to comment.