Skip to content

Commit

Permalink
Merge pull request #580 from mozzy11/2.8
Browse files Browse the repository at this point in the history
cytology report should display all cell abnomalities
  • Loading branch information
mozzy11 authored Oct 27, 2023
2 parents 241f7ad + 8b6d913 commit a029071
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ protected void setAdditionalReportItems() {
}
switch (diagnosisResult.getCategory()) {
case EPITHELIAL_CELL_ABNORMALITY: {
data.setEpithelialCellAbnomalities(diagnoses);
List<String> existingDiagnoses = new ArrayList<>();
if(data.getEpithelialCellAbnomalities() != null){
if(!data.getEpithelialCellAbnomalities().isEmpty()){
existingDiagnoses = data.getEpithelialCellAbnomalities();
}
}
existingDiagnoses.addAll(diagnoses);
data.setEpithelialCellAbnomalities(existingDiagnoses);
break;
}
case NON_NEOPLASTIC_CELLULAR_VARIATIONS: {
Expand Down

0 comments on commit a029071

Please sign in to comment.