Skip to content

Commit bd16d6b

Browse files
committed
Merge branch 'development' of https://github.com/SORMAS-Foundation/SORMAS-Project into fix/13830-national-user-cannot-be-responsible-user
2 parents 5f37eb3 + 8b90a9b commit bd16d6b

229 files changed

Lines changed: 80915 additions & 5905 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseCriteria.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import de.symeda.sormas.api.person.PersonReferenceDto;
3636
import de.symeda.sormas.api.person.PresentCondition;
3737
import de.symeda.sormas.api.person.SymptomJournalStatus;
38+
import de.symeda.sormas.api.sample.PathogenTestResultType;
3839
import de.symeda.sormas.api.share.ExternalShareCriteria;
3940
import de.symeda.sormas.api.survey.SurveyReferenceDto;
4041
import de.symeda.sormas.api.user.UserReferenceDto;
@@ -92,10 +93,14 @@ public class CaseCriteria extends CriteriaWithDateType implements ExternalShareC
9293
public static final String SURVEY_ASSIGNED_TO = "surveyAssignedTo";
9394
public static final String SURVEY_RESPONSE_STATUS = "surveyResponseStatus";
9495
public static final String SURVEY = "survey";
96+
public static final String PATHOGEN_TEST_RESULT = "pathogenTestResult";
97+
public static final String SEROGROUP = "serogroup";
9598

9699
private UserRoleReferenceDto reportingUserRole;
97100
private Disease disease;
98101
private DiseaseVariant diseaseVariant;
102+
private PathogenTestResultType pathogenTestResult;
103+
private String serogroup;
99104
private CaseOutcome outcome;
100105
private CaseClassification caseClassification;
101106
private InvestigationStatus investigationStatus;
@@ -235,6 +240,33 @@ public DiseaseVariant getDiseaseVariant() {
235240
return diseaseVariant;
236241
}
237242

243+
public void setPathogenTestResult(PathogenTestResultType pathogenTestResult) {
244+
this.pathogenTestResult = pathogenTestResult;
245+
}
246+
247+
public CaseCriteria pathogenTestResult(PathogenTestResultType pathogenTestResult) {
248+
setPathogenTestResult(pathogenTestResult);
249+
return this;
250+
}
251+
252+
public PathogenTestResultType getPathogenTestResult() {
253+
return pathogenTestResult;
254+
}
255+
256+
public void setSerogroup(String serogroup) {
257+
this.serogroup = serogroup;
258+
}
259+
260+
public CaseCriteria serogroup(String serogroup) {
261+
setSerogroup(serogroup);
262+
return this;
263+
}
264+
265+
@IgnoreForUrl
266+
public String getSerogroup() {
267+
return serogroup;
268+
}
269+
238270
public void setJurisdictionType(CaseJurisdictionType jurisdictionType) {
239271
this.jurisdictionType = jurisdictionType;
240272
}

sormas-api/src/main/java/de/symeda/sormas/api/clinicalcourse/HealthConditionsDto.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class HealthConditionsDto extends PseudonymizableDto {
6060
public static final String VACCINATED_AGAINST_MOSQUITO_BORNE_VIRUSES = "vaccinatedAgainstMosquitoBorneViruses";
6161
public static final String MALARIA = "malaria";
6262
public static final String MALARIA_INFECTED_YEAR = "malariaInfectedYear";
63-
public static final String UNDER_MEDICATION = "underMedication";
63+
public static final String ON_MEDICATION = "onMedication";
6464
public static final String MEDICATION_DETAILS = "medicationDetails";
6565
public static final String CHRONIC_DISEASE = "chronicDisease";
6666
public static final String CHRONIC_DISEASE_DETAILS = "chronicDiseaseDetails";
@@ -201,7 +201,7 @@ public class HealthConditionsDto extends PseudonymizableDto {
201201
private Integer malariaInfectedYear;
202202
@Diseases(value = {
203203
Disease.SHIGELLOSIS })
204-
private YesNoUnknown underMedication;
204+
private YesNoUnknown onMedication;
205205
@Diseases(value = {
206206
Disease.SHIGELLOSIS })
207207
private String medicationDetails;
@@ -506,12 +506,12 @@ public void setMalariaInfectedYear(Integer malariaInfectedYear) {
506506
this.malariaInfectedYear = malariaInfectedYear;
507507
}
508508

509-
public YesNoUnknown getUnderMedication() {
510-
return underMedication;
509+
public YesNoUnknown getOnMedication() {
510+
return onMedication;
511511
}
512512

513-
public void setUnderMedication(YesNoUnknown underMedication) {
514-
this.underMedication = underMedication;
513+
public void setOnMedication(YesNoUnknown onMedication) {
514+
this.onMedication = onMedication;
515515
}
516516

517517
public String getMedicationDetails() {

sormas-api/src/main/java/de/symeda/sormas/api/dashboard/SampleDashboardCriteria.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
package de.symeda.sormas.api.dashboard;
1717

18+
import de.symeda.sormas.api.disease.DiseaseVariant;
1819
import de.symeda.sormas.api.environment.environmentsample.EnvironmentSampleMaterial;
20+
import de.symeda.sormas.api.sample.PathogenTestResultType;
1921
import de.symeda.sormas.api.sample.SampleDashboardFilterDateType;
2022
import de.symeda.sormas.api.sample.SampleMaterial;
2123

@@ -24,6 +26,9 @@ public class SampleDashboardCriteria extends BaseDashboardCriteria<SampleDashboa
2426
private SampleDashboardFilterDateType sampleDateType;
2527
private SampleMaterial sampleMaterial;
2628
private EnvironmentSampleMaterial environmentSampleMaterial;
29+
private PathogenTestResultType pathogenTestResult;
30+
private String serogroup;
31+
private DiseaseVariant diseaseVariant;
2732

2833
private Boolean withNoDisease;
2934

@@ -60,12 +65,44 @@ public SampleDashboardCriteria withNoDisease(Boolean withNoDisease) {
6065

6166
return self;
6267
}
68+
6369
public EnvironmentSampleMaterial getEnvironmentSampleMaterial() {
6470
return environmentSampleMaterial;
6571
}
72+
6673
public SampleDashboardCriteria environmentSampleMaterial(EnvironmentSampleMaterial environmentSampleMaterial) {
6774
this.environmentSampleMaterial = environmentSampleMaterial;
6875

6976
return self;
7077
}
78+
79+
public PathogenTestResultType getPathogenTestResult() {
80+
return pathogenTestResult;
81+
}
82+
83+
public SampleDashboardCriteria pathogenTestResult(PathogenTestResultType pathogenTestResult) {
84+
this.pathogenTestResult = pathogenTestResult;
85+
86+
return self;
87+
}
88+
89+
public String getSerogroup() {
90+
return serogroup;
91+
}
92+
93+
public SampleDashboardCriteria serogroup(String serogroup) {
94+
this.serogroup = serogroup;
95+
96+
return self;
97+
}
98+
99+
public DiseaseVariant getDiseaseVariant() {
100+
return diseaseVariant;
101+
}
102+
103+
public SampleDashboardCriteria diseaseVariant(DiseaseVariant diseaseVariant) {
104+
this.diseaseVariant = diseaseVariant;
105+
106+
return self;
107+
}
71108
}

sormas-api/src/main/java/de/symeda/sormas/api/exposure/ExposureDto.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public class ExposureDto extends PseudonymizableDto {
142142
public static final String TRAVEL_PURPOSE = "travelPurpose";
143143
public static final String TRAVEL_PURPOSE_DETAILS = "travelPurposeDetails";
144144
public static final String SHOPPING_FOR_FOOD_DETAILS = "shoppingForFoodDetails";
145+
public static final String SEXUAL_CONTACT = "sexualContact";
145146

146147
@SensitiveData
147148
private UserReferenceDto reportingUser;
@@ -466,6 +467,11 @@ public class ExposureDto extends PseudonymizableDto {
466467
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
467468
private String shoppingForFoodDetails;
468469

470+
@Diseases({
471+
Disease.SHIGELLOSIS })
472+
@SensitiveData
473+
private SexualContact sexualContact;
474+
469475
public static ExposureDto build(ExposureType exposureType) {
470476

471477
ExposureDto exposure = new ExposureDto();
@@ -1169,6 +1175,14 @@ public void setShoppingForFoodDetails(String shoppingForFoodDetails) {
11691175
this.shoppingForFoodDetails = shoppingForFoodDetails;
11701176
}
11711177

1178+
public SexualContact getSexualContact() {
1179+
return sexualContact;
1180+
}
1181+
1182+
public void setSexualContact(SexualContact sexualContact) {
1183+
this.sexualContact = sexualContact;
1184+
}
1185+
11721186
@Override
11731187
public ExposureDto clone() throws CloneNotSupportedException {
11741188
ExposureDto clone = (ExposureDto) super.clone();

sormas-api/src/main/java/de/symeda/sormas/api/exposure/ExposureSubSetting.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ public enum ExposureSubSetting {
5151

5252
EATING_AT_HOME(ExposureCategory.FOOD_BORNE, null),
5353
EATING_OUTSIDE(ExposureCategory.FOOD_BORNE, null),
54+
@Diseases({
55+
Disease.SHIGELLOSIS })
56+
HOUSEHOLD_CONTACT(ExposureCategory.DIRECT_CONTACT, ExposureSetting.PERSON_TO_PERSON),
5457
@Diseases({
5558
Disease.SALMONELLOSIS })
5659
SHOPPING_FOR_FOOD(ExposureCategory.FOOD_BORNE, null),
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
3+
* Copyright © 2016-2026 SORMAS Foundation gGmbH
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
14+
*/
15+
package de.symeda.sormas.api.exposure;
16+
17+
import de.symeda.sormas.api.i18n.I18nProperties;
18+
19+
/**
20+
* Enum for sexual contact types.
21+
*/
22+
public enum SexualContact {
23+
24+
MALE,
25+
FEMALE,
26+
BOTH,
27+
NOT_ANSWERED,
28+
UNKNOWN,
29+
OTHER;
30+
31+
@Override
32+
public String toString() {
33+
return I18nProperties.getEnumCaption(this);
34+
}
35+
}

sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/labmessage/TestReportDto.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import de.symeda.sormas.api.sample.PCRTestSpecification;
1616
import de.symeda.sormas.api.sample.PathogenSpecie;
1717
import de.symeda.sormas.api.sample.PathogenStrainCallStatus;
18+
import de.symeda.sormas.api.sample.PathogenTestCategory;
1819
import de.symeda.sormas.api.sample.PathogenTestResultType;
1920
import de.symeda.sormas.api.sample.PathogenTestType;
2021
import de.symeda.sormas.api.sample.RsvSubtype;
@@ -217,6 +218,9 @@ public class TestReportDto extends EntityDto {
217218
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
218219
private String serotypeText;
219220

221+
private PathogenTestCategory pathogenTestCategory;
222+
private boolean fourFoldIncreaseAntibodyTiter;
223+
220224
public SampleReportReferenceDto getSampleReport() {
221225
return sampleReport;
222226
}
@@ -912,4 +916,20 @@ public void setSerotypeText(String serotypeText) {
912916
this.serotypeText = serotypeText;
913917
}
914918

919+
public PathogenTestCategory getPathogenTestCategory() {
920+
return pathogenTestCategory;
921+
}
922+
923+
public void setPathogenTestCategory(PathogenTestCategory pathogenTestCategory) {
924+
this.pathogenTestCategory = pathogenTestCategory;
925+
}
926+
927+
public boolean getFourFoldIncreaseAntibodyTiter() {
928+
return fourFoldIncreaseAntibodyTiter;
929+
}
930+
931+
public void setFourFoldIncreaseAntibodyTiter(boolean fourFoldIncreaseAntibodyTiter) {
932+
this.fourFoldIncreaseAntibodyTiter = fourFoldIncreaseAntibodyTiter;
933+
}
934+
915935
}

sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/processing/ExternalMessageMapper.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,15 @@ public List<String[]> mapToPathogenTest(TestReportDto sourceTestReport, Pathogen
988988
pathogenTest.getDrugSusceptibility().getErythromycinSusceptibility(),
989989
sourceTestReport.getErythromycinSusceptibility(),
990990
PathogenTestDto.DRUG_SUSCEPTIBILITY,
991-
DrugSusceptibilityDto.ERYTHROMYCIN_SUSCEPTIBILITY))));
991+
DrugSusceptibilityDto.ERYTHROMYCIN_SUSCEPTIBILITY),
992+
993+
Mapping.of(
994+
pathogenTest::setFourFoldIncreaseAntibodyTiter,
995+
pathogenTest.isFourFoldIncreaseAntibodyTiter(),
996+
sourceTestReport.getFourFoldIncreaseAntibodyTiter(),
997+
PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER))
998+
999+
));
9921000
}
9931001

9941002
changedFields.addAll(

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -928,13 +928,11 @@ public interface Captions {
928928
String caseLabResultsDateCollected = "caseLabResultsDateCollected";
929929
String caseLabResultsDrugSusceptibilityHeading = "caseLabResultsDrugSusceptibilityHeading";
930930
String caseLabResultsMethod = "caseLabResultsMethod";
931-
String caseLabResultsMicValue = "caseLabResultsMicValue";
932931
String caseLabResultsSample = "caseLabResultsSample";
933932
String caseLabResultsSamplesHeading = "caseLabResultsSamplesHeading";
934-
String caseLabResultsSurveillanceInterpretation = "caseLabResultsSurveillanceInterpretation";
935933
String caseLabResultsTestsHeading = "caseLabResultsTestsHeading";
936934
String caseLabResultsTestsPerformed = "caseLabResultsTestsPerformed";
937-
String caseLabResultsZoneDiameter = "caseLabResultsZoneDiameter";
935+
String caseLabResultsValue = "caseLabResultsValue";
938936
String caseLinkToSamples = "caseLinkToSamples";
939937
String caseMergeDuplicates = "caseMergeDuplicates";
940938
String caseMinusDays = "caseMinusDays";
@@ -1645,6 +1643,7 @@ public interface Captions {
16451643
String EpiData_clusterTypeText = "EpiData.clusterTypeText";
16461644
String EpiData_contactWithSourceCaseKnown = "EpiData.contactWithSourceCaseKnown";
16471645
String EpiData_country = "EpiData.country";
1646+
String EpiData_country_SHIG = "EpiData.country.SHIG";
16481647
String EpiData_exposureDetailsKnown = "EpiData.exposureDetailsKnown";
16491648
String EpiData_exposureInvestigationFromDate = "EpiData.exposureInvestigationFromDate";
16501649
String EpiData_exposureInvestigationToDate = "EpiData.exposureInvestigationToDate";
@@ -1968,6 +1967,7 @@ public interface Captions {
19681967
String Exposure_rawFoodContactText = "Exposure.rawFoodContactText";
19691968
String Exposure_riskArea = "Exposure.riskArea";
19701969
String Exposure_seatNumber = "Exposure.seatNumber";
1970+
String Exposure_sexualContact = "Exposure.sexualContact";
19711971
String Exposure_sexualExposureText = "Exposure.sexualExposureText";
19721972
String Exposure_shoppingForFoodDetails = "Exposure.shoppingForFoodDetails";
19731973
String Exposure_shortDistance = "Exposure.shortDistance";
@@ -2139,13 +2139,13 @@ public interface Captions {
21392139
String HealthConditions_malignancyChemotherapy = "HealthConditions.malignancyChemotherapy";
21402140
String HealthConditions_medicationDetails = "HealthConditions.medicationDetails";
21412141
String HealthConditions_obesity = "HealthConditions.obesity";
2142+
String HealthConditions_onMedication = "HealthConditions.onMedication";
21422143
String HealthConditions_otherConditions = "HealthConditions.otherConditions";
21432144
String HealthConditions_previousTuberculosisTreatment = "HealthConditions.previousTuberculosisTreatment";
21442145
String HealthConditions_recurrentBronchiolitis = "HealthConditions.recurrentBronchiolitis";
21452146
String HealthConditions_sickleCellDisease = "HealthConditions.sickleCellDisease";
21462147
String HealthConditions_tuberculosis = "HealthConditions.tuberculosis";
21472148
String HealthConditions_tuberculosisInfectionYear = "HealthConditions.tuberculosisInfectionYear";
2148-
String HealthConditions_underMedication = "HealthConditions.underMedication";
21492149
String HealthConditions_vaccinatedAgainstMosquitoBorneViruses = "HealthConditions.vaccinatedAgainstMosquitoBorneViruses";
21502150
String humanSampleViewType = "humanSampleViewType";
21512151
String Immunization = "Immunization";
@@ -2423,7 +2423,6 @@ public interface Captions {
24232423
String PathogenTest_prescriberPhysicianCode = "PathogenTest.prescriberPhysicianCode";
24242424
String PathogenTest_prescriberPostalCode = "PathogenTest.prescriberPostalCode";
24252425
String PathogenTest_quantitativeBoolean = "PathogenTest.quantitativeBoolean";
2426-
String PathogenTest_quantitativeText = "PathogenTest.quantitativeText";
24272426
String PathogenTest_quantitativeUnit = "PathogenTest.quantitativeUnit";
24282427
String PathogenTest_quantitativeValue = "PathogenTest.quantitativeValue";
24292428
String PathogenTest_reportDate = "PathogenTest.reportDate";
@@ -2893,6 +2892,7 @@ public interface Captions {
28932892
String selfReportDeletedEnvironments = "selfReportDeletedEnvironments";
28942893
String selfReportProcess = "selfReportProcess";
28952894
String selfReportSelfReportsList = "selfReportSelfReportsList";
2895+
String serogroup = "serogroup";
28962896
String sex = "sex";
28972897
String showPlacesOnMap = "showPlacesOnMap";
28982898
String singleDayEventDate = "singleDayEventDate";
@@ -3302,6 +3302,7 @@ public interface Captions {
33023302
String Symptoms_uproariousness = "Symptoms.uproariousness";
33033303
String Symptoms_urinaryRetention = "Symptoms.urinaryRetention";
33043304
String Symptoms_vomiting = "Symptoms.vomiting";
3305+
String Symptoms_wateryDiarrhea = "Symptoms.wateryDiarrhea";
33053306
String Symptoms_weakness = "Symptoms.weakness";
33063307
String Symptoms_weight = "Symptoms.weight";
33073308
String Symptoms_weightLoss = "Symptoms.weightLoss";

0 commit comments

Comments
 (0)