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- 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- 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'>]¶
- 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)¶