4242import de .symeda .sormas .api .location .LocationDto ;
4343import de .symeda .sormas .api .person .ApproximateAgeType ;
4444import de .symeda .sormas .api .person .ApproximateAgeType .ApproximateAgeHelper ;
45+ import de .symeda .sormas .api .person .ArmedForcesRelationType ;
4546import de .symeda .sormas .api .person .BurialConductor ;
4647import de .symeda .sormas .api .person .EducationType ;
4748import de .symeda .sormas .api .person .OccupationType ;
@@ -185,6 +186,7 @@ public class CaseExportDto implements Serializable {
185186 @ SensitiveData
186187 private String emailAddress ;
187188 private String occupationType ;
189+ private ArmedForcesRelationType armedForcesRelationType ;
188190 private String educationType ;
189191 private String travelHistory ;
190192 private boolean traveled ;
@@ -260,7 +262,7 @@ public CaseExportDto(long id, long personId, long personAddressId, long epiDataI
260262 String addressRegion , String addressDistrict , String addressCommunity , String city , String street , String houseNumber , String additionalInformation , String postalCode ,
261263 String facility , String facilityUuid , String facilityDetails ,
262264 String phone , String phoneOwner , String emailAddress , EducationType educationType , String educationDetails ,
263- OccupationType occupationType , String occupationDetails , YesNoUnknown contactWithSourceCaseKnown ,
265+ OccupationType occupationType , String occupationDetails , ArmedForcesRelationType ArmedForcesRelationType , YesNoUnknown contactWithSourceCaseKnown ,
264266 //Date onsetDate,
265267 Vaccination vaccination , String vaccinationDoses , Date vaccinationDate ,
266268 VaccinationInfoSource vaccinationInfoSource , YesNoUnknown postpartum , Trimester trimester ,
@@ -277,6 +279,7 @@ public CaseExportDto(long id, long personId, long personAddressId, long epiDataI
277279 this .healthConditionsId = healthConditionsId ;
278280 this .uuid = uuid ;
279281 this .epidNumber = epidNumber ;
282+ this .armedForcesRelationType = ArmedForcesRelationType ;
280283 this .diseaseFormatted = DiseaseHelper .toString (disease , diseaseDetails );
281284 this .disease = disease ;
282285 this .firstName = firstName ;
@@ -327,6 +330,7 @@ public CaseExportDto(long id, long personId, long personAddressId, long epiDataI
327330 this .emailAddress = emailAddress ;
328331 this .educationType = PersonHelper .buildEducationString (educationType , educationDetails );
329332 this .occupationType = PersonHelper .buildOccupationString (occupationType , occupationDetails );
333+ this .armedForcesRelationType = armedForcesRelationType ;
330334 this .contactWithSourceCaseKnown = contactWithSourceCaseKnown ;
331335// this.onsetDate = onsetDate;
332336 this .vaccination = vaccination ;
@@ -971,8 +975,8 @@ public String getPhone() {
971975
972976 @ Order (75 )
973977 @ ExportTarget (caseExportTypes = {
974- CaseExportType .CASE_SURVEILLANCE ,
975- CaseExportType .CASE_MANAGEMENT })
978+ CaseExportType .CASE_SURVEILLANCE ,
979+ CaseExportType .CASE_MANAGEMENT })
976980 @ ExportProperty (PersonDto .EMAIL_ADDRESS )
977981 @ ExportGroup (ExportGroupType .SENSITIVE )
978982 public String getEmailAddress () {
@@ -1004,6 +1008,16 @@ public String getOccupationType() {
10041008 }
10051009
10061010 @ Order (78 )
1011+ @ ExportTarget (caseExportTypes = {
1012+ CaseExportType .CASE_SURVEILLANCE ,
1013+ CaseExportType .CASE_MANAGEMENT })
1014+ @ ExportProperty (PersonDto .ARMED_FORCES_RELATION_TYPE )
1015+ @ ExportGroup (ExportGroupType .PERSON )
1016+ public ArmedForcesRelationType getArmedForcesRelationType () {
1017+ return armedForcesRelationType ;
1018+ }
1019+
1020+ @ Order (79 )
10071021 @ ExportTarget (caseExportTypes = {
10081022 CaseExportType .CASE_SURVEILLANCE })
10091023 @ ExportProperty (TRAVELED )
@@ -1016,7 +1030,7 @@ public void setTraveled(boolean traveled) {
10161030 this .traveled = traveled ;
10171031 }
10181032
1019- @ Order (79 )
1033+ @ Order (80 )
10201034 @ ExportTarget (caseExportTypes = {
10211035 CaseExportType .CASE_SURVEILLANCE })
10221036 @ ExportProperty (TRAVEL_HISTORY )
@@ -1025,7 +1039,7 @@ public String getTravelHistory() {
10251039 return travelHistory ;
10261040 }
10271041
1028- @ Order (80 )
1042+ @ Order (81 )
10291043 @ ExportTarget (caseExportTypes = {
10301044 CaseExportType .CASE_SURVEILLANCE })
10311045 @ ExportProperty (BURIAL_ATTENDED )
@@ -1038,7 +1052,7 @@ public void setBurialAttended(boolean burialAttended) {
10381052 this .burialAttended = burialAttended ;
10391053 }
10401054
1041- @ Order (81 )
1055+ @ Order (82 )
10421056 @ ExportTarget (caseExportTypes = {
10431057 CaseExportType .CASE_SURVEILLANCE })
10441058 @ ExportProperty (EpiDataDto .CONTACT_WITH_SOURCE_CASE_KNOWN )
@@ -1490,6 +1504,10 @@ public void setOccupationType(String occupationType) {
14901504 this .occupationType = occupationType ;
14911505 }
14921506
1507+ public void setArmedForcesRelationType (ArmedForcesRelationType armedForcesRelationType ) {
1508+ this .armedForcesRelationType = armedForcesRelationType ;
1509+ }
1510+
14931511 public void setTravelHistory (String travelHistory ) {
14941512 this .travelHistory = travelHistory ;
14951513 }
0 commit comments