Spaces:
Sleeping
Sleeping
Update models/schemas.py
Browse files- models/schemas.py +11 -1
models/schemas.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from pydantic import BaseModel, EmailStr
|
| 2 |
-
from typing import Optional
|
| 3 |
from datetime import date
|
| 4 |
|
| 5 |
class SignupForm(BaseModel):
|
|
@@ -20,4 +20,14 @@ class PatientCreate(BaseModel):
|
|
| 20 |
date_of_birth: date
|
| 21 |
gender: str
|
| 22 |
notes: Optional[str] = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
contact: Optional[ContactInfo] = None
|
|
|
|
| 1 |
from pydantic import BaseModel, EmailStr
|
| 2 |
+
from typing import Optional, List
|
| 3 |
from datetime import date
|
| 4 |
|
| 5 |
class SignupForm(BaseModel):
|
|
|
|
| 20 |
date_of_birth: date
|
| 21 |
gender: str
|
| 22 |
notes: Optional[str] = ""
|
| 23 |
+
address: Optional[str] = None
|
| 24 |
+
national_id: Optional[str] = None
|
| 25 |
+
blood_type: Optional[str] = None
|
| 26 |
+
allergies: Optional[List[str]] = []
|
| 27 |
+
chronic_conditions: Optional[List[str]] = []
|
| 28 |
+
medications: Optional[List[str]] = []
|
| 29 |
+
emergency_contact_name: Optional[str] = None
|
| 30 |
+
emergency_contact_phone: Optional[str] = None
|
| 31 |
+
insurance_provider: Optional[str] = None
|
| 32 |
+
insurance_policy_number: Optional[str] = None
|
| 33 |
contact: Optional[ContactInfo] = None
|