diff --git a/apps/web/src/api/health/actionInbox.ts b/apps/web/src/api/health/actionInbox.ts index 2d73b88..951ba63 100644 --- a/apps/web/src/api/health/actionInbox.ts +++ b/apps/web/src/api/health/actionInbox.ts @@ -50,6 +50,13 @@ export interface WorkbenchStats { completion_rate: number | null; } +export interface NursePatientSummary { + patient_id: string; + patient_name: string; + pending_actions: number; + highest_priority: ActionPriority; +} + export interface TeamMemberOverview { user_id: string; name: string; @@ -77,6 +84,8 @@ export const actionInboxApi = { type?: string; page?: number; page_size?: number; + assigned_to_me?: boolean; + patient_id?: string; }) => { const { data } = await client.get<{ success: boolean; @@ -93,11 +102,19 @@ export const actionInboxApi = { return data.data; }, - stats: async () => { + stats: async (params?: { assigned_to_me?: boolean }) => { const { data } = await client.get<{ success: boolean; data: WorkbenchStats; - }>('/health/action-inbox/stats'); + }>('/health/action-inbox/stats', { params }); + return data.data; + }, + + myPatients: async () => { + const { data } = await client.get<{ + success: boolean; + data: NursePatientSummary[]; + }>('/health/action-inbox/my-patients'); return data.data; }, diff --git a/apps/web/src/pages/Home.tsx b/apps/web/src/pages/Home.tsx index 746771d..1b7cc69 100644 --- a/apps/web/src/pages/Home.tsx +++ b/apps/web/src/pages/Home.tsx @@ -36,6 +36,7 @@ import ActionDetailDrawer from './health/components/workbench/ActionDetailDrawer import TaskQueue from './health/components/workbench/TaskQueue'; import TaskDetail from './health/components/workbench/TaskDetail'; import DoctorWorkbench from './health/components/workbench/DoctorWorkbench'; +import NurseWorkbench from './health/components/workbench/NurseWorkbench'; import OperatorWorkbench from './health/components/workbench/OperatorWorkbench'; import AdminDashboard from './health/components/workbench/AdminDashboard'; import type { ActionItem } from '../api/health/actionInbox'; @@ -321,28 +322,9 @@ export default function Home() { })} - {/* 双栏布局 — nurse */} + {/* 护士专属工作台 */} {role === 'nurse' ? ( -