Opened 11 years ago
Last modified 11 years ago
#565 closed enhancement
Missing sample data report should support sample list export — at Version 6
Reported by: | olle | Owned by: | olle |
---|---|---|---|
Priority: | major | Milestone: | Reggie v2.15 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description (last modified by )
Missing sample data report should support sample list export. An "Export" button should be added beside the "Restart" button at the end of the report view. Clicking the "Export" button should create a sample list, that can be downloaded or opened by a viewer program.
The export list should have the following properties:
- The list should consist of tab-separated columns.
- When sample type "Specimen" or "No specimen" is selected, a common export list should be created, while a separate list should be created when sample type "Blood" is selected.
- The export list should include all samples with missing data of the sample types in question, irrespective of any blood sample filter (only relevant for blood samples).
- The export list for sample types "Specimen" and "No specimen" should include the following columns:
a. Sample name
b. Subtype
c. Personal number
d. All first names
e. Family name
f. PAD
g. Laterality
h. Sampling date
i. RNALater date
j. Biopsy type
- The export list for sample type "Blood" should include the following columns:
a. Sample name
b. Subtype
c. Personal number
d. All first names
e. Family name
f. Blood sampling date
g. Blood freezer date
h. Blood sample type
Change History (6)
comment:1 by , 11 years ago
Status: | new → assigned |
---|
comment:2 by , 11 years ago
Traceability note:
- The missing sample data report was introduced in Ticket #439 (Missing sample data report).
- The blood sample filter was introduced in Ticket #505 (Sample source reports should be updated to support follow-up blood samples), where it was added to the sample count, overview, and missing items reports.
- The monthly operation list export was introduced in Ticket #385 (Export information needed by the tumor registry).
- INCA export was introduced in Ticket #487 (Export information intended for INCA).
comment:3 by , 11 years ago
Description: | modified (diff) |
---|
Ticket description updated regarding values to report and their order. Also clarification of text.
comment:4 by , 11 years ago
Design discussion.
- In the last step before a report is generated, the "Generate" button is coupled to function
goCreate()
in JSP scriptsamplereportgenerator.jsp
inreggie/resources/reports/
, which in turn sends an Ajax request to java servletSampleReportServlet.java
inreggie/src/net/sf/basedb/reggie/servlet/
. The new "Export" button will be coupled to the same function, but java servletExportServlet.java
should be called instead ofSampleReportServlet.java
, in order to separate code for export from that for generating data for screen tables. This can be accomplished by adding a boolean flagexportData
as argument to functiongoCreate()
, and let button "Generate" callgoCreate(false)
, while button "Export" callsgoCreate(true)
. FunctiongoCreate(exportData)
will be updated to call java servletExportServlet.java
instead ofSampleReportServlet.java
, when argumentExportData
has valuetrue
. - Java servlet
ExportServlet.java
inreggie/src/net/sf/basedb/reggie/servlet/
should be updated:
a. Protected methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
should be updated for command "ExportMissingSampleDataSampleList
" to call new private methodSet<MissingSampleDataExportData> createMissingSampleDataExport(DbControl dc, String sampleType, String bloodSampleFilter)
to create a missing sample data sample list for export.
b. New private methodSet<MissingSampleDataExportData> createMissingSampleDataExport(DbControl dc, String sampleType, String bloodSampleFilter)
calls new private methodList<Sample> createSampleListForMissingSampleDataReport(DbControl dc, String sampleType, String bloodSampleFilter)
to obtain a list of samples of the desired sample type(s). This list will be processed to obtain a list, that only contains samples with missing data. The missing data sample list is used to create a list ofMissingSampleDataExportData
objects, that will returned.
c. New private methodList<Sample> createSampleListForMissingSampleDataReport(DbControl dc, String sampleType, String bloodSampleFilter)
performs a database query and creates a sample list for the missing sample data report. The list will both include samples with and without missing data, and has to be processed afterwards to obtain a list, that only contains samples with missing data.
d. New inner classMissingSampleDataExportData
added. Its public methodString toString()
will a return a tab-separated line with data for the missing sample data export list, with contents depending on thesubtype
attribute.
comment:5 by , 11 years ago
(In [2206]) Refs #565. Missing sample data report updated with sample list export:
- JSP script
samplereportgenerator.jsp
inreggie/resources/reports/
updated with a new "Export" button beside the "Restart" button at the end of the report view. The new "Export" button is coupled to the same functiongoCreate()
as the "Generate" button in the last step before a report is generated, but java servletExportServlet.java
should be called instead ofSampleReportServlet.java
. This is accomplished by adding a boolean flagexportData
as argument to functiongoCreate()
, and let button "Generate" callgoCreate(false)
, while button "Export" callsgoCreate(true)
. FunctiongoCreate(exportData)
is updated to call java servletExportServlet.java
instead ofSampleReportServlet.java
, when argumentExportData
has valuetrue
. - Java servlet
ExportServlet.java
inreggie/src/net/sf/basedb/reggie/servlet/
updated:
a. Protected methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
updated for command "ExportMissingSampleDataSampleList
" to call new private methodSet<MissingSampleDataExportData> createMissingSampleDataExport(DbControl dc, String sampleType, String bloodSampleFilter)
to create a missing sample data sample list for export.
b. New private methodSet<MissingSampleDataExportData> createMissingSampleDataExport(DbControl dc, String sampleType, String bloodSampleFilter)
calls new private methodList<Sample> createSampleListForMissingSampleDataReport(DbControl dc, String sampleType, String bloodSampleFilter)
to obtain a list of samples of the desired sample type(s). This list is processed to obtain a list, that only contains samples with missing data. The missing data sample list is used to create a list ofMissingSampleDataExportData
objects, that will returned.
c. New private methodList<Sample> createSampleListForMissingSampleDataReport(DbControl dc, String sampleType, String bloodSampleFilter)
performs a database query and creates a sample list for the missing sample data report. The list will both include samples with and without missing data, and has to be processed afterwards to obtain a list, that only contains samples with missing data.
d. New inner classMissingSampleDataExportData
added. Its public methodString toString()
will a return a tab-separated line with data for the missing sample data export list, with contents depending on thesubtype
attribute.
Note:
See TracTickets
for help on using tickets.
Ticket accepted.