1.9 KiB
1.9 KiB
Operations Module Roadmap Design
Boundary
This parent task is a coordination artifact. It should not directly implement schema, API, or UI changes unless a later requirement explicitly adds parent-level integration work.
Implementation belongs to child tasks:
07-02-care-service-workspace: health data management page.07-02-care-execution-workspace: care execution workspace.07-02-emergency-incident-workspace: emergency event workspace.07-02-elder-bed-context-optimization: cross-module context on elder and bed workflows.07-02-operations-dashboard-integration: final dashboard summaries.
Dependency Shape
The modules should be delivered in foundation-to-summary order:
- Health data management creates health records.
- Care execution creates care task/service records.
- Emergency workspace operationalizes incident records.
- Elder/bed context reads the new health/care/emergency records.
- Dashboard integration summarizes all persisted data.
Shared Technical Contracts
- Drizzle schema remains the persistence source of truth.
- New tables are additive migrations.
- Organization scoping is mandatory.
- Elder-linked records validate same-organization ownership.
- API responses use
{ success, reason, ... }. - Route handlers call
requirePermission. - Mutations record audit logs.
- Default workspace data creates real rows, not UI-only fixtures.
UI Contract
- Operational pages should use dense work-focused layouts.
- Backend management pages belong under
管理系统. - Existing
/app/healthremains separate from backend健康数据管理. 护理服务is daily execution work, not health data management.安全应急is event triage and closure.运营看板summarizes and routes; it is not a CRUD surface.
Rollback
Rollback should happen per child task. Parent rollback means unlinking or archiving the roadmap task; child migrations and source changes must be reverted in their own rollback plans.