Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added family planning to the health reports

  • Loading branch information...
commit 6f188f82ef564b341f818764186d6cbbb717110e 1 parent ef829e6
Catchit authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 application/app/models/report.rb
View
7 application/app/models/report.rb
@@ -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"]
@@ -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
@@ -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}' " +
Please sign in to comment.
Something went wrong with that request. Please try again.