Skip to content

Commit dca3cd3

Browse files
committed
Add fifth patient case with duplicate data
1 parent 4389c56 commit dca3cd3

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

lib/create-data.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ if (vaccinatedPatient) {
713713

714714
// Seeded MMR patients for testing the valid/ignored dose UI.
715715
// Stable UUIDs and NHS numbers so they can be deep-linked during clinician testing.
716-
// All four share a DOB (1 Sept 2020 — Year 1 at Seva Primary in AY 2025/26)
716+
// All share a DOB (1 Sept 2020 — Year 1 at Seva Primary in AY 2025/26)
717717
// so their dose histories can be compared side-by-side. Added last, after the
718718
// random session/consent/vaccination loops, so they stay isolated reference cases.
719719
const seededMmrSchoolId = '141104A' // Seva School - Primary (runs MMR)
@@ -845,6 +845,25 @@ const seededMmrPatients = [
845845
{ uuid: 'mmr00004-v001-4000-8000-000000000001', ageMonths: 11, ageDays: 0, given: true },
846846
{ uuid: 'mmr00004-v002-4000-8000-000000000002', ageMonths: 12, ageDays: 14, given: true }
847847
]
848+
},
849+
{
850+
uuid: 'mmr00005-0000-4000-8000-000000000005',
851+
nhsn: '9990000053',
852+
firstName: 'Eshe',
853+
lastName: 'Edwards',
854+
doses: [
855+
// Case 5 — duplicate records (echoes from other systems). Clinically two
856+
// doses, but recorded four times: each dose arrives once from the
857+
// originating system and once as an echo from another feed.
858+
// Dose 1 recorded by GP
859+
{ uuid: 'mmr00005-v001-4000-8000-000000000001', ageMonths: 13, ageDays: 0, given: true },
860+
// Dose 1 echo — same event via a different external feed (e.g. CHIS)
861+
{ uuid: 'mmr00005-v002-4000-8000-000000000002', ageMonths: 13, ageDays: 0, given: true },
862+
// Dose 2 given in a Mavis session by SAIS
863+
{ uuid: 'mmr00005-v003-4000-8000-000000000003', ageMonths: 50, ageDays: 0, given: true, service: true, sessionKey: 'session_50m' },
864+
// Dose 2 near-duplicate — GP echo two days later
865+
{ uuid: 'mmr00005-v004-4000-8000-000000000004', ageMonths: 50, ageDays: 2, given: true }
866+
]
848867
}
849868
]
850869

0 commit comments

Comments
 (0)