RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Result misfiled · result 3222498

checked the request form; the label and the open order agree [scripted staff responses (synthetic)]

When
Wednesday 11 November 09:20:00
Call
refile result · PATCH /DiagnosticReport/3222498 subject=Patient/2936
Tier and status
tier 2 approved
Definition
result misfiled v2
Decided by
rules: Specimen A. QUARRMERE matches patient 2936's open order by family name only; the filed patient 46450 has no such order.
Controller
Needs a person: refile_result with match is name_only needs a person (policy: ask first).
Signed off by
Pella Tarnhithe (lab lead, scripted)
Undo
undo_refile_result restores the before-snapshot below

Evidence the detector returned

{
  "bookings_affected": 0,
  "candidate_order_id": 121941,
  "candidate_patient_id": 2936,
  "candidates": 1,
  "clinic": "Easterholme Health Centre",
  "clinic_id": 5,
  "feed": "clinic day",
  "filed_patient_id": 46450,
  "initial_match": true,
  "match": "name_only",
  "patient_ids": [
    46450,
    2936
  ],
  "patients_affected": 2,
  "request_source": "group order",
  "result_id": 3222498,
  "specimen_dob": null,
  "specimen_id": "S71017504",
  "specimen_label": "A. QUARRMERE",
  "stake_note": "two patients\u0027 records: one holds a result that is not theirs",
  "started_at": "2026-11-11T08:47:44",
  "test": "haemoglobin"
}

Arguments

{
  "match": "name_only",
  "patient_id": 2936,
  "result_id": 3222498
}

Before and after

{
  "after": {
    "lab_orders": [
      {
        "closed_at": "2026-11-11T09:20:00",
        "closed_by": "Rounds re-file",
        "id": 121941,
        "result_id": 3222498
      }
    ],
    "results": [
      {
        "filed_patient_id": 46450,
        "id": 3222498,
        "refiled_at": "2026-11-11T09:20:00",
        "refiled_to_patient_id": 2936
      }
    ]
  },
  "before": {
    "lab_orders": [
      {
        "closed_at": null,
        "closed_by": null,
        "id": 121941,
        "result_id": null
      }
    ],
    "results": [
      {
        "filed_patient_id": 46450,
        "id": 3222498,
        "refiled_at": null,
        "refiled_to_patient_id": null
      }
    ]
  }
}