RoundsCorrowmere Clinics · Estmark synthetic data · seed 23

Result misfiled · result 3222796

Re-filed result 3222796 from patient 126172 to patient 98784 (label name and birth date and open order 120595 agree); order closed.

When
Wednesday 11 November 15:00:00
Call
refile result · PATCH /DiagnosticReport/3222796 subject=Patient/98784
Tier and status
tier 0 auto done
Definition
result misfiled v2
Decided by
rules: Specimen N. HOLLINBURY matches patient 98784's open order by name and birth date; the filed patient 126172 has no such order.
Controller
Allowed: refile_result is tier 0 (just do it); within budget (0 of 10 actions at clinic 19 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": 120595,
  "candidate_patient_id": 98784,
  "candidates": 1,
  "clinic": "Millhaven Rise Clinic",
  "clinic_id": 19,
  "feed": "clinic day",
  "filed_patient_id": 126172,
  "initial_match": true,
  "match": "name_and_dob",
  "patient_ids": [
    126172,
    98784
  ],
  "patients_affected": 2,
  "request_source": "group order",
  "result_id": 3222796,
  "specimen_dob": "1958-03-17",
  "specimen_id": "S15507940",
  "specimen_label": "N. HOLLINBURY",
  "stake_note": "two patients\u0027 records: one holds a result that is not theirs",
  "started_at": "2026-11-11T14:00:59",
  "test": "thyroid stimulating hormone"
}

Arguments

{
  "match": "name_and_dob",
  "patient_id": 98784,
  "result_id": 3222796
}

Before and after

{
  "after": {
    "lab_orders": [
      {
        "closed_at": "2026-11-11T15:00:00",
        "closed_by": "Rounds re-file",
        "id": 120595,
        "result_id": 3222796
      }
    ],
    "results": [
      {
        "filed_patient_id": 126172,
        "id": 3222796,
        "refiled_at": "2026-11-11T15:00:00",
        "refiled_to_patient_id": 98784
      }
    ]
  },
  "before": {
    "lab_orders": [
      {
        "closed_at": null,
        "closed_by": null,
        "id": 120595,
        "result_id": null
      }
    ],
    "results": [
      {
        "filed_patient_id": 126172,
        "id": 3222796,
        "refiled_at": null,
        "refiled_to_patient_id": null
      }
    ]
  }
}