From c0c26056e151b44d1eea3466fb892a16e4744164 Mon Sep 17 00:00:00 2001 From: Karnaiah Pesula Date: Tue, 2 Sep 2025 08:43:26 +0200 Subject: [PATCH] Added new pathogen tests for Measles --- .../java/de/symeda/sormas/api/sample/PathogenTestType.java | 4 ++-- sormas-api/src/main/resources/enum.properties | 2 +- .../main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sormas-api/src/main/java/de/symeda/sormas/api/sample/PathogenTestType.java b/sormas-api/src/main/java/de/symeda/sormas/api/sample/PathogenTestType.java index d6a8b039dc1..3ea8c086e21 100644 --- a/sormas-api/src/main/java/de/symeda/sormas/api/sample/PathogenTestType.java +++ b/sormas-api/src/main/java/de/symeda/sormas/api/sample/PathogenTestType.java @@ -86,14 +86,14 @@ public enum PathogenTestType { Disease.CORONAVIRUS, Disease.RESPIRATORY_SYNCYTIAL_VIRUS, Disease.INVASIVE_MENINGOCOCCAL_INFECTION, - Disease.INVASIVE_PNEUMOCOCCAL_INFECTION }) + Disease.INVASIVE_PNEUMOCOCCAL_INFECTION, Disease.MEASLES }) INDIRECT_FLUORESCENT_ANTIBODY, @Diseases(value = { Disease.CORONAVIRUS, Disease.RESPIRATORY_SYNCYTIAL_VIRUS, Disease.INVASIVE_MENINGOCOCCAL_INFECTION, - Disease.INVASIVE_PNEUMOCOCCAL_INFECTION }) + Disease.INVASIVE_PNEUMOCOCCAL_INFECTION, Disease.MEASLES }) DIRECT_FLUORESCENT_ANTIBODY, @Diseases(value = { diff --git a/sormas-api/src/main/resources/enum.properties b/sormas-api/src/main/resources/enum.properties index 4acf4d5127d..fe7924836d7 100644 --- a/sormas-api/src/main/resources/enum.properties +++ b/sormas-api/src/main/resources/enum.properties @@ -1270,7 +1270,7 @@ SampleMaterial.PLEURAL_FLUID=Pleural fluid specimen SampleMaterial.CLINICAL_SAMPLE=Clinical sample SampleMaterial.PERITONEAL_FLUID = Peritoneal Fluid SampleMaterial.SYNOVIAL_FLUID = Synovial Fluid -SampleMaterial.DRY_BLOOD = Dry blood spot +SampleMaterial.DRY_BLOOD = Dried blood spot SampleMaterial.AMNIOTIC_FLUID = Amniotic fluid SampleMaterial.THROAT_ASPIRATE = Throat aspirate SampleMaterial.EDTA_WHOLE_BLOOD = EDTA Whole Blood diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java index c024951d14a..89d2d4ab35c 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/symptoms/SymptomsForm.java @@ -544,7 +544,9 @@ public String getFormattedHtmlMessage() { if (isConfiguredServer(CountryHelper.COUNTRY_CODE_LUXEMBOURG)) { boolean isSymptamatic = !SymptomState.YES.equals(asymptomaticNOG.getNullableValue()); editableAllowedFields().stream().filter(field -> !field.getId().equals(ASYMPTOMATIC)).forEach(field -> { - field.clear(); + if (!isSymptamatic) { + field.clear(); + } field.setEnabled(isSymptamatic); onsetSymptom.setEnabled(isSymptamatic); onsetDateField.setEnabled(isSymptamatic);