2626import de .symeda .sormas .api .caze .CaseClassification ;
2727import de .symeda .sormas .api .caze .CaseDataDto ;
2828import 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 ;
2933import de .symeda .sormas .api .epidata .EpiDataDto ;
3034import de .symeda .sormas .api .facility .FacilityHelper ;
3135import de .symeda .sormas .api .i18n .I18nProperties ;
5054import de .symeda .sormas .api .utils .YesNoUnknown ;
5155import de .symeda .sormas .api .utils .pseudonymization .Pseudonymizer ;
5256import de .symeda .sormas .api .utils .pseudonymization .valuepseudonymizers .PostalCodePseudonymizer ;
57+ import de .symeda .sormas .api .vaccinationinfo .VaccinationInfoDto ;
5358
5459public class ContactExportDto implements Serializable {
5560
@@ -166,7 +171,19 @@ public class ContactExportDto implements Serializable {
166171 private Date quarantineOfficialOrderSentDate ;
167172 private YesNoUnknown returningTraveler ;
168173
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 ;
170187
171188 private Long eventCount ;
172189 private String latestEventId ;
@@ -182,6 +199,8 @@ public class ContactExportDto implements Serializable {
182199
183200 private String reportingDistrict ;
184201
202+ private ContactJurisdictionDto jurisdiction ;
203+
185204 //@formatter:off
186205 public ContactExportDto (long id , long personId , String uuid , String sourceCaseUuid , CaseClassification caseClassification , Disease disease , String diseaseDetails ,
187206 ContactClassification contactClassification , Boolean multiDayContact , Date firstContactDate , Date lastContactDate ,
@@ -199,7 +218,13 @@ public ContactExportDto(long id, long personId, String uuid, String sourceCaseUu
199218 String facility , String facilityUuid , String facilityDetails ,
200219 String phone , String phoneOwner , String emailAddress , OccupationType occupationType , String occupationDetails , ArmedForcesRelationType armedForcesRelationType ,
201220 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 ,
203228 String birthName , String birthCountryIsoCode , String birthCountryName , String citizenshipIsoCode , String citizenshipCountryName ,
204229 String reportingDistrict ,
205230 String reportingUserUuid , String regionUuid , String districtUuid , String communityUuid ,
@@ -267,6 +292,21 @@ public ContactExportDto(long id, long personId, String uuid, String sourceCaseUu
267292 this .epiDataId = epiDataId ;
268293 this .contactWithSourceCaseKnown = contactWithSourceCaseKnown ;
269294 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+
270310 this .externalID = externalID ;
271311 this .externalToken = externalToken ;
272312 this .birthName = birthName ;
@@ -793,7 +833,98 @@ public void setReturningTraveler(YesNoUnknown returningTraveler) {
793833 this .returningTraveler = returningTraveler ;
794834 }
795835
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 )
797928 @ ExportProperty (LATEST_EVENT_ID )
798929 @ ExportGroup (ExportGroupType .EVENT )
799930 public String getLatestEventId () {
@@ -804,7 +935,7 @@ public void setLatestEventId(String latestEventId) {
804935 this .latestEventId = latestEventId ;
805936 }
806937
807- @ Order (72 )
938+ @ Order (101 )
808939 @ ExportProperty (LATEST_EVENT_TITLE )
809940 @ ExportGroup (ExportGroupType .EVENT )
810941 public String getLatestEventTitle () {
@@ -815,46 +946,46 @@ public void setLatestEventTitle(String latestEventTitle) {
815946 this .latestEventTitle = latestEventTitle ;
816947 }
817948
818- @ Order (73 )
949+ @ Order (102 )
819950 @ ExportProperty (EVENT_COUNT )
820951 @ ExportGroup (ExportGroupType .EVENT )
821952 public Long getEventCount () {
822953 return eventCount ;
823954 }
824955
825- @ Order (80 )
956+ @ Order (103 )
826957 @ ExportProperty (PersonDto .BIRTH_NAME )
827958 @ ExportGroup (ExportGroupType .SENSITIVE )
828959 @ HideForCountriesExcept
829960 public String getBirthName () {
830961 return birthName ;
831962 }
832963
833- @ Order (81 )
964+ @ Order (104 )
834965 @ ExportProperty (PersonDto .BIRTH_COUNTRY )
835966 @ ExportGroup (ExportGroupType .SENSITIVE )
836967 @ HideForCountriesExcept
837968 public String getBirthCountry () {
838969 return birthCountry ;
839970 }
840971
841- @ Order (82 )
972+ @ Order (105 )
842973 @ ExportProperty (PersonDto .CITIZENSHIP )
843974 @ ExportGroup (ExportGroupType .SENSITIVE )
844975 @ HideForCountriesExcept
845976 public String getCitizenship () {
846977 return citizenship ;
847978 }
848979
849- @ Order (83 )
980+ @ Order (106 )
850981 @ ExportProperty (ContactDto .REPORTING_DISTRICT )
851982 @ ExportGroup (ExportGroupType .ADDITIONAL )
852983 @ HideForCountriesExcept
853984 public String getReportingDistrict () {
854985 return reportingDistrict ;
855986 }
856987
857- @ Order (84 )
988+ @ Order (107 )
858989 @ ExportProperty (ContactDto .EXTERNAL_TOKEN )
859990 @ ExportGroup (ExportGroupType .CORE )
860991 public String getExternalToken () {
0 commit comments