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_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'day': FieldInfo(annotation=date, required=True), 'facility': FieldInfo(annotation=UUID, required=True, metadata=[UuidVersion(uuid_version=4)]), 'resource_id': FieldInfo(annotation=UUID, required=True, metadata=[UuidVersion(uuid_version=4)]), 'resource_type': FieldInfo(annotation=SchedulableResourceTypeOptions, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- class CancelAppointmentSpec(*, patient: Annotated[UUID, UuidVersion(uuid_version=4)], appointment: Annotated[UUID, UuidVersion(uuid_version=4)])¶
Bases:
BaseModel
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'appointment': FieldInfo(annotation=UUID, required=True, metadata=[UuidVersion(uuid_version=4)]), 'patient': FieldInfo(annotation=UUID, required=True, metadata=[UuidVersion(uuid_version=4)])}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.
- 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)¶