UMCU-Digital-Health / No_Show

No-show prediction model to reduce the amount of no-shows at the clinics
MIT License
7 stars 2 forks source link

Add validation of input data using pydantic #115

Open rubenpeters91 opened 1 month ago

rubenpeters91 commented 1 month ago

Example baseModel:

class Appointment(BaseModel):
    APP_ID: str
    pseudo_id: str
    hoofdagenda: str
    specialty_code: str | None
    soort_consult: str | None
    afspraak_code: str
    start: float
    end: float
    gearriveerd: float
    created: float
    minutesDuration: int
    status: str
    status_code_original: str
    cancelationReason_code: str
    cancelationReason_display: str
    BIRTH_YEAR: int
    address_postalCodeNumbersNL: int
    name: str | None
    description: str | None
    name_text: str | None
    name_given1_callMe: str | None
    telecom1_value: str | None
    telecom2_value: str | None
    telecom3_value: str | None
    birthDate: float