feat(web): 药物记录 Web UI — Phase 2a-3
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

新增药物记录管理前端页面,接入后端 4 条孤立路由:
- API 模块: medicationRecords.ts(CRUD + 频次/途径常量)
- 列表页: MedicationRecordList.tsx(患者 ID 查询 + 药物列表 CRUD)
  支持药品名/通用名/剂量/频次/途径/日期/在用状态
- 路由注册: /health/medications

权限: health.medication-records.list / health.medication-records.manage
This commit is contained in:
iven
2026-05-04 23:41:04 +08:00
parent 68ced2bae9
commit 438f9ca3f4
4 changed files with 418 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ const routeTitleFallback: Record<string, string> = {
'/health/care-plans/:id': '护理计划详情',
'/health/shifts': '班次管理',
'/health/shifts/:id': '班次详情',
'/health/medications': '药物记录',
};
function getTitleFromMenus(path: string, menus: MenuInfo[]): string | undefined {