HF-6: Simulate connected hospital journeys, departments and shared resources #1

Closed
gmackie wants to merge 0 commits from feat/HF-6-hospital-simulation into main
Owner

HF-6: Expands med.gmac.io from a single lab scenario into a connected synthetic hospital simulation.

What

  • Visitor-isolated durable hospital state (D1 migration 0005_hospital_simulation.sql) behind /hospital/api/{session,state,commands}.
  • Medical, surgical and outpatient journeys across registration, ED/outpatient, lab, imaging, ward/theatre, pharmacy and discharge.
  • Shared beds, queues and pharmacy stock; simulated clock and WAN outage with queued summaries and recovery.
  • Commands carry requestId + version: duplicate replays are idempotent, stale/concurrent commands are rejected (no double-booking/dispensing). Payloads capped at 2 KiB; arrivals and receipts bounded per shift.
  • Hospital simulator is the public landing page; the original delivery walkthrough and real-product proof move to /delivery-lab.
  • scripts/smoke-hospital.mjs verifies three journeys, isolation, replay safety and WAN queues against the deployed target.

Checks (local)

  • npm run check: 37/37 node tests pass (domain + API + integration)
  • npm run smoke:workerd: pass
  • npm run test:console: 6/6 Chromium scenarios pass, including hospital medical/surgical journeys, reload persistence and WAN queueing

Synthetic operations simulation only — not clinical decision software.

Related: HF-1, HF-2, HF-3.

🤖 Generated with Claude Code

GitHub twin: https://github.com/gmackie/hospital-fabric/pull/6

HF-6: Expands med.gmac.io from a single lab scenario into a connected synthetic hospital simulation. ## What - Visitor-isolated durable hospital state (D1 migration `0005_hospital_simulation.sql`) behind `/hospital/api/{session,state,commands}`. - Medical, surgical and outpatient journeys across registration, ED/outpatient, lab, imaging, ward/theatre, pharmacy and discharge. - Shared beds, queues and pharmacy stock; simulated clock and WAN outage with queued summaries and recovery. - Commands carry `requestId` + `version`: duplicate replays are idempotent, stale/concurrent commands are rejected (no double-booking/dispensing). Payloads capped at 2 KiB; arrivals and receipts bounded per shift. - Hospital simulator is the public landing page; the original delivery walkthrough and real-product proof move to `/delivery-lab`. - `scripts/smoke-hospital.mjs` verifies three journeys, isolation, replay safety and WAN queues against the deployed target. ## Checks (local) - `npm run check`: 37/37 node tests pass (domain + API + integration) - `npm run smoke:workerd`: pass - `npm run test:console`: 6/6 Chromium scenarios pass, including hospital medical/surgical journeys, reload persistence and WAN queueing Synthetic operations simulation only — not clinical decision software. Related: HF-1, HF-2, HF-3. 🤖 Generated with [Claude Code](https://claude.com/claude-code) GitHub twin: https://github.com/gmackie/hospital-fabric/pull/6
HF-6: simulate connected hospital journeys, departments and shared resources
All checks were successful
Scaffold conformance / test (push) Successful in 2m1s
Scaffold conformance / test (pull_request) Successful in 1m47s
7948528600
gmackie closed this pull request 2026-11-23 13:25:11 +00:00
Author
Owner

Closed in the 2026-11-23 backlog cleanup: the same change already reached the base branch another way (superseded).

Head is already in main (0 commits ahead); HF-6 hospital simulation landed.

The branch is kept; reopen this PR if it is still wanted.

Closed in the 2026-11-23 backlog cleanup: the same change already reached the base branch another way (superseded). Head is already in main (0 commits ahead); HF-6 hospital simulation landed. The branch is kept; reopen this PR if it is still wanted.
All checks were successful
Scaffold conformance / test (push) Successful in 2m1s
Scaffold conformance / test (pull_request) Successful in 1m47s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gmackie/hospital-fabric!1
No description provided.