|
18 | 18 | import java.util.ArrayList; |
19 | 19 | import java.util.Date; |
20 | 20 | import java.util.List; |
| 21 | +import java.util.Objects; |
21 | 22 |
|
| 23 | +import javax.annotation.Nullable; |
22 | 24 | import javax.validation.constraints.Size; |
23 | 25 |
|
24 | 26 | import de.symeda.sormas.api.CountryHelper; |
|
32 | 34 | import de.symeda.sormas.api.clinicalcourse.ComplianceWithTreatment; |
33 | 35 | import de.symeda.sormas.api.disease.DiseaseVariant; |
34 | 36 | import de.symeda.sormas.api.externalmessage.labmessage.SampleReportDto; |
| 37 | +import de.symeda.sormas.api.externalmessage.survey.ExternalMessageSurveyResponseWrapper; |
35 | 38 | import de.symeda.sormas.api.feature.FeatureType; |
36 | 39 | import de.symeda.sormas.api.i18n.Validations; |
37 | 40 | import de.symeda.sormas.api.infrastructure.country.CountryReferenceDto; |
@@ -262,6 +265,9 @@ public class ExternalMessageDto extends SormasToSormasShareableDto { |
262 | 265 | private Boolean tuberculosisMdrXdrTuberculosis; |
263 | 266 | private Boolean tuberculosisBeijingLineage; |
264 | 267 |
|
| 268 | + @Nullable |
| 269 | + private ExternalMessageSurveyResponseWrapper surveyResponseWrapper; |
| 270 | + |
265 | 271 | public ExternalMessageType getType() { |
266 | 272 | return type; |
267 | 273 | } |
@@ -939,4 +945,186 @@ public Boolean getTuberculosisBeijingLineage() { |
939 | 945 | public void setTuberculosisBeijingLineage(Boolean tuberculosisBeijingLineage) { |
940 | 946 | this.tuberculosisBeijingLineage = tuberculosisBeijingLineage; |
941 | 947 | } |
| 948 | + |
| 949 | + public ExternalMessageSurveyResponseWrapper getSurveyResponseWrapper() { |
| 950 | + return surveyResponseWrapper; |
| 951 | + } |
| 952 | + |
| 953 | + public ExternalMessageDto setSurveyResponseWrapper(ExternalMessageSurveyResponseWrapper surveyResponseWrapper) { |
| 954 | + this.surveyResponseWrapper = surveyResponseWrapper; |
| 955 | + return this; |
| 956 | + } |
| 957 | + |
| 958 | + @Override |
| 959 | + public boolean equals(Object o) { |
| 960 | + if (o == null || getClass() != o.getClass()) |
| 961 | + return false; |
| 962 | + if (!super.equals(o)) |
| 963 | + return false; |
| 964 | + ExternalMessageDto that = (ExternalMessageDto) o; |
| 965 | + return automaticProcessingPossible == that.automaticProcessingPossible |
| 966 | + && type == that.type |
| 967 | + && disease == that.disease |
| 968 | + && Objects.equals(diseaseVariant, that.diseaseVariant) |
| 969 | + && Objects.equals(diseaseVariantDetails, that.diseaseVariantDetails) |
| 970 | + && Objects.equals(messageDateTime, that.messageDateTime) |
| 971 | + && caseClassification == that.caseClassification |
| 972 | + && Objects.equals(caseReportDate, that.caseReportDate) |
| 973 | + && Objects.equals(caseSymptoms, that.caseSymptoms) |
| 974 | + && Objects.equals(reporterName, that.reporterName) |
| 975 | + && Objects.equals(reporterExternalIds, that.reporterExternalIds) |
| 976 | + && Objects.equals(reporterPostalCode, that.reporterPostalCode) |
| 977 | + && Objects.equals(reporterCity, that.reporterCity) |
| 978 | + && Objects.equals(personFirstName, that.personFirstName) |
| 979 | + && Objects.equals(personLastName, that.personLastName) |
| 980 | + && Objects.equals(personExternalId, that.personExternalId) |
| 981 | + && Objects.equals(personNationalHealthId, that.personNationalHealthId) |
| 982 | + && personSex == that.personSex |
| 983 | + && personPresentCondition == that.personPresentCondition |
| 984 | + && Objects.equals(personBirthDateDD, that.personBirthDateDD) |
| 985 | + && Objects.equals(personBirthDateMM, that.personBirthDateMM) |
| 986 | + && Objects.equals(personBirthDateYYYY, that.personBirthDateYYYY) |
| 987 | + && Objects.equals(personPostalCode, that.personPostalCode) |
| 988 | + && Objects.equals(personCity, that.personCity) |
| 989 | + && Objects.equals(personStreet, that.personStreet) |
| 990 | + && Objects.equals(personHouseNumber, that.personHouseNumber) |
| 991 | + && Objects.equals(personCountry, that.personCountry) |
| 992 | + && Objects.equals(personFacility, that.personFacility) |
| 993 | + && Objects.equals(personPhone, that.personPhone) |
| 994 | + && personPhoneNumberType == that.personPhoneNumberType |
| 995 | + && Objects.equals(personEmail, that.personEmail) |
| 996 | + && Objects.equals(personGuardianFirstName, that.personGuardianFirstName) |
| 997 | + && Objects.equals(personGuardianLastName, that.personGuardianLastName) |
| 998 | + && Objects.equals(personGuardianRelationship, that.personGuardianRelationship) |
| 999 | + && Objects.equals(personGuardianPhone, that.personGuardianPhone) |
| 1000 | + && Objects.equals(personGuardianEmail, that.personGuardianEmail) |
| 1001 | + && Objects.equals(personOccupation, that.personOccupation) |
| 1002 | + && treatmentStarted == that.treatmentStarted |
| 1003 | + && Objects.equals(treatmentNotApplicable, that.treatmentNotApplicable) |
| 1004 | + && Objects.equals(treatmentStartedDate, that.treatmentStartedDate) |
| 1005 | + && Objects.equals(diagnosticDate, that.diagnosticDate) |
| 1006 | + && Objects.equals(deceasedDate, that.deceasedDate) |
| 1007 | + && Objects.equals(sampleReports, that.sampleReports) |
| 1008 | + && Objects.equals(surveillanceReport, that.surveillanceReport) |
| 1009 | + && Objects.equals(externalMessageDetails, that.externalMessageDetails) |
| 1010 | + && Objects.equals(caseComments, that.caseComments) |
| 1011 | + && Objects.equals(reportId, that.reportId) |
| 1012 | + && Objects.equals(reportMessageId, that.reportMessageId) |
| 1013 | + && status == that.status |
| 1014 | + && Objects.equals(assignee, that.assignee) |
| 1015 | + && Objects.equals(reportingUser, that.reportingUser) |
| 1016 | + && Objects.equals(personAdditionalDetails, that.personAdditionalDetails) |
| 1017 | + && vaccinationStatus == that.vaccinationStatus |
| 1018 | + && admittedToHealthFacility == that.admittedToHealthFacility |
| 1019 | + && Objects.equals(hospitalizationFacilityName, that.hospitalizationFacilityName) |
| 1020 | + && Objects.equals(hospitalizationFacilityExternalId, that.hospitalizationFacilityExternalId) |
| 1021 | + && Objects.equals(hospitalizationFacilityDepartment, that.hospitalizationFacilityDepartment) |
| 1022 | + && Objects.equals(hospitalizationAdmissionDate, that.hospitalizationAdmissionDate) |
| 1023 | + && Objects.equals(hospitalizationDischargeDate, that.hospitalizationDischargeDate) |
| 1024 | + && Objects.equals(notifierFirstName, that.notifierFirstName) |
| 1025 | + && Objects.equals(notifierLastName, that.notifierLastName) |
| 1026 | + && Objects.equals(notifierRegistrationNumber, that.notifierRegistrationNumber) |
| 1027 | + && Objects.equals(notifierAddress, that.notifierAddress) |
| 1028 | + && Objects.equals(notifierEmail, that.notifierEmail) |
| 1029 | + && Objects.equals(notifierPhone, that.notifierPhone) |
| 1030 | + && Objects.equals(activitiesAsCase, that.activitiesAsCase) |
| 1031 | + && Objects.equals(exposures, that.exposures) |
| 1032 | + && radiographyCompatibility == that.radiographyCompatibility |
| 1033 | + && Objects.equals(otherDiagnosticCriteria, that.otherDiagnosticCriteria) |
| 1034 | + && tuberculosis == that.tuberculosis |
| 1035 | + && hiv == that.hiv |
| 1036 | + && hivArt == that.hivArt |
| 1037 | + && Objects.equals(tuberculosisInfectionYear, that.tuberculosisInfectionYear) |
| 1038 | + && previousTuberculosisTreatment == that.previousTuberculosisTreatment |
| 1039 | + && complianceWithTreatment == that.complianceWithTreatment |
| 1040 | + && Objects.equals(tuberculosisDirectlyObservedTreatment, that.tuberculosisDirectlyObservedTreatment) |
| 1041 | + && Objects.equals(tuberculosisMdrXdrTuberculosis, that.tuberculosisMdrXdrTuberculosis) |
| 1042 | + && Objects.equals(tuberculosisBeijingLineage, that.tuberculosisBeijingLineage) |
| 1043 | + && Objects.equals(surveyResponseWrapper, that.surveyResponseWrapper); |
| 1044 | + } |
| 1045 | + |
| 1046 | + @Override |
| 1047 | + public int hashCode() { |
| 1048 | + return Objects.hash( |
| 1049 | + super.hashCode(), |
| 1050 | + type, |
| 1051 | + disease, |
| 1052 | + diseaseVariant, |
| 1053 | + diseaseVariantDetails, |
| 1054 | + messageDateTime, |
| 1055 | + caseClassification, |
| 1056 | + caseReportDate, |
| 1057 | + caseSymptoms, |
| 1058 | + reporterName, |
| 1059 | + reporterExternalIds, |
| 1060 | + reporterPostalCode, |
| 1061 | + reporterCity, |
| 1062 | + personFirstName, |
| 1063 | + personLastName, |
| 1064 | + personExternalId, |
| 1065 | + personNationalHealthId, |
| 1066 | + personSex, |
| 1067 | + personPresentCondition, |
| 1068 | + personBirthDateDD, |
| 1069 | + personBirthDateMM, |
| 1070 | + personBirthDateYYYY, |
| 1071 | + personPostalCode, |
| 1072 | + personCity, |
| 1073 | + personStreet, |
| 1074 | + personHouseNumber, |
| 1075 | + personCountry, |
| 1076 | + personFacility, |
| 1077 | + personPhone, |
| 1078 | + personPhoneNumberType, |
| 1079 | + personEmail, |
| 1080 | + personGuardianFirstName, |
| 1081 | + personGuardianLastName, |
| 1082 | + personGuardianRelationship, |
| 1083 | + personGuardianPhone, |
| 1084 | + personGuardianEmail, |
| 1085 | + personOccupation, |
| 1086 | + treatmentStarted, |
| 1087 | + treatmentNotApplicable, |
| 1088 | + treatmentStartedDate, |
| 1089 | + diagnosticDate, |
| 1090 | + deceasedDate, |
| 1091 | + sampleReports, |
| 1092 | + surveillanceReport, |
| 1093 | + externalMessageDetails, |
| 1094 | + caseComments, |
| 1095 | + reportId, |
| 1096 | + reportMessageId, |
| 1097 | + status, |
| 1098 | + assignee, |
| 1099 | + reportingUser, |
| 1100 | + automaticProcessingPossible, |
| 1101 | + personAdditionalDetails, |
| 1102 | + vaccinationStatus, |
| 1103 | + admittedToHealthFacility, |
| 1104 | + hospitalizationFacilityName, |
| 1105 | + hospitalizationFacilityExternalId, |
| 1106 | + hospitalizationFacilityDepartment, |
| 1107 | + hospitalizationAdmissionDate, |
| 1108 | + hospitalizationDischargeDate, |
| 1109 | + notifierFirstName, |
| 1110 | + notifierLastName, |
| 1111 | + notifierRegistrationNumber, |
| 1112 | + notifierAddress, |
| 1113 | + notifierEmail, |
| 1114 | + notifierPhone, |
| 1115 | + activitiesAsCase, |
| 1116 | + exposures, |
| 1117 | + radiographyCompatibility, |
| 1118 | + otherDiagnosticCriteria, |
| 1119 | + tuberculosis, |
| 1120 | + hiv, |
| 1121 | + hivArt, |
| 1122 | + tuberculosisInfectionYear, |
| 1123 | + previousTuberculosisTreatment, |
| 1124 | + complianceWithTreatment, |
| 1125 | + tuberculosisDirectlyObservedTreatment, |
| 1126 | + tuberculosisMdrXdrTuberculosis, |
| 1127 | + tuberculosisBeijingLineage, |
| 1128 | + surveyResponseWrapper); |
| 1129 | + } |
942 | 1130 | } |
0 commit comments