Add patient personalization: profile saved once, reused every chat turn
This commit is contained in:
@@ -23,3 +23,17 @@ export interface RegisterRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
/** Per-user clinical context, set once from the account profile page and
|
||||
* reused across chat turns so a logged-in doctor isn't re-asked age/weight
|
||||
* on every dosing question. All fields optional/nullable — an anonymous
|
||||
* user or a logged-in user with no saved profile is entirely unaffected. */
|
||||
export interface PatientProfile {
|
||||
ageText: string | null;
|
||||
weightKg: number | null;
|
||||
renalFunction: string | null;
|
||||
hepaticFunction: string | null;
|
||||
knownAllergies: string | null;
|
||||
}
|
||||
|
||||
export type PatientProfileUpdate = Partial<PatientProfile>;
|
||||
|
||||
Reference in New Issue
Block a user