File size: 566 Bytes
9150f8e
 
 
 
 
3ec35ef
9150f8e
 
 
 
52bd2ca
9150f8e
e754e5a
 
 
704300e
 
 
97743c1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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