Spaces:
Sleeping
Sleeping
| from pydantic import BaseModel | |
| from typing import List, Optional | |
| from datetime import datetime | |
| class PatientCreate(BaseModel): | |
| full_name: str | |
| gender: str | |
| date_of_birth: str | |
| address: Optional[str] = "" | |
| city: Optional[str] = "" | |
| state: Optional[str] = "" | |
| postal_code: Optional[str] = "" | |
| country: Optional[str] = "US" | |
| national_id: Optional[str] = "" | |
| blood_type: Optional[str] = "" | |
| allergies: Optional[List[str]] = [] | |
| chronic_conditions: Optional[List[str]] = [] | |
| medications: Optional[List[str]] = [] | |
| emergency_contact_name: Optional[str] = "" | |
| emergency_contact_phone: Optional[str] = "" | |
| insurance_provider: Optional[str] = "" | |
| insurance_policy_number: Optional[str] = "" | |
| medical_notes: Optional[str] = "" | |
| symptoms: Optional[List[str]] = [] | |
| vital_signs: Optional[dict] = { | |
| "blood_pressure": "", | |
| "temperature": "", | |
| "heart_rate": "", | |
| "respiratory_rate": "", | |
| "weight": "", | |
| "height": "" | |
| } | |