feat: add elder bed operational context
This commit is contained in:
26
modules/operations/types.ts
Normal file
26
modules/operations/types.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export type ContextLineKind = "care" | "health" | "incident" | "admission";
|
||||
|
||||
export type OperationalContextLine = {
|
||||
kind: ContextLineKind;
|
||||
label: string;
|
||||
value: string;
|
||||
tone?: "danger" | "muted" | "warning";
|
||||
};
|
||||
|
||||
export type ElderOperationalContext = {
|
||||
lines: OperationalContextLine[];
|
||||
};
|
||||
|
||||
export type BedOperationalContext = {
|
||||
occupant?: {
|
||||
careLevel: string;
|
||||
elderName: string;
|
||||
status: string;
|
||||
};
|
||||
lines: OperationalContextLine[];
|
||||
};
|
||||
|
||||
export type ElderBedContextData = {
|
||||
bedContexts: Record<string, BedOperationalContext>;
|
||||
elderContexts: Record<string, ElderOperationalContext>;
|
||||
};
|
||||
Reference in New Issue
Block a user