Skip to content

Commit

Permalink
Automate Case Details and Fields Preselection for Influenza Cases #13184
Browse files Browse the repository at this point in the history
 - after review comments. Simplified 1 if statement.
  • Loading branch information
Marin committed Dec 10, 2024
1 parent 0bb1fc5 commit 206e1ea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Objects;

import de.symeda.sormas.api.caze.CaseClassification;
import org.apache.commons.collections4.CollectionUtils;
Expand Down Expand Up @@ -546,7 +545,7 @@ private void updateDiseaseVariant(Disease disease) {
FieldHelper.updateItems(diseaseVariantField, diseaseVariants);
diseaseVariantField
.setVisible(disease != null && isVisibleAllowed(CaseDataDto.DISEASE_VARIANT) && CollectionUtils.isNotEmpty(diseaseVariants));
if (Objects.nonNull(disease) && (Disease.INFLUENZA.compareTo(disease) == 0)) {
if (disease == Disease.INFLUENZA) {
facilityOrHome.setValue(Sets.newHashSet(TypeOfPlace.HOME));
facilityOrHome.select(TypeOfPlace.HOME);
getValue().setCaseClassification(CaseClassification.CONFIRMED);
Expand Down

0 comments on commit 206e1ea

Please sign in to comment.