RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Duplicate patient · patient 180008

same person, confirmed on the phone or address [scripted staff responses (synthetic)]

When
Monday 16 November 10:20:00
Call
merge patient records · POST /Patient/$merge source=180008 target=160954
Tier and status
tier 2 approved
Definition
duplicate patient v1
Decided by
rules: Same name, birth date and sex, and phone and postcode match.
Controller
Needs a person: merge_patient_records is tier 2 (ask first) in the policy. Merge a newly registered duplicate record into the older one, moving its bookings across.
Signed off by
Ines Wendmore (records lead, scripted)
Undo
undo_merge_patient_records restores the before-snapshot below

Evidence the detector returned

{
  "bookings_affected": 0,
  "bookings_on_new_record": 0,
  "clinic_id": 24,
  "dob": "1965-02-05",
  "feed": "admin",
  "mrn": "R15048861",
  "name": "Adam Ellmore",
  "other_mrn": "R5540638",
  "other_patient_id": 160954,
  "other_registered_at": "2001-08-26 05:08:05",
  "patient_id": 180008,
  "patient_ids": [
    180008,
    160954
  ],
  "patients_affected": 1,
  "phone_match": true,
  "postcode_match": true,
  "same_region": true,
  "sex": "M",
  "stake_note": "one patient split over two records",
  "started_at": "2026-11-16T09:19:51"
}

Arguments

{
  "other_patient_id": 160954,
  "patient_id": 180008
}

Before and after

{
  "after": {
    "appointments": [],
    "patients": [
      {
        "id": 180008,
        "merged_at": "2026-11-16T10:20:00",
        "merged_into": 160954
      }
    ]
  },
  "before": {
    "appointments": [],
    "patients": [
      {
        "id": 180008,
        "merged_at": null,
        "merged_into": null
      }
    ]
  }
}