Skip to content

Commit a4f6f38

Browse files
Drug susceptibility visibility check
1 parent 893cdd9 commit a4f6f38

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/samples/PathogenTestForm.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,13 +668,14 @@ protected void addFields() {
668668
seroTypeTF.setVisible(disease == Disease.INVASIVE_PNEUMOCOCCAL_INFECTION && seroGrpTests.contains(testType));
669669
seroGrpSepcCB.setVisible(disease == Disease.INVASIVE_MENINGOCOCCAL_INFECTION && seroGrpTests.contains(testType));
670670
// for enabling the test result, finding configured country and disease
671-
boolean isNotLuxTbAntiSus = FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG)
671+
boolean isLuxTbAntiSus = FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG)
672672
&& Disease.TUBERCULOSIS.equals((Disease) diseaseField.getValue()) && PathogenTestType.ANTIBIOTIC_SUSCEPTIBILITY.equals(testType);
673-
if(isNotLuxTbAntiSus){
673+
if(isLuxTbAntiSus){
674674
testResultField.setEnabled(true);
675675
}else {
676676
testResultField.setEnabled(!seroGrpTests.contains(testType) && !PathogenTestType.ANTIBIOTIC_SUSCEPTIBILITY.equals(testType));
677677
}
678+
drugSusceptibilityField.setVisible(isLuxTbAntiSus || DiseaseHelper.checkDiseaseIsInvasiveBacterialDiseases((Disease)diseaseField.getValue()) && PathogenTestType.ANTIBIOTIC_SUSCEPTIBILITY.equals(testType));
678679
setVisibleClear(
679680
PathogenTestType.PCR_RT_PCR == testType,
680681
PathogenTestDto.CQ_VALUE,

0 commit comments

Comments
 (0)