Files
teatea-pension/modules/operations/types.ts

27 lines
613 B
TypeScript

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>;
};