Changes between Version 4 and Version 5 of Ticket #505, comment 9


Ignore:
Timestamp:
Sep 20, 2013, 2:17:57 PM (11 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #505, comment 9

    v4 v5  
    1111 * Function `goCreate()` is updated to add 8 extra tables for the sample count report, if "Table alternatives" equals "9 tables with different blood sample choices". The extra tables are added analogously to the extra tables for the consent and overview reports. The extra reports are created by calling function `createItemCountReport(report, reportType)` with different report data for the first argument. In order to avoid a major rewrite of the latter function, JSON data for the new reports are added as child items to the original report object, with a name key identifying the type of report. As function `createItemCountReport(report, reportType)` calls function `addDataRowsToTable(report, reportTable)`, which sets values of global variables `unknownCreation` and `unknownSite` from the report data given as argument to the former function, a side effect is that these two variables will have values for the last processed report data. To avoid this, the values are reset to that of the unfiltered data, before the summary section, where the values are reported.
    1212 * Functions `createItemCountReport(report, reportType)`, `createOverviewReport(report)`, and `createMissingSampleDataReport(report)` are updated to display the value of a blood sample type filter in the table header text, if a filter is used.
     13 * Functions `createOverviewReport(report)` and ` addDataRowsToOverviewTable(report, reportTable)` are updated to add a column for "Blood samples follow-up" data.