EWS Observation Extensions¶
-
class
nh_eobs_mental_health.models.nh_clinical_patient_observation_ews.NHClinicalPatientObservationEWS(pool, cr)[source]¶ Override of nh.clinical.patient.observation.ews for generic mental health behaviour
-
complete(*args, **kwargs)[source]¶ Mental health override that ensures Clinical Review tasks are set up for refusing patients at the appropriate time using CRON jobs. :returns:
True:rtype: bool
-
create_clinical_review_task(*args, **kwargs)[source]¶ Create a ‘nh.clinical.notification.clinical_review’ record and associated activity.
Parameters: activity ('nh.activity' record) –
-
is_refusal_in_effect(*args, **kwargs)[source]¶ Use the last_refused_ews SQL view to see if activity_id is part of a patient refusal
Parameters: - cr – Odoo cursor
- uid – User doing operation
- activity_id – <nh.activity> Activity ID
- mode – Mode to operate on, parent goes up chain, child goes down
- context – Odoo Context
Returns: If the patient is currently in refusal
-
partial_reason¶ Parameters: - selection – specifies the possible values for this field. It is given as either a list of pairs (value, string), or a model method, or a method name.
- selection_add – provides an extension of the selection in the case of an overridden field. It is a list of pairs (value, string).
The attribute selection is mandatory except in the case of related fields or field extensions.
-