@@ -29,7 +29,7 @@ const determineEventStatus = (slotDateTime, currentDateTime, attendanceWeights)
2929 }
3030
3131 if ( slotDate . isBefore ( currentDate ) ) {
32- const finalStatuses = [ 'attended ' , 'did_not_attend' , 'attended_not_screened' ] ;
32+ const finalStatuses = [ 'complete ' , 'did_not_attend' , 'attended_not_screened' ] ;
3333 return weighted . select ( finalStatuses , attendanceWeights ) ;
3434 }
3535
@@ -41,14 +41,14 @@ const determineEventStatus = (slotDateTime, currentDateTime, attendanceWeights)
4141 // Within 30 mins of appointment
4242 return weighted . select ( {
4343 'checked_in' : 0.6 ,
44- 'attended ' : 0.1 ,
44+ 'complete ' : 0.1 ,
4545 'attended_not_screened' : 0.1 ,
4646 'scheduled' : 0.2 ,
4747 } ) ;
4848 } else {
4949 // More than 30 mins after appointment
5050 return weighted . select ( {
51- 'attended ' : 0.6 ,
51+ 'complete ' : 0.6 ,
5252 'attended_not_screened' : 0.1 ,
5353 'scheduled' : 0.2 ,
5454 } ) ;
@@ -120,15 +120,15 @@ const generateEvent = ({ slot, participant, clinic, outcomeWeights }) => {
120120 status,
121121 details : {
122122 ...eventBase . details ,
123- imagesTaken : status === 'attended ' ?
123+ imagesTaken : status === 'complete ' ?
124124 [ 'RCC' , 'LCC' , 'RMLO' , 'LMLO' ] : null ,
125125 notScreenedReason : status === 'attended_not_screened' ?
126126 faker . helpers . arrayElement ( NOT_SCREENED_REASONS ) : null
127127 } ,
128128 statusHistory : generateStatusHistory ( status , slotDateTime )
129129 } ;
130130
131- if ( status === 'attended ' ) {
131+ if ( status === 'complete ' ) {
132132 const actualStartOffset = faker . number . int ( { min : - 5 , max : 5 } ) ;
133133
134134 // For special events, allow more time variation
@@ -161,7 +161,7 @@ const generateStatusHistory = (finalStatus, dateTime) => {
161161 } ) ;
162162
163163 // Add intermediate statuses based on final status
164- if ( finalStatus === 'attended ' ) {
164+ if ( finalStatus === 'complete ' ) {
165165 history . push (
166166 {
167167 status : 'checked_in' ,
0 commit comments