Spaces:
Sleeping
Sleeping
Download src/models/request_models.py from Distopia22/Icd-cpt-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/spaces/Distopia22/Icd-cpt-coding-api/resolve/d1f5b4b87fa99cd8e916e23bc343c50d1ff3de8a/src/models/request_models.py
- Command line
-
hf download hf://spaces/Distopia22/Icd-cpt-coding-api@d1f5b4b87fa99cd8e916e23bc343c50d1ff3de8a/src/models/request_models.py
-
curl -L -o request_models.py https://huggingface.co/spaces/Distopia22/Icd-cpt-coding-api/resolve/d1f5b4b87fa99cd8e916e23bc343c50d1ff3de8a/src/models/request_models.py
800 Bytes
| 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 |