diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java index 7c2b71d69a5..0d9c5b85bff 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseCreateForm.java @@ -31,6 +31,7 @@ import java.util.Date; import java.util.List; +import de.symeda.sormas.api.caze.CaseClassification; import org.apache.commons.collections4.CollectionUtils; import com.google.common.collect.Sets; @@ -552,6 +553,15 @@ private void updateDiseaseVariant(Disease disease) { FieldHelper.updateItems(diseaseVariantField, diseaseVariants); diseaseVariantField .setVisible(disease != null && isVisibleAllowed(CaseDataDto.DISEASE_VARIANT) && CollectionUtils.isNotEmpty(diseaseVariants)); + if (disease == Disease.INFLUENZA) { + facilityOrHome.setValue(Sets.newHashSet(TypeOfPlace.HOME)); + facilityOrHome.select(TypeOfPlace.HOME); + getValue().setCaseClassification(CaseClassification.CONFIRMED); + } else { + facilityOrHome.setValue(null); + facilityOrHome.unselect(TypeOfPlace.HOME); + getValue().setCaseClassification(CaseClassification.NOT_CLASSIFIED); + } } private void setNoneFacility() {