models.py¶
This module contains the healthprofessional model definition.
The healthprofessional is coupled to a apps.account.models.User
instance via the apps.healthperson.models.HealthPerson baseclass.
Inheritance-diagram:
Class definitions:
-
class
apps.healthperson.healthprofessional.models.HealthProfessional(*args, **kwargs)[source]¶ Bases:
apps.healthperson.models.HealthPerson,core.models.AuditBaseModelStores specific information healthprofessional including photo, function, specialism and notifications and out of office settings.
Parameters: - id (AutoField) –
- polymorphic_ctype_id (ForeignKey to
ContentType) – - added_on (DateField) –
- added_by_id (ForeignKey to
HealthPerson) – - healthperson_ptr_id (OneToOneField to
HealthPerson) – - photo_location (
ImageField) – - function (CharField) – choices=[specialist, assistant, specializednurse, nurse, dietician]
- specialism (CharField) – choices=[gastro_liver_disease, rheumatology, surgery, internal_medicine, orhopedie]
- telephone (CharField) –
- urgent_control_notification (CharField) – choices=[sms_and_email, sms_only, email_only, to_secretary]
- urgent_control_secretary_id (ForeignKey to
Secretary) – - out_of_office_start (
DateField) – - out_of_office_end (
DateField) – - out_of_office_replacement_id (ForeignKey to
HealthProfessional) –