1717 *******************************************************************************/
1818package de .symeda .sormas .api .sample ;
1919
20+ import java .io .Serializable ;
21+ import java .util .Date ;
22+
2023import de .symeda .sormas .api .Disease ;
2124import de .symeda .sormas .api .caze .CaseJurisdictionDto ;
2225import de .symeda .sormas .api .caze .CaseReferenceDto ;
2326import de .symeda .sormas .api .contact .ContactJurisdictionDto ;
2427import de .symeda .sormas .api .contact .ContactReferenceDto ;
25- import de .symeda .sormas .api .event .EventJurisdictionDto ;
28+ import de .symeda .sormas .api .event .EventParticipantJurisdictionDto ;
2629import de .symeda .sormas .api .event .EventParticipantReferenceDto ;
2730import de .symeda .sormas .api .facility .FacilityHelper ;
2831import de .symeda .sormas .api .facility .FacilityReferenceDto ;
3336import de .symeda .sormas .api .utils .pseudonymization .Pseudonymizer ;
3437import de .symeda .sormas .api .utils .pseudonymization .valuepseudonymizers .EmptyValuePseudonymizer ;
3538
36- import java .io .Serializable ;
37- import java .util .Date ;
38-
3939public class SampleIndexDto extends PseudonymizableIndexDto implements Serializable {
4040
4141 private static final long serialVersionUID = -6298614717044087479L ;
@@ -111,7 +111,7 @@ public SampleIndexDto(String uuid, String epidNumber, String labSampleId, Date s
111111 String contactReportingUserUuid , String contactRegionUuid , String contactDistrictUuid , String contactCommunityUuid ,
112112 String contactCaseReportingUserUuid , String contactCaseRegionUuid , String contactCaseDistrictUuid ,
113113 String contactCaseCommunityUuid , String contactCaseHealthFacilityUuid , String contactCasePointOfEntryUuid ,
114- String eventReportingUserUuid , String eventOfficerUuid , String eventRegionUuid , String eventDistrictUuid , String eventCommunityUuid ) {
114+ String eventReportingUserUuid , String eventOfficerUuid , String eventParticipantRegionUuid , String eventParticipantDistrictUuid , String eventUuid ) {
115115 //@formatter:on
116116
117117 this .uuid = uuid ;
@@ -132,7 +132,8 @@ public SampleIndexDto(String uuid, String epidNumber, String labSampleId, Date s
132132 this .labSampleID = labSampleId ;
133133 this .disease = disease ;
134134 this .diseaseDetails = diseaseDetails ;
135- this .district = createDistrictReference (districtName , caseDistrictUuid , contactDistrictUuid , contactCaseDistrictUuid , eventDistrictUuid );
135+ this .district =
136+ createDistrictReference (districtName , caseDistrictUuid , contactDistrictUuid , contactCaseDistrictUuid , eventParticipantDistrictUuid );
136137 this .shipped = shipped ;
137138 this .received = received ;
138139 this .referred = referredSampleUuid != null ;
@@ -178,14 +179,22 @@ public SampleIndexDto(String uuid, String epidNumber, String labSampleId, Date s
178179 contactCaseJurisdiction );
179180 }
180181
181- EventJurisdictionDto eventJurisdiction = null ;
182+ EventParticipantJurisdictionDto eventParticipantJurisdiction = null ;
182183 if (associatedEventParticipantUuid != null ) {
183- eventJurisdiction =
184- new EventJurisdictionDto (eventReportingUserUuid , eventOfficerUuid , eventRegionUuid , eventDistrictUuid , eventCommunityUuid );
184+ eventParticipantJurisdiction = new EventParticipantJurisdictionDto (
185+ associatedEventParticipantUuid ,
186+ eventReportingUserUuid ,
187+ eventParticipantRegionUuid ,
188+ eventParticipantDistrictUuid ,
189+ eventUuid );
185190 }
186191
187- jurisdiction =
188- new SampleJurisdictionDto (reportingUserUuid , associatedCaseJurisdiction , associatedContactJurisdiction , eventJurisdiction , labUuid );
192+ jurisdiction = new SampleJurisdictionDto (
193+ reportingUserUuid ,
194+ associatedCaseJurisdiction ,
195+ associatedContactJurisdiction ,
196+ eventParticipantJurisdiction ,
197+ labUuid );
189198 }
190199
191200 private DistrictReferenceDto createDistrictReference (
0 commit comments