Skip to content

Commit f09e785

Browse files
committed
tuberculosis specific symptoms - enable only for luxembourg
1 parent 879b096 commit f09e785

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import com.vaadin.v7.ui.OptionGroup;
6464
import com.vaadin.v7.ui.TextField;
6565

66+
import de.symeda.sormas.api.CountryHelper;
6667
import de.symeda.sormas.api.Disease;
6768
import de.symeda.sormas.api.FacadeProvider;
6869
import de.symeda.sormas.api.caze.CaseDataDto;
@@ -931,7 +932,7 @@ public String getFormattedHtmlMessage() {
931932
getField(PNEUMONIA_CLINICAL_OR_RADIOLOGIC).setCaption(I18nProperties.getCaption(Captions.Symptoms_ipi_pneumoniaClinicalOrRadiologic));
932933
}
933934

934-
if (disease == Disease.TUBERCULOSIS) {
935+
if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG) && disease == Disease.TUBERCULOSIS) {
935936
Label localisationHeadingLabel = createLabel(I18nProperties.getString(Strings.headingLocalisation), H3, LOCALISATION_HEADING_LOC);
936937

937938
clinicalPresentationHeadingLabel.setVisible(true);
@@ -1022,7 +1023,7 @@ protected String createHtmlLayout() {
10221023

10231024
String FINAL_HTML_LAYOUT = HTML_LAYOUT;
10241025

1025-
if (disease == Disease.TUBERCULOSIS) {
1026+
if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG) && disease == Disease.TUBERCULOSIS) {
10261027
FINAL_HTML_LAYOUT = FINAL_HTML_LAYOUT.replace(onsetDateLoc, emptyLoc)
10271028
.replace(tbOnsetDateLoc, onsetDateLoc)
10281029
.replace(clinicalPresentationDetailsLoc, emptyLoc)

0 commit comments

Comments
 (0)