File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
sormas-ui/src/main/java/de/symeda/sormas/ui/caze Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3131import java .util .Date ;
3232import java .util .List ;
3333
34+ import de .symeda .sormas .api .caze .CaseClassification ;
3435import org .apache .commons .collections4 .CollectionUtils ;
3536
3637import com .google .common .collect .Sets ;
@@ -552,6 +553,15 @@ private void updateDiseaseVariant(Disease disease) {
552553 FieldHelper .updateItems (diseaseVariantField , diseaseVariants );
553554 diseaseVariantField
554555 .setVisible (disease != null && isVisibleAllowed (CaseDataDto .DISEASE_VARIANT ) && CollectionUtils .isNotEmpty (diseaseVariants ));
556+ if (disease == Disease .INFLUENZA ) {
557+ facilityOrHome .setValue (Sets .newHashSet (TypeOfPlace .HOME ));
558+ facilityOrHome .select (TypeOfPlace .HOME );
559+ getValue ().setCaseClassification (CaseClassification .CONFIRMED );
560+ } else {
561+ facilityOrHome .setValue (null );
562+ facilityOrHome .unselect (TypeOfPlace .HOME );
563+ getValue ().setCaseClassification (CaseClassification .NOT_CLASSIFIED );
564+ }
555565 }
556566
557567 private void setNoneFacility () {
You can’t perform that action at this time.
0 commit comments