Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jason Hough
Answer_DB_and_Web_App
Commits
fc3d2b0b
Commit
fc3d2b0b
authored
Aug 08, 2019
by
Guillaume Jimenez
Browse files
Handles where there are more than 10 tier 3 in the report.
parent
42253e7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
webapp/Answer/WebContent/resources/js/components/existing-reports.js
View file @
fc3d2b0b
...
...
@@ -409,6 +409,9 @@ Vue.component('existing-reports', {
// return false;
},
finalizeButtonDisabled
(
report
)
{
if
(
this
.
readonly
)
{
return
true
;
}
var
currentReportLoaded
=
report
.
_id
[
'
$oid
'
]
==
this
.
currentReportId
;
if
(
!
currentReportLoaded
)
{
return
true
;
...
...
webapp/Answer/src/utsw/bicf/answer/reporting/finalreport/FinalReportPDFTemplate.java
View file @
fc3d2b0b
...
...
@@ -458,9 +458,30 @@ public class FinalReportPDFTemplate {
// vusRow.setLabel(vusGenes);
// sortedValues.add(vusRow);
// }
//count and extract Tier 3 if too many
long
tier3Count
=
sortedValues
.
stream
()
.
filter
(
r
->
r
.
getUnknownClinicalSignificanceCount
()
>
0
&&
r
.
getIndicatedTherapyCount
()
==
0
)
.
collect
(
Collectors
.
counting
());
List
<
ReportNavigationRow
>
sortedValuesFiltered
=
new
ArrayList
<
ReportNavigationRow
>();
if
(
tier3Count
>
10
)
{
//remove all tier 3 and replace with a single row
for
(
ReportNavigationRow
navigationRow
:
sortedValues
)
{
if
(
navigationRow
.
getUnknownClinicalSignificanceCount
()
==
0
||
navigationRow
.
getIndicatedTherapyCount
()
>
0
)
{
sortedValuesFiltered
.
add
(
navigationRow
);
}
}
ReportNavigationRow
tier3Row
=
new
ReportNavigationRow
(
tier3Count
+
" Additional Mutated Genes"
,
tier3Count
+
" Additional Mutated Genes"
);
tier3Row
.
setUnknownClinicalSignificanceCount
((
int
)
tier3Count
);
sortedValuesFiltered
.
add
(
tier3Row
);
}
else
{
sortedValuesFiltered
=
sortedValues
;
}
for
(
ReportNavigationRow
navigationRow
:
sortedValues
)
{
for
(
ReportNavigationRow
navigationRow
:
sortedValues
Filtered
)
{
String
gene
=
navigationRow
.
getLabel
();
Color
defaultColor
=
Color
.
WHITE
;
if
(
grayBackground
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment