theraPy/arztapi/DoctorInformation.py
2024-09-07 21:12:55 +02:00

34 lines
767 B
Python

import datetime
from typing import Optional, List
from pydantic import BaseModel
class PhoneTime(BaseModel):
"""
Mapping for PhoneTime/Telefonzeit in object for pydantic
"""
start: datetime.datetime
end: datetime.datetime
class DoctorInformation(BaseModel):
"""
Mapping for information about doctor's (therapists) with for theraPy relevant information
"""
# Used for indexes later
nr: Optional[int] = 0
name: str
tel: str
# Fax is optionally available as contact information
fax: Optional[str] = None
anrede: str
# Email is also optionally available
email: Optional[str] = None
distance: int
strasse: str
hausnummer: str
plz: str
ort: str
telefonzeiten: List[PhoneTime]