diff --git a/api/src/main/java/org/openmrs/module/kenyacore/report/ReportManager.java b/api/src/main/java/org/openmrs/module/kenyacore/report/ReportManager.java index 80cc454..3c7ebcc 100644 --- a/api/src/main/java/org/openmrs/module/kenyacore/report/ReportManager.java +++ b/api/src/main/java/org/openmrs/module/kenyacore/report/ReportManager.java @@ -49,6 +49,16 @@ public class ReportManager implements ContentManager { private List cohortAnalysisReports = new ArrayList(); + public List getEhrReports() { + return ehrReports; + } + + public void setEhrReports(List ehrReports) { + this.ehrReports = ehrReports; + } + + private List ehrReports = new ArrayList(); + @Autowired private ProgramManager programManager; @@ -93,6 +103,10 @@ public synchronized void refresh() { if (configuration.getCohortAnalysis() != null) { cohortAnalysisReports.addAll(configuration.getCohortAnalysis()); } + //Register ehr reports + if (configuration.getEhrReports() != null) { + ehrReports.addAll(configuration.getEhrReports()); + } // Register additional program specific reports