Spaces:
Sleeping
Sleeping
Download trauma/api/data/model.py from brestok/TraumaBackend: direct link, hf CLI and curl.
- Browser
- Download file 566 Bytes
-
https://huggingface.co/spaces/brestok/TraumaBackend/resolve/main/trauma/api/data/model.py
- Command line
-
hf download hf://spaces/brestok/TraumaBackend/trauma/api/data/model.py
-
curl -L -o model.py https://huggingface.co/spaces/brestok/TraumaBackend/resolve/main/trauma/api/data/model.py
566 Bytes
| from trauma.api.data.dto import AgeGroup, ContactDetails | |
| from trauma.core.database import MongoBaseModel | |
| class EntityModel(MongoBaseModel): | |
| id: str | |
| name: str | |
| ageGroups: list[AgeGroup] | |
| treatmentAreas: list[str] | |
| treatmentMethods: list[str] | |
| description: str = '' | |
| contactDetails: ContactDetails | |
| class EntityModelExtended(EntityModel): | |
| highlightedAgeGroup: AgeGroup | None = None | |
| highlightedTreatmentArea: str | None = None | |
| highlightedTreatmentMethod: str | None = None | |
| topMatch: bool = False | |
| score: float | None = None |