HF-25: journey instrumentation with loader v2 and journey events #13

Merged
gmackie merged 1 commit from feat/HF-25-journey-instrumentation into main 2026-11-08 18:51:13 +00:00
Owner

HF-25 (Related: DATFLR-9)

  • Loader v2: apps/hospital/dataflare.js is the canonical journey loader with only CONFIG edited. It excludes admin, api, v1, internal, /demo/api, /hospital/api, site-link and any patient, record, chart or encounter route, and has identify off because the public demo has no accounts. The Worker still serves it only in the public demo profile.
  • Medical-data rules: events carry no properties apart from small enums. The patient list, encounter panel and bed board are marked data-glass-no-capture, so click autocapture never records their text.
  • Helper apps/hospital/src/analytics.ts re-checks the enum at runtime. Test: tests/analytics.test.mjs.
  • Events, fired after the server accepts the action:
    • hospital_action_completed {action}: simulator command accepted.
    • encounter_completed: an advance discharges the encounter (conversion).
    • delivery_step_completed {step}: a delivery-lab step is accepted.
    • delivery_walkthrough_completed: the result is imported.

🤖 Generated with Claude Code

HF-25 (Related: DATFLR-9) - Loader v2: `apps/hospital/dataflare.js` is the canonical journey loader with only CONFIG edited. It excludes admin, api, v1, internal, `/demo/api`, `/hospital/api`, site-link and any patient, record, chart or encounter route, and has identify off because the public demo has no accounts. The Worker still serves it only in the public demo profile. - Medical-data rules: events carry no properties apart from small enums. The patient list, encounter panel and bed board are marked `data-glass-no-capture`, so click autocapture never records their text. - Helper `apps/hospital/src/analytics.ts` re-checks the enum at runtime. Test: `tests/analytics.test.mjs`. - Events, fired after the server accepts the action: - `hospital_action_completed {action}`: simulator command accepted. - `encounter_completed`: an advance discharges the encounter (conversion). - `delivery_step_completed {step}`: a delivery-lab step is accepted. - `delivery_walkthrough_completed`: the result is imported. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
HF-25: journey instrumentation with loader v2 and journey events
All checks were successful
Scaffold conformance / test (pull_request) Successful in 1m58s
forgegraph/ci CI passed
Scaffold conformance / forgegraph-report (pull_request) Successful in 7s
583263438d
Replace apps/hospital/dataflare.js (served by the Worker in the public
demo profile only) with the canonical DATFLR-9 journey loader. CONFIG
only: project hospital-fabric; exclude admin/api/v1/internal, both demo
APIs, site-link and any patient, record, chart or encounter route;
identify off (the public demo has no accounts).

Journey events, property-free apart from small enums:
- hospital_action_completed {action}: simulator command accepted
- encounter_completed: an advance discharges the encounter (conversion)
- delivery_step_completed {step}: delivery-lab step accepted
- delivery_walkthrough_completed: result imported

The simulator's patient list, encounter panel and bed board carry
data-glass-no-capture so click autocapture never records their text.
Related: DATFLR-9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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!13
No description provided.