|
15 | 15 |
|
16 | 16 | package de.symeda.sormas.ui.caze; |
17 | 17 |
|
| 18 | +import java.util.Arrays; |
| 19 | +import java.util.Collections; |
18 | 20 | import java.util.EnumSet; |
| 21 | +import java.util.HashSet; |
19 | 22 | import java.util.Set; |
20 | 23 |
|
21 | 24 | import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; |
@@ -61,21 +64,26 @@ public abstract class AbstractCaseView extends AbstractEditAllowedDetailView<Cas |
61 | 64 |
|
62 | 65 | public static final String ROOT_VIEW_NAME = CasesView.VIEW_NAME; |
63 | 66 |
|
64 | | - public static final Set<Disease> CLINICAL_COURSE_DISABLED_DISEASES = Set.of( |
65 | | - Disease.MEASLES, |
66 | | - Disease.INVASIVE_MENINGOCOCCAL_INFECTION, |
67 | | - Disease.INVASIVE_PNEUMOCOCCAL_INFECTION, |
68 | | - Disease.GIARDIASIS, |
69 | | - Disease.CRYPTOSPORIDIOSIS); |
70 | | - |
71 | | - public static final Set<Disease> THERAPY_DISABLED_DISEASES = Set.of( |
72 | | - Disease.MEASLES, |
73 | | - Disease.GIARDIASIS, |
74 | | - Disease.CRYPTOSPORIDIOSIS, |
75 | | - Disease.INVASIVE_MENINGOCOCCAL_INFECTION, |
76 | | - Disease.INVASIVE_PNEUMOCOCCAL_INFECTION); |
77 | | - |
78 | | - public static final Set<Disease> SYMPTOMS_DISABLED_DISEASES = Set.of(Disease.INFLUENZA, Disease.LATENT_TUBERCULOSIS); |
| 67 | + public static final Set<Disease> CLINICAL_COURSE_DISABLED_DISEASES = Collections.unmodifiableSet( |
| 68 | + new HashSet<>( |
| 69 | + Arrays.asList( |
| 70 | + Disease.MEASLES, |
| 71 | + Disease.INVASIVE_MENINGOCOCCAL_INFECTION, |
| 72 | + Disease.INVASIVE_PNEUMOCOCCAL_INFECTION, |
| 73 | + Disease.GIARDIASIS, |
| 74 | + Disease.CRYPTOSPORIDIOSIS))); |
| 75 | + |
| 76 | + public static final Set<Disease> THERAPY_DISABLED_DISEASES = Collections.unmodifiableSet( |
| 77 | + new HashSet<>( |
| 78 | + Arrays.asList( |
| 79 | + Disease.MEASLES, |
| 80 | + Disease.GIARDIASIS, |
| 81 | + Disease.CRYPTOSPORIDIOSIS, |
| 82 | + Disease.INVASIVE_MENINGOCOCCAL_INFECTION, |
| 83 | + Disease.INVASIVE_PNEUMOCOCCAL_INFECTION))); |
| 84 | + |
| 85 | + public static final Set<Disease> SYMPTOMS_DISABLED_DISEASES = |
| 86 | + Collections.unmodifiableSet(new HashSet<>(Arrays.asList(Disease.INFLUENZA, Disease.LATENT_TUBERCULOSIS))); |
79 | 87 |
|
80 | 88 | private Boolean hasOutbreak; |
81 | 89 | private boolean caseFollowupEnabled; |
|
0 commit comments