Doctor

class user.nh_clinical_doctor(pool, cr)[source]

Represents a doctor.

create(*args, **kwargs)[source]

Extends Odoo’s create() to update doctor_id field in res_users.

Returns:True if created
Return 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 doctors key. Its value will be a list of dictionaries which must contain the keys code, gender, gmc and type. It many contain title.
Returns:True if either it finds a doctor or creates a new doctor. Otherwise False
Return type:bool
write(*args, **kwargs)[source]

Extends Odoo’s write() to update doctor_id field in res_users.

Returns:True if created
Return type:bool