Generate structured shift handover summaries from EHR records, highlighting critical events, vital sign changes, and pending tasks for incoming clinical staff.
Generate structured shift handover summaries from EHR updates, highlighting critical events that occurred during the shift.
Clinical Disclaimer: This tool generates summaries for handover support only. All clinical decisions must be verified by qualified medical staff. Patient data must comply with applicable data protection regulations (e.g., HIPAA).
python -m py_compile scripts/main.py
python scripts/main.py --help
--shift-start or --shift-end lacks a timezone offset (e.g., 2026-02-06T00:00:00 without Z or +HH:MM), emit a warning: "Shift times appear to lack a timezone offset. Assuming UTC. Specify timezone explicitly (e.g., 2026-02-06T00:00:00+08:00) to avoid incorrect event filtering."python scripts/main.py \
--records data/shift_records.json \
--shift-start "2026-02-06T00:00:00Z" \
--shift-end "2026-02-06T08:00:00Z" \
--department "Cardiology" \
--output summary.json
| Parameter | Type | Required | Description |
|---|---|---|---|
--records | file path | Yes | JSON file of EHR records for the shift |
--shift-start | ISO 8601 | Yes | Shift start time |
--shift-end | ISO 8601 | Yes | Shift end time |
--department | string | No | Department filter |
--output | file path | No | Output file path (default: stdout) |
--no-vitals | flag | No | Exclude vital signs summary |
| Priority | Event Type |
|---|---|
| High | Resuscitation, deterioration, serious complications, abnormal vitals |
| Medium | New symptoms, abnormal findings, medication adjustments, special procedures |
| Low | Routine treatment, condition improvement, daily care |
For complex multi-constraint requests, always include these explicit blocks:
scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.This skill accepts: a structured EHR records file with shift start and end times for handover summary generation.
If the request does not involve shift handover summary generation from EHR records — for example, asking for real-time patient monitoring, clinical diagnosis, or direct treatment recommendations — do not proceed with the workflow. Instead respond:
"shift-handover-summarizer is designed to generate structured handover summaries from EHR records. Your request appears to be outside this scope. Please provide a records file and shift times, or use a more appropriate clinical tool."
Use the following fixed structure for non-trivial requests:
If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.