feat: AI patient onboarding backend and documentation

This commit is contained in:
2026-08-27 12:15:09 +05:30
parent b9440772d1
commit 59c1372fe3
49 changed files with 4012 additions and 0 deletions
@@ -0,0 +1,20 @@
from typing import Any, Optional
from pydantic import BaseModel, Field
class DocumentFinding(BaseModel):
test: str
value: str
unit: Optional[str] = None
interpretation: Optional[str] = None
class DocumentExtractionResponse(BaseModel):
success: bool
session_id: str
document_type: str
summary: str
findings: list[DocumentFinding] = Field(default_factory=list)
medications_found: list[str] = Field(default_factory=list)
allergies_found: list[str] = Field(default_factory=list)
message: str