#439 closed enhancement (fixed)
Missing sample data report
Reported by: | olle | Owned by: | olle |
---|---|---|---|
Priority: | major | Milestone: | Reggie v2.10 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description (last modified by )
The reggie report generator should be updated to include a report on missing data for samples. Sample type should be selected to be one of specimen
, no specimen
, or blood
.
The report should include the current numbers for each site:
For specimen
:
- Number of specimens with missing patient name
- Number of specimens with missing PAD reference
- Number of specimens with missing laterality
- Number of specimens with missing sampling date
- Number of specimens with missing RNALater date
For no specimen
:
- Number of specimens with missing patient name
- Number of specimens with missing sampling date
For blood
:
- Number of specimens with missing patient name
- Number of specimens with missing blood sampling date
- Number of specimens with missing blood freezer date
Since not all users may have permission to check patient names, if this is the case, a warning should be shown.
Note. PAD stands for the Swedish expression "Patologanatomisk Diagnostik", which corresponds to "Patho-Anatomical Diagnosis" in English.
Change History (7)
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:3 by , 12 years ago
Description: | modified (diff) |
---|---|
Summary: | Missing specimen data report → Missing sample data report |
Ticket description updated by changing ticket name from "Missing specimen data report" to "Missing sample data report" and allowing sample type to be selected to be specimen
, no specimen
, or blood
.
comment:4 by , 12 years ago
Design discussion.
- All sample data of interest for this report is available as annotations of different types;
ALL_FIRST_NAMES
,FAMILY_NAME
,PAD
,LATERALITY
,SAMPLING_DATETIME
,RNALATER_DATETIME
,BLOOD_SAMPLING_DATETIME
, andBLOOD_FREEZER_DATETIME
. - A patient name is considered missing if either "
all first names
" or "family name
" is missing. - If a user doesn't have permission to check a patient name, a
net.sf.basedb.core.PermissionDeniedException
will be thrown. This exception should be caught, and if thrown, a Boolean flag should be set, and the value of the latter sent back to the JSP script, in order for the latter to show a warning message.
comment:5 by , 12 years ago
Design description.
- JSP script
samplereportgenerator
inreggie/resources/
will have the design for the layout of the missing sample data report based on that of the first table of the overview report, as the columns do not represent time intervals. - Servlet
SampleReportServlet
inreggie/src/net/sf/basedb/reggie/servlet/
will perform a database sample query for subtypesSPECIMEN
,NO_SPECIMEN
, orBLOOD
, and then process the result to obtain values for the report. In order to decrease processing time, only the annotations relevant for the chosen sample type should be processed. - JSP script
samplereportgenerator
inreggie/resources/
executes identical processing of date strings in several places. This should be refactored into use of a small number of convenience functions, e.g.addHyphensToDateString(dateStr)
anddateStrToDate()
.
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 by , 12 years ago
(In [1923]) Fixes #483. Refs #439. Missing sample data report updated for "no specimen" to report missing items for "PAD reference" and "Laterality":
- Servlet
SampleReportServlet
inreggie/src/net/sf/basedb/reggie/servlet/
updated for subtypeNO_SPECIMEN
to obtain data for missing items for "PAD reference" and "Laterality", and include it in the response JSON script. - JSP script
samplereportgenerator
inreggie/resources/reports/
updated to include columns for "PAD reference" and "Laterality" in the table for missing "no specimen" items.
Ticket description updated by clarification of text.