Changes between Initial Version and Version 1 of Ticket #433, comment 3


Ignore:
Timestamp:
Nov 27, 2012, 12:42:26 PM (11 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #433, comment 3

    initial v1  
    55 * JSP script `index.jsp` in `reggie/resources/` should be updated to show a new entry "Patient count report" in the "report generator" list.
    66 * JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be updated to include a new entry "Patient count report" in the report generator pop-up menu. The original entry "Sample count report" should remain the default choice.
    7  * JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be updated to replace function `createSampleCountReport(report)` with function `createItemCountReport(report, reportType)`, that will allow several reports like sample count report and patient count report to have the main table created by the same function. The new argument `reportType` allows table header text to be adapted for the current data type.
     7 * JSP script `samplereportgenerator.jsp` in `reggie/resources/` should be updated to replace function `createSampleCountReport(report)` with function `createItemCountReport(report, reportType)`, that will allow several reports like sample count report and patient count report to have the main table created by the same function. The new argument `reportType` allows table header text to be adapted for the current data type. Also minor updates in order to set better default values for table entries.
    88 * Servlet `SampleReportServlet` in `reggie/src/net/sf/basedb/reggie/servlet/` should be updated to call a new private method `JSONObject createPatientCountReport(DbControl dc, JSONObject json)` to generate the data for the consent count report. A number of new convenience methods will be added, in order to make the code more readable.
    99 * Servlet class/file `SampleReportServlet` in `reggie/src/net/sf/basedb/reggie/servlet/` should be updated in private method `JSONObject createJSONStatistics(ItemResultIterator<Sample> sampleIterator, Date startDate, Date endDate, String viewType)` to take `Iterator<Sample> sampleIterator` as first argument instead of `ItemResultIterator<Sample> sampleIterator` (this requires an update in private method `JSONObject createSampleCountReport(...)`). This will allow several methods to filter a raw sample list retrieved from the database, and use method `createJSONStatistics(...)` to generate the table data for the filtered list.