Spaces:
Sleeping
Sleeping
File size: 800 Bytes
1441b40 |
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 |
from pydantic import BaseModel, Field
class ProviderNotesRequest(BaseModel):
provider_notes: str = Field(
...,
description="The medical provider notes to analyze",
min_length=10,
example="Patient presents with acute bronchitis. Performed comprehensive examination and prescribed antibiotics."
)
class Config:
json_schema_extra = {
"example": {
"provider_notes": "Patient presents with acute bronchitis. Cough for 5 days, productive with yellow sputum. Lung exam reveals diffuse wheezing. Prescribed azithromycin 500mg."
}
}
class ProviderNote(BaseModel):
note: str
class CodingResponse(BaseModel):
cpt_codes: list
cpt_explanation: str
icd_codes: list
icd_explanation: str |