Ë
    ©ô;i  ã                   ó4   — d dl mZmZ d dlmZ  G d„ d«      Zy)é    )ÚDictÚAny)ÚAppointmentc                   ó^   — e Zd ZdZedeeef   defd„«       Z	ed„ «       Z
ededefd„«       Zy)	ÚAppointmentRepositoryz9
    Repository layer for Appointment DB operations.
    ÚdataÚreturnc                 ó@   — t        j                  j                  di | ¤ŽS )z{
        Create and return an Appointment instance.
        Expects `data` keys to match Appointment model fields.
        © )r   ÚobjectsÚcreate)r   s    ú^/var/www/html/dp2/backend_v2.1/server/apps/appointments/repositories/appointment_repository.pyÚcreate_appointmentz(AppointmentRepository.create_appointment
   s   € ô ×"Ñ"×)Ñ)Ñ1¨DÑ1Ð1ó    c                  ó>   — t         j                  j                  «       S )N)r   r   Úallr   r   r   Úget_querysetz"AppointmentRepository.get_queryset   s   € ä×"Ñ"×&Ñ&Ó(Ð(r   Úappointment_idc                 óf   — t         j                  «       j                  | ¬«      j                  «       S )zW
        Retrieve an Appointment by its ID.
        Returns None if not found.
        )Úid)r   r   ÚfilterÚfirst)r   s    r   Ú	get_by_idzAppointmentRepository.get_by_id   s*   € ô %×1Ñ1Ó3×:Ñ:¸nÐ:ÓM×SÑSÓUÐUr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústaticmethodr   Ústrr   r   r   r   Úintr   r   r   r   r   r      sk   „ ñð ð2  c¨3 h¡ð 2°Kò 2ó ð2ð ñ)ó ð)ð ðV #ð V¨+ò Vó ñVr   r   N)Útypingr   r   Úapps.appointments.modelsr   r   r   r   r   Ú<module>r#      s   ðß Ý 0÷Vò Vr   