Skip to content

Commit

Permalink
Remove Sample Treatments with no counts (#10995)
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd authored and haynescd committed Nov 24, 2024
1 parent 64d263f commit beb1ade
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public SampleTreatmentReport getSampleTreatmentReport(StudyViewFilterContext stu
Stream.of(new SampleTreatmentRow(TemporalRelation.Pre, sampleTreatment.treatment(), sampleTreatment.preSampleCount(), Set.of()),
new SampleTreatmentRow(TemporalRelation.Post, sampleTreatment.treatment(), sampleTreatment.postSampleCount(), Set.of() ))
)
.filter(sampleTreatment -> sampleTreatment.getCount() > 0 )
.toList();
var totalSampleTreatmentCount = studyViewRepository.getTotalSampleTreatmentCount(studyViewFilterContext);
return new SampleTreatmentReport(totalSampleTreatmentCount, sampleTreatments);
Expand Down

0 comments on commit beb1ade

Please sign in to comment.