RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Result misfiled · result 3226268

Re-filed result 3226268 from patient 98437 to patient 150069 (label name and birth date and open order 125723 agree); order closed.

When
Friday 13 November 14:00:00
Call
refile result · PATCH /DiagnosticReport/3226268 subject=Patient/150069
Tier and status
tier 0 auto done
Definition
result misfiled v2
Decided by
rules: Specimen E. KESTBURY matches patient 150069's open order by name and birth date; the filed patient 98437 has no such order.
Controller
Allowed: refile_result is tier 0 (just do it); within budget (0 of 10 actions at clinic 1 this hour).
Signed off by
nobody needed: tier 0
Undo
undo_refile_result restores the before-snapshot below

Evidence the detector returned

{
  "bookings_affected": 0,
  "candidate_order_id": 125723,
  "candidate_patient_id": 150069,
  "candidates": 1,
  "clinic": "Quarrington Vale Health Centre",
  "clinic_id": 1,
  "feed": "clinic day",
  "filed_patient_id": 98437,
  "initial_match": true,
  "match": "name_and_dob",
  "patient_ids": [
    98437,
    150069
  ],
  "patients_affected": 2,
  "request_source": "group order",
  "result_id": 3226268,
  "specimen_dob": "2012-11-16",
  "specimen_id": "S72729746",
  "specimen_label": "E. KESTBURY",
  "stake_note": "two patients\u0027 records: one holds a result that is not theirs",
  "started_at": "2026-11-13T13:51:59",
  "test": "LDL cholesterol"
}

Arguments

{
  "match": "name_and_dob",
  "patient_id": 150069,
  "result_id": 3226268
}

Before and after

{
  "after": {
    "lab_orders": [
      {
        "closed_at": "2026-11-13T14:00:00",
        "closed_by": "Rounds re-file",
        "id": 125723,
        "result_id": 3226268
      }
    ],
    "results": [
      {
        "filed_patient_id": 98437,
        "id": 3226268,
        "refiled_at": "2026-11-13T14:00:00",
        "refiled_to_patient_id": 150069
      }
    ]
  },
  "before": {
    "lab_orders": [
      {
        "closed_at": null,
        "closed_by": null,
        "id": 125723,
        "result_id": null
      }
    ],
    "results": [
      {
        "filed_patient_id": 98437,
        "id": 3226268,
        "refiled_at": null,
        "refiled_to_patient_id": null
      }
    ]
  }
}