26
26
import de .symeda .sormas .api .caze .CaseClassification ;
27
27
import de .symeda .sormas .api .caze .CaseDataDto ;
28
28
import de .symeda .sormas .api .caze .CaseJurisdictionDto ;
29
+ import de .symeda .sormas .api .caze .Vaccination ;
30
+ import de .symeda .sormas .api .caze .VaccinationInfoSource ;
31
+ import de .symeda .sormas .api .caze .Vaccine ;
32
+ import de .symeda .sormas .api .caze .VaccineManufacturer ;
29
33
import de .symeda .sormas .api .epidata .EpiDataDto ;
30
34
import de .symeda .sormas .api .facility .FacilityHelper ;
31
35
import de .symeda .sormas .api .i18n .I18nProperties ;
50
54
import de .symeda .sormas .api .utils .YesNoUnknown ;
51
55
import de .symeda .sormas .api .utils .pseudonymization .Pseudonymizer ;
52
56
import de .symeda .sormas .api .utils .pseudonymization .valuepseudonymizers .PostalCodePseudonymizer ;
57
+ import de .symeda .sormas .api .vaccinationinfo .VaccinationInfoDto ;
53
58
54
59
public class ContactExportDto implements Serializable {
55
60
@@ -166,7 +171,19 @@ public class ContactExportDto implements Serializable {
166
171
private Date quarantineOfficialOrderSentDate ;
167
172
private YesNoUnknown returningTraveler ;
168
173
169
- private ContactJurisdictionDto jurisdiction ;
174
+ private Vaccination vaccination ;
175
+ private String vaccinationDoses ;
176
+ private VaccinationInfoSource vaccinationInfoSource ;
177
+ private Date firstVaccinationDate ;
178
+ private Date lastVaccinationDate ;
179
+ private Vaccine vaccineName ;
180
+ private String otherVaccineName ;
181
+ private VaccineManufacturer vaccineManufacturer ;
182
+ private String otherVaccineManufacturer ;
183
+ private String vaccineInn ;
184
+ private String vaccineBatchNumber ;
185
+ private String vaccineUniiCode ;
186
+ private String vaccineAtcCode ;
170
187
171
188
private Long eventCount ;
172
189
private String latestEventId ;
@@ -182,6 +199,8 @@ public class ContactExportDto implements Serializable {
182
199
183
200
private String reportingDistrict ;
184
201
202
+ private ContactJurisdictionDto jurisdiction ;
203
+
185
204
//@formatter:off
186
205
public ContactExportDto (long id , long personId , String uuid , String sourceCaseUuid , CaseClassification caseClassification , Disease disease , String diseaseDetails ,
187
206
ContactClassification contactClassification , Boolean multiDayContact , Date firstContactDate , Date lastContactDate ,
@@ -199,7 +218,13 @@ public ContactExportDto(long id, long personId, String uuid, String sourceCaseUu
199
218
String facility , String facilityUuid , String facilityDetails ,
200
219
String phone , String phoneOwner , String emailAddress , OccupationType occupationType , String occupationDetails , ArmedForcesRelationType armedForcesRelationType ,
201
220
String region , String district , String community ,
202
- long epiDataId , YesNoUnknown contactWithSourceCaseKnown , YesNoUnknown returningTraveler , String externalID , String externalToken ,
221
+ long epiDataId , YesNoUnknown contactWithSourceCaseKnown , YesNoUnknown returningTraveler ,
222
+ // vaccination info
223
+ Vaccination vaccination , String vaccinationDoses , VaccinationInfoSource vaccinationInfoSource , Date firstVaccinationDate , Date lastVaccinationDate ,
224
+ Vaccine vaccineName , String otherVaccineName , VaccineManufacturer vaccineManufacturer , String otherVaccineManufacturer ,
225
+ String vaccineInn , String vaccineBatchNumber , String vaccineUniiCode , String vaccineAtcCode ,
226
+
227
+ String externalID , String externalToken ,
203
228
String birthName , String birthCountryIsoCode , String birthCountryName , String citizenshipIsoCode , String citizenshipCountryName ,
204
229
String reportingDistrict ,
205
230
String reportingUserUuid , String regionUuid , String districtUuid , String communityUuid ,
@@ -267,6 +292,21 @@ public ContactExportDto(long id, long personId, String uuid, String sourceCaseUu
267
292
this .epiDataId = epiDataId ;
268
293
this .contactWithSourceCaseKnown = contactWithSourceCaseKnown ;
269
294
this .returningTraveler = returningTraveler ;
295
+
296
+ this .vaccination = vaccination ;
297
+ this .vaccinationDoses = vaccinationDoses ;
298
+ this .vaccinationInfoSource = vaccinationInfoSource ;
299
+ this .firstVaccinationDate = firstVaccinationDate ;
300
+ this .lastVaccinationDate = lastVaccinationDate ;
301
+ this .vaccineName = vaccineName ;
302
+ this .otherVaccineName = otherVaccineName ;
303
+ this .vaccineManufacturer = vaccineManufacturer ;
304
+ this .otherVaccineManufacturer = otherVaccineManufacturer ;
305
+ this .vaccineInn = vaccineInn ;
306
+ this .vaccineBatchNumber = vaccineBatchNumber ;
307
+ this .vaccineUniiCode = vaccineUniiCode ;
308
+ this .vaccineAtcCode = vaccineAtcCode ;
309
+
270
310
this .externalID = externalID ;
271
311
this .externalToken = externalToken ;
272
312
this .birthName = birthName ;
@@ -793,7 +833,98 @@ public void setReturningTraveler(YesNoUnknown returningTraveler) {
793
833
this .returningTraveler = returningTraveler ;
794
834
}
795
835
796
- @ Order (71 )
836
+ @ Order (80 )
837
+ @ ExportProperty (VaccinationInfoDto .VACCINATION )
838
+ @ ExportGroup (ExportGroupType .VACCINATION )
839
+ public Vaccination getVaccination () {
840
+ return vaccination ;
841
+ }
842
+
843
+ @ Order (81 )
844
+ @ ExportProperty (VaccinationInfoDto .VACCINATION_DOSES )
845
+ @ ExportGroup (ExportGroupType .VACCINATION )
846
+ public String getVaccinationDoses () {
847
+ return vaccinationDoses ;
848
+ }
849
+
850
+ @ Order (82 )
851
+ @ ExportProperty (VaccinationInfoDto .VACCINATION_INFO_SOURCE )
852
+ @ ExportGroup (ExportGroupType .VACCINATION )
853
+ public VaccinationInfoSource getVaccinationInfoSource () {
854
+ return vaccinationInfoSource ;
855
+ }
856
+
857
+ @ Order (83 )
858
+ @ ExportProperty (VaccinationInfoDto .FIRST_VACCINATION_DATE )
859
+ @ ExportGroup (ExportGroupType .VACCINATION )
860
+ public Date getFirstVaccinationDate () {
861
+ return firstVaccinationDate ;
862
+ }
863
+
864
+ @ Order (84 )
865
+ @ ExportProperty (VaccinationInfoDto .LAST_VACCINATION_DATE )
866
+ @ ExportGroup (ExportGroupType .VACCINATION )
867
+ public Date getLastVaccinationDate () {
868
+ return lastVaccinationDate ;
869
+ }
870
+
871
+ @ Order (85 )
872
+ @ ExportProperty (VaccinationInfoDto .VACCINE_NAME )
873
+ @ ExportGroup (ExportGroupType .VACCINATION )
874
+ public Vaccine getVaccineName () {
875
+ return vaccineName ;
876
+ }
877
+
878
+ @ Order (86 )
879
+ @ ExportProperty (VaccinationInfoDto .OTHER_VACCINE_NAME )
880
+ @ ExportGroup (ExportGroupType .VACCINATION )
881
+ public String getOtherVaccineName () {
882
+ return otherVaccineName ;
883
+ }
884
+
885
+ @ Order (87 )
886
+ @ ExportProperty (VaccinationInfoDto .VACCINE_MANUFACTURER )
887
+ @ ExportGroup (ExportGroupType .VACCINATION )
888
+ public VaccineManufacturer getVaccineManufacturer () {
889
+ return vaccineManufacturer ;
890
+ }
891
+
892
+ @ Order (88 )
893
+ @ ExportProperty (VaccinationInfoDto .OTHER_VACCINE_MANUFACTURER )
894
+ @ ExportGroup (ExportGroupType .VACCINATION )
895
+ public String getOtherVaccineManufacturer () {
896
+ return otherVaccineManufacturer ;
897
+ }
898
+
899
+ @ Order (89 )
900
+ @ ExportProperty (VaccinationInfoDto .VACCINE_INN )
901
+ @ ExportGroup (ExportGroupType .VACCINATION )
902
+ public String getVaccineInn () {
903
+ return vaccineInn ;
904
+ }
905
+
906
+ @ Order (90 )
907
+ @ ExportProperty (VaccinationInfoDto .VACCINE_BATCH_NUMBER )
908
+ @ ExportGroup (ExportGroupType .VACCINATION )
909
+ public String getVaccineBatchNumber () {
910
+ return vaccineBatchNumber ;
911
+ }
912
+
913
+ @ Order (91 )
914
+ @ ExportProperty (VaccinationInfoDto .VACCINE_UNII_CODE )
915
+ @ ExportGroup (ExportGroupType .VACCINATION )
916
+ public String getVaccineUniiCode () {
917
+ return vaccineUniiCode ;
918
+ }
919
+
920
+ @ Order (92 )
921
+ @ ExportProperty (VaccinationInfoDto .VACCINE_ATC_CODE )
922
+ @ ExportGroup (ExportGroupType .VACCINATION )
923
+ public String getVaccineAtcCode () {
924
+ return vaccineAtcCode ;
925
+ }
926
+
927
+ @ Order (100 )
797
928
@ ExportProperty (LATEST_EVENT_ID )
798
929
@ ExportGroup (ExportGroupType .EVENT )
799
930
public String getLatestEventId () {
@@ -804,7 +935,7 @@ public void setLatestEventId(String latestEventId) {
804
935
this .latestEventId = latestEventId ;
805
936
}
806
937
807
- @ Order (72 )
938
+ @ Order (101 )
808
939
@ ExportProperty (LATEST_EVENT_TITLE )
809
940
@ ExportGroup (ExportGroupType .EVENT )
810
941
public String getLatestEventTitle () {
@@ -815,46 +946,46 @@ public void setLatestEventTitle(String latestEventTitle) {
815
946
this .latestEventTitle = latestEventTitle ;
816
947
}
817
948
818
- @ Order (73 )
949
+ @ Order (102 )
819
950
@ ExportProperty (EVENT_COUNT )
820
951
@ ExportGroup (ExportGroupType .EVENT )
821
952
public Long getEventCount () {
822
953
return eventCount ;
823
954
}
824
955
825
- @ Order (80 )
956
+ @ Order (103 )
826
957
@ ExportProperty (PersonDto .BIRTH_NAME )
827
958
@ ExportGroup (ExportGroupType .SENSITIVE )
828
959
@ HideForCountriesExcept
829
960
public String getBirthName () {
830
961
return birthName ;
831
962
}
832
963
833
- @ Order (81 )
964
+ @ Order (104 )
834
965
@ ExportProperty (PersonDto .BIRTH_COUNTRY )
835
966
@ ExportGroup (ExportGroupType .SENSITIVE )
836
967
@ HideForCountriesExcept
837
968
public String getBirthCountry () {
838
969
return birthCountry ;
839
970
}
840
971
841
- @ Order (82 )
972
+ @ Order (105 )
842
973
@ ExportProperty (PersonDto .CITIZENSHIP )
843
974
@ ExportGroup (ExportGroupType .SENSITIVE )
844
975
@ HideForCountriesExcept
845
976
public String getCitizenship () {
846
977
return citizenship ;
847
978
}
848
979
849
- @ Order (83 )
980
+ @ Order (106 )
850
981
@ ExportProperty (ContactDto .REPORTING_DISTRICT )
851
982
@ ExportGroup (ExportGroupType .ADDITIONAL )
852
983
@ HideForCountriesExcept
853
984
public String getReportingDistrict () {
854
985
return reportingDistrict ;
855
986
}
856
987
857
- @ Order (84 )
988
+ @ Order (107 )
858
989
@ ExportProperty (ContactDto .EXTERNAL_TOKEN )
859
990
@ ExportGroup (ExportGroupType .CORE )
860
991
public String getExternalToken () {
0 commit comments