care.emr.api.otp_viewsets.slot module

class SlotsForDayRequestSpec(*, resource_type: SchedulableResourceTypeOptions, resource_id: Annotated[UUID, UuidVersion(uuid_version=4)], day: date, facility: Annotated[UUID, UuidVersion(uuid_version=4)])

Bases: SlotsForDayRequestSpec

facility: Annotated[UUID, UuidVersion(uuid_version=4)]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class CancelAppointmentSpec(*, patient: Annotated[UUID, UuidVersion(uuid_version=4)], appointment: Annotated[UUID, UuidVersion(uuid_version=4)])

Bases: BaseModel

patient: Annotated[UUID, UuidVersion(uuid_version=4)]
appointment: Annotated[UUID, UuidVersion(uuid_version=4)]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class OTPSlotViewSet(**kwargs)

Bases: EMRRetrieveMixin, EMRBaseViewSet

authentication_classes = [<class 'config.patient_otp_authentication.JWTTokenPatientAuthentication'>]
permission_classes = [<class 'config.patient_otp_authentication.OTPAuthenticatedPermission'>]
database_model

alias of TokenSlot

pydantic_read_model

alias of TokenSlotBaseSpec

get_slots_for_day(request, *args, **kwargs)
create_appointment(request, *args, **kwargs)
cancel_appointment(request, *args, **kwargs)
get_appointments(request, *args, **kwargs)