Recheck helps emergency department staff follow up on patients whose condition changes after triage. It covers the wait before the first physician or nurse practitioner assessment. Patients and companions report changes from a phone. Staff see a ranked review list, act on concerns, and hand off open tasks.
This is a hackathon prototype:
- It uses only synthetic visits.
- It runs next to Connect Care and Epic Rover. Connect Care stays the clinical record.
- Its questions, rules and deadlines are demo values. They do not have clinical approval.
patient / companion phone ──QR link──┐
▼
staff browser ──Auth0 sign-in──► web (React, Vite) ──/api──► api (FastAPI) ──► PostgreSQL + TimescaleDB (Tiger Cloud)
▲ │ ▲
└──── Server-Sent Events ──┘ └── question-bank/ (FHIR questions, CEDIS map)
- A triage nurse enrols a visit and gives the patient a QR code.
- The patient or a companion scans the QR, then answers short check-ins or reports a concern.
- The API stores the report and runs the rules. In the same transaction, it opens or raises the one review task of the visit.
- The staff dashboards refresh live. Staff acknowledge the task, then assess the patient.
- Timers make a task when a check-in is missed. They send unacknowledged urgent tasks to the charge nurse.
- If the patient turned on reminders, the timers also send a Web Push reminder when a check-in is due.
| Path | Contents |
|---|---|
api/ |
FastAPI service: contract, routes, rules, timers, synthetic cohort, wait-time poller |
web/ |
React front end for patients and staff |
db/ |
TimescaleDB schema, migrations, seed data, SQL checks |
question-bank/ |
FHIR questions, CEDIS complaint map, translations |
auth0/ |
Auth0 tenant setup for staff sign-in |
infra/, deploy/, compose.yaml, .github/workflows/ |
Demo deployment: Terraform, Docker Compose, Caddy, GitHub Actions |
docs/ |
Project plan, hackathon runbook, research briefs and their source notes, design notes |
media/ |
Source logo. web/src/components/Brand.tsx uses it. |
AGENTS.md |
Scope, stack and rules for all changes to the code |
You need Node.js for the web app and uv for the API. uv installs Python 3.12.
You do not need the API or a database.
cd web
npm install
npm run dev # http://localhost:5173web/README.md shows the demo loop and the seeded patient links.
-
Make a root
.envfile. SetRECHECK_DATABASE_URL(asrecheck_api) andRECHECK_SECRET_KEY(32+ characters).api/README.mdlists all settings. For a new database, do the steps indb/README.mdfirst. -
Start the API:
cd api uv sync uv run uvicorn recheck.main:app --reload --loop asyncio:SelectorEventLoop # http://127.0.0.1:8000/docs
-
Start the web app with the mocks off:
cd web VITE_USE_MOCKS=false npm run dev
To sign in as staff without Auth0, set RECHECK_DEMO_STAFF=true. This turns on the demo role picker.
docker compose up --build # http://localhost:8080Compose has no database container. It uses the Tiger Cloud service in RECHECK_DATABASE_URL. See infra/README.md.
| Area | Command |
|---|---|
| API | cd api && uv run pytest |
| Web | cd web && npm run typecheck && npm run lint && npm test && npm run build && npm run check:contract |
| Database | psql "$ADMIN_URL" -v ON_ERROR_STOP=1 -f db/tests/schema_checks.sql |
No CI workflow runs these checks yet. Run them before you open a pull request.
Make a branch from the current main. Keep each branch to one change. Open a pull request into main. AGENTS.md has the full Git workflow.
Read the research brief before you change clinical pathways, escalation policy or pilot scope.