care.emr.resources.patient.otp_based_flow module¶
- class PatientOTPBaseSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None)¶
Bases:
EMRResource- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PatientOTPReadSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, name: str, gender: str, phone_number: str, emergency_phone_number: str, address: str, pincode: int, date_of_birth: date, year_of_birth: int, geo_organization: dict | None = None, blood_group: BloodGroupChoices | None = None)¶
Bases:
PatientOTPBaseSpec- blood_group: BloodGroupChoices | None¶
- classmethod perform_extra_serialization(mapping, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class PatientOTPWriteSpec(*, meta: dict = {}, id: Annotated[UUID, UuidVersion(uuid_version=4)] = None, name: str, gender: GenderChoices, date_of_birth: date | None = None, age: int | None = None, address: str, pincode: int, geo_organization: Annotated[UUID, UuidVersion(uuid_version=4)], blood_group: BloodGroupChoices | None = None)¶
Bases:
PatientOTPBaseSpec- gender: GenderChoices¶
- blood_group: BloodGroupChoices | None¶
- validate_age()¶
- classmethod validate_geo_organization(geo_organization)¶
- perform_extra_deserialization(is_update, obj)¶
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].