Skip to content

Commit 2a91664

Browse files
Visibility check for chest pain
1 parent 5e17e6e commit 2a91664

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,9 @@ public String getFormattedHtmlMessage() {
936936
getField(PNEUMONIA_CLINICAL_OR_RADIOLOGIC).setCaption(I18nProperties.getCaption(Captions.Symptoms_ipi_pneumoniaClinicalOrRadiologic));
937937
}
938938

939-
getField(CHEST_PAIN).setVisible(PlagueType.PNEUMONIC == caze.getPlagueType());
939+
if (symptomsContext == SymptomsContext.CASE && caze != null && caze.getDisease() == Disease.PLAGUE) {
940+
getField(CHEST_PAIN).setVisible(PlagueType.PNEUMONIC == caze.getPlagueType());
941+
}
940942

941943
if (FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG) && disease == Disease.TUBERCULOSIS) {
942944
Label localisationHeadingLabel = createLabel(I18nProperties.getString(Strings.headingLocalisation), H3, LOCALISATION_HEADING_LOC);

0 commit comments

Comments
 (0)