-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
35 lines (31 loc) · 672 Bytes
/
types.ts
File metadata and controls
35 lines (31 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export type Language = 'en' | 'hi' | 'gu';
export interface UserInput {
symptoms: string;
age: string;
gender: string;
existingConditions: string;
language: Language;
}
export interface PrescriptionData {
patientAge: string;
patientGender: string;
possibleCondition: string;
explanation: string;
suggestedMedicines: string[];
dosage: {
child?: string;
adult?: string;
elderly?: string;
};
homeRemedies: string[];
ayurvedicRemedies: string[];
precautions: string[];
whenToSeeDoctor: string;
disclaimer: string;
}
export enum LoadingState {
IDLE = 'IDLE',
LOADING = 'LOADING',
SUCCESS = 'SUCCESS',
ERROR = 'ERROR'
}