Doctor¶
-
class
user.nh_clinical_doctor(pool, cr)[source]¶ Represents a doctor.
-
create(*args, **kwargs)[source]¶ Extends Odoo’s
create()to updatedoctor_idfield inres_users.Returns: Trueif createdReturn type: bool
-
evaluate_doctors_dict(*args, **kwargs)[source]¶ Evaluates doctors, checking for a doctor before creating a new doctor if it doesn’t exist.
Parameters: data (dict) – must contain doctorskey. Its value will be a list of dictionaries which must contain the keyscode,gender,gmcandtype. It many containtitle.Returns: Trueif either it finds a doctor or creates a new doctor. OtherwiseFalseReturn type: bool
-