Skip to content

Commit 2131357

Browse files
Include pre-screening activity when generating data
1 parent 2332888 commit 2131357

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/create-data.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,12 @@ for (const patientSession of Object.values(context.patientSessions)) {
461461
RegistrationOutcome.Present
462462
)
463463

464+
// PRE-SCREEN
465+
patientSession.preScreen({
466+
createdAt: new Date(vaccination.createdAt.getTime() - 10 * 60000),
467+
createdBy_uid: nurse.uid
468+
})
469+
464470
// 5️⃣ RECORD vaccination outcome
465471
patient.recordVaccination(vaccination)
466472
}

0 commit comments

Comments
 (0)