Skip to content

Commit 997f366

Browse files
authored
Merge pull request #13575 from SORMAS-Foundation/feature-13294_doctor_declarations_xml_esante_adapter
Feature 13294 doctor declarations xml esante adapter
2 parents c7fcd13 + 129bf94 commit 997f366

File tree

51 files changed

+2681
-882
lines changed

Some content is hidden

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

51 files changed

+2681
-882
lines changed

sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/ExternalMessageDto.java

Lines changed: 166 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* SORMAS® - Surveillance Outbreak Response Management & Analysis System
3-
* Copyright © 2016-2022 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI)
3+
* Copyright © 2016-2026 SORMAS Foundation gGmbH
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
@@ -26,8 +26,10 @@
2626
import de.symeda.sormas.api.audit.AuditIncludeProperty;
2727
import de.symeda.sormas.api.audit.AuditedClass;
2828
import de.symeda.sormas.api.caze.CaseClassification;
29+
import de.symeda.sormas.api.caze.RadiographyCompatibility;
2930
import de.symeda.sormas.api.caze.VaccinationStatus;
3031
import de.symeda.sormas.api.caze.surveillancereport.SurveillanceReportReferenceDto;
32+
import de.symeda.sormas.api.clinicalcourse.ComplianceWithTreatment;
3133
import de.symeda.sormas.api.disease.DiseaseVariant;
3234
import de.symeda.sormas.api.externalmessage.labmessage.SampleReportDto;
3335
import de.symeda.sormas.api.feature.FeatureType;
@@ -101,10 +103,19 @@ public class ExternalMessageDto extends SormasToSormasShareableDto {
101103
public static final String NOTIFIER_EMAIL = "notifierEmail";
102104
public static final String NOTIFIER_PHONE = "notifierPhone";
103105
public static final String TREATMENT_STARTED = "treatmentStarted";
106+
public static final String TREATMENT_NOT_APPLICABLE = "treatmentNotApplicable";
104107
public static final String TREATMENT_STARTED_DATE = "treatmentStartedDate";
105108
public static final String DIAGNOSTIC_DATE = "diagnosticDate";
106109
public static final String ACTIVITIES_AS_CASE = "activitiesAsCase";
107110
public static final String EXPOSURES = "exposures";
111+
public static final String RADIOGRAPHY_COMPATIBILITY = "radiographyCompatibility";
112+
public static final String OTHER_DIAGNOSTIC_CRITERIA = "otherDiagnosticCriteria";
113+
public static final String TUBERCULOSIS = "tuberculosis";
114+
public static final String HIV = "hiv";
115+
public static final String HIV_ART = "hivArt";
116+
public static final String TUBERCULOSIS_INFECTION_YEAR = "tuberculosisInfectionYear";
117+
public static final String PREVIOUS_TUBERCULOSIS_TREATMENT = "previousTuberculosisTreatment";
118+
public static final String COMPLIANCE_WITH_TREATMENT = "complianceWithTreatment";
108119

109120
@AuditIncludeProperty
110121
private ExternalMessageType type;
@@ -170,9 +181,11 @@ public class ExternalMessageDto extends SormasToSormasShareableDto {
170181
private String personGuardianPhone;
171182
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
172183
private String personGuardianEmail;
173-
private String treatmentStarted;
184+
private YesNoUnknown treatmentStarted;
185+
private Boolean treatmentNotApplicable;
174186
private Date treatmentStartedDate;
175187
private Date diagnosticDate;
188+
private Date deceasedDate;
176189

177190
@AuditIncludeProperty
178191
private List<SampleReportDto> sampleReports;
@@ -181,6 +194,8 @@ public class ExternalMessageDto extends SormasToSormasShareableDto {
181194

182195
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong)
183196
private String externalMessageDetails;
197+
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong)
198+
private String caseComments;
184199
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
185200
private String reportId;
186201

@@ -203,28 +218,43 @@ public class ExternalMessageDto extends SormasToSormasShareableDto {
203218
private VaccinationStatus vaccinationStatus;
204219

205220
private YesNoUnknown admittedToHealthFacility;
221+
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
222+
private String hospitalizationFacilityName;
223+
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
224+
private String hospitalizationFacilityExternalId;
225+
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
226+
private String hospitalizationFacilityDepartment;
227+
private Date hospitalizationAdmissionDate;
228+
private Date hospitalizationDischargeDate;
206229

207230
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
208231
private String notifierFirstName;
209-
210232
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
211233
private String notifierLastName;
212-
213234
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
214235
private String notifierRegistrationNumber;
215-
216236
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong)
217237
private String notifierAddress;
218-
219238
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
220239
private String notifierEmail;
221-
222240
@Size(max = FieldConstraints.CHARACTER_LIMIT_SMALL, message = Validations.textTooLong)
223241
private String notifierPhone;
224242

225243
private String activitiesAsCase;
226244
private String exposures;
227245

246+
private RadiographyCompatibility radiographyCompatibility;
247+
@Size(max = FieldConstraints.CHARACTER_LIMIT_DEFAULT, message = Validations.textTooLong)
248+
private String otherDiagnosticCriteria;
249+
250+
private YesNoUnknown tuberculosis;
251+
private YesNoUnknown hiv;
252+
private YesNoUnknown hivArt;
253+
254+
private Integer tuberculosisInfectionYear;
255+
private YesNoUnknown previousTuberculosisTreatment;
256+
private ComplianceWithTreatment complianceWithTreatment;
257+
228258
public ExternalMessageType getType() {
229259
return type;
230260
}
@@ -513,6 +543,14 @@ public void setExternalMessageDetails(String externalMessageDetails) {
513543
this.externalMessageDetails = externalMessageDetails;
514544
}
515545

546+
public String getCaseComments() {
547+
return caseComments;
548+
}
549+
550+
public void setCaseComments(String caseComments) {
551+
this.caseComments = caseComments;
552+
}
553+
516554
public ExternalMessageStatus getStatus() {
517555
return status;
518556
}
@@ -569,6 +607,46 @@ public void setAdmittedToHealthFacility(YesNoUnknown admittedToHealthFacility) {
569607
this.admittedToHealthFacility = admittedToHealthFacility;
570608
}
571609

610+
public String getHospitalizationFacilityName() {
611+
return hospitalizationFacilityName;
612+
}
613+
614+
public void setHospitalizationFacilityName(String hospitalizationFacilityName) {
615+
this.hospitalizationFacilityName = hospitalizationFacilityName;
616+
}
617+
618+
public String getHospitalizationFacilityExternalId() {
619+
return hospitalizationFacilityExternalId;
620+
}
621+
622+
public void setHospitalizationFacilityExternalId(String hospitalizationFacilityExternalId) {
623+
this.hospitalizationFacilityExternalId = hospitalizationFacilityExternalId;
624+
}
625+
626+
public String getHospitalizationFacilityDepartment() {
627+
return hospitalizationFacilityDepartment;
628+
}
629+
630+
public void setHospitalizationFacilityDepartment(String hospitalizationFacilityDepartment) {
631+
this.hospitalizationFacilityDepartment = hospitalizationFacilityDepartment;
632+
}
633+
634+
public Date getHospitalizationAdmissionDate() {
635+
return hospitalizationAdmissionDate;
636+
}
637+
638+
public void setHospitalizationAdmissionDate(Date hospitalizationAdmissionDate) {
639+
this.hospitalizationAdmissionDate = hospitalizationAdmissionDate;
640+
}
641+
642+
public Date getHospitalizationDischargeDate() {
643+
return hospitalizationDischargeDate;
644+
}
645+
646+
public void setHospitalizationDischargeDate(Date hospitalizationDischargeDate) {
647+
this.hospitalizationDischargeDate = hospitalizationDischargeDate;
648+
}
649+
572650
public String getNotifierFirstName() {
573651
return notifierFirstName;
574652
}
@@ -617,14 +695,22 @@ public void setNotifierPhone(String notifierPhone) {
617695
this.notifierPhone = notifierPhone;
618696
}
619697

620-
public String getTreatmentStarted() {
698+
public YesNoUnknown getTreatmentStarted() {
621699
return treatmentStarted;
622700
}
623701

624-
public void setTreatmentStarted(String treatmentStarted) {
702+
public void setTreatmentStarted(YesNoUnknown treatmentStarted) {
625703
this.treatmentStarted = treatmentStarted;
626704
}
627705

706+
public Boolean getTreatmentNotApplicable() {
707+
return treatmentNotApplicable;
708+
}
709+
710+
public void setTreatmentNotApplicable(Boolean treatmentNotApplicable) {
711+
this.treatmentNotApplicable = treatmentNotApplicable;
712+
}
713+
628714
public Date getTreatmentStartedDate() {
629715
return treatmentStartedDate;
630716
}
@@ -743,4 +829,75 @@ public void setExposures(String exposures) {
743829
this.exposures = exposures;
744830
}
745831

832+
public Date getDeceasedDate() {
833+
return deceasedDate;
834+
}
835+
836+
public void setDeceasedDate(Date deceasedDate) {
837+
this.deceasedDate = deceasedDate;
838+
}
839+
840+
public RadiographyCompatibility getRadiographyCompatibility() {
841+
return radiographyCompatibility;
842+
}
843+
844+
public void setRadiographyCompatibility(RadiographyCompatibility radiographyCompatibility) {
845+
this.radiographyCompatibility = radiographyCompatibility;
846+
}
847+
848+
public String getOtherDiagnosticCriteria() {
849+
return otherDiagnosticCriteria;
850+
}
851+
852+
public void setOtherDiagnosticCriteria(String otherDiagnosticCriteria) {
853+
this.otherDiagnosticCriteria = otherDiagnosticCriteria;
854+
}
855+
856+
public YesNoUnknown getTuberculosis() {
857+
return tuberculosis;
858+
}
859+
860+
public void setTuberculosis(YesNoUnknown tuberculosis) {
861+
this.tuberculosis = tuberculosis;
862+
}
863+
864+
public YesNoUnknown getHiv() {
865+
return hiv;
866+
}
867+
868+
public void setHiv(YesNoUnknown hiv) {
869+
this.hiv = hiv;
870+
}
871+
872+
public YesNoUnknown getHivArt() {
873+
return hivArt;
874+
}
875+
876+
public void setHivArt(YesNoUnknown hivArt) {
877+
this.hivArt = hivArt;
878+
}
879+
880+
public Integer getTuberculosisInfectionYear() {
881+
return tuberculosisInfectionYear;
882+
}
883+
884+
public void setTuberculosisInfectionYear(Integer tuberculosisInfectionYear) {
885+
this.tuberculosisInfectionYear = tuberculosisInfectionYear;
886+
}
887+
888+
public YesNoUnknown getPreviousTuberculosisTreatment() {
889+
return previousTuberculosisTreatment;
890+
}
891+
892+
public void setPreviousTuberculosisTreatment(YesNoUnknown previousTuberculosisTreatment) {
893+
this.previousTuberculosisTreatment = previousTuberculosisTreatment;
894+
}
895+
896+
public ComplianceWithTreatment getComplianceWithTreatment() {
897+
return complianceWithTreatment;
898+
}
899+
900+
public void setComplianceWithTreatment(ComplianceWithTreatment complianceWithTreatment) {
901+
this.complianceWithTreatment = complianceWithTreatment;
902+
}
746903
}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class TestReportDto extends EntityDto {
3232
public static final String TEST_LAB_POSTAL_CODE = "testLabPostalCode";
3333
public static final String TEST_LAB_CITY = "testLabCity";
3434
public static final String TEST_TYPE = "testType";
35+
public static final String TEST_TYPE_DETAILS = "testTypeDetails";
3536
public static final String TEST_DATE_TIME = "testDateTime";
3637
public static final String TEST_RESULT = "testResult";
3738
public static final String DATE_OF_RESULT = "dateOfResult";
@@ -63,6 +64,8 @@ public class TestReportDto extends EntityDto {
6364
private String testLabCity;
6465

6566
private PathogenTestType testType;
67+
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong)
68+
private String testTypeDetails;
6669
private Date testDateTime;
6770
private PathogenTestResultType testResult;
6871
private Date dateOfResult;
@@ -176,6 +179,14 @@ public void setTestType(PathogenTestType testType) {
176179
this.testType = testType;
177180
}
178181

182+
public String getTestTypeDetails() {
183+
return testTypeDetails;
184+
}
185+
186+
public void setTestTypeDetails(String testTypeDetails) {
187+
this.testTypeDetails = testTypeDetails;
188+
}
189+
179190
public Date getTestDateTime() {
180191
return testDateTime;
181192
}

0 commit comments

Comments
 (0)