theraPy/arztapi/DoctorInformation.py

34 lines
767 B
Python
Raw Normal View History

2024-08-26 21:05:34 +02:00
import datetime
from typing import Optional, List
from pydantic import BaseModel
class PhoneTime(BaseModel):
2024-09-07 21:12:55 +02:00
"""
Mapping for PhoneTime/Telefonzeit in object for pydantic
"""
2024-08-26 21:05:34 +02:00
start: datetime.datetime
end: datetime.datetime
class DoctorInformation(BaseModel):
2024-09-07 21:12:55 +02:00
"""
Mapping for information about doctor's (therapists) with for theraPy relevant information
"""
# Used for indexes later
2024-08-28 10:08:46 +02:00
nr: Optional[int] = 0
2024-08-26 21:05:34 +02:00
name: str
tel: str
2024-09-07 21:12:55 +02:00
# Fax is optionally available as contact information
2024-08-26 21:05:34 +02:00
fax: Optional[str] = None
anrede: str
2024-09-07 21:12:55 +02:00
# Email is also optionally available
2024-08-26 21:05:34 +02:00
email: Optional[str] = None
distance: int
strasse: str
hausnummer: str
plz: str
ort: str
telefonzeiten: List[PhoneTime]