Skip to content

Commit

Permalink
puppulate the reports in a collection for display on the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ningosi committed Apr 17, 2024
1 parent 0fa73da commit 3f148cd
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public class ReportManager implements ContentManager {

private List<ReportDescriptor> cohortAnalysisReports = new ArrayList<ReportDescriptor>();

public List<ReportDescriptor> getEhrReports() {
return ehrReports;
}

public void setEhrReports(List<ReportDescriptor> ehrReports) {
this.ehrReports = ehrReports;
}

private List<ReportDescriptor> ehrReports = new ArrayList<ReportDescriptor>();

@Autowired
private ProgramManager programManager;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3f148cd

Please sign in to comment.