Observation Stop Patient Monitoring Exception¶
-
class
nh_eobs_mental_health.models.nh_clinical_pme_obs_stop.NhClinicalObsStop(pool, cr)[source]¶ -
-
cancel_open_ews(*args, **kwargs)[source]¶ Cancel all open EWS observations.
Parameters: - spell_activity_id – ID of the spell activity
- cancel_reason_id –
Returns: True is successful, False if not
-
create_new_ews(*args, **kwargs)[source]¶ Create a new EWS task an hour in the future. Used when patient is taken off obs_stop.
Returns: ID of created EWS
-
classmethod
force_v7_api(obj)[source]¶ Trick Odoo into thinking this is a 7.0 ORM API style method before the complete method is called on the activity. I believe there may be a problem in the decorator that is used on all activity data methods which specifically looks for all args. :param obj: :return:
-
reason¶ The value of such a field is a recordset of size 0 (no record) or 1 (a single record).
Parameters: - comodel_name – name of the target model (string)
- domain – an optional domain to set on candidate values on the client side (domain or string)
- context – an optional context to use on the client side when handling that field (dictionary)
- ondelete – what to do when the referred record is deleted;
possible values are:
'set null','restrict','cascade' - auto_join – whether JOINs are generated upon search through that
field (boolean, by default
False) - delegate – set it to
Trueto make fields of the target model accessible from the current model (corresponds to_inherits)
The attribute comodel_name is mandatory except in the case of related fields or field extensions.
-
set_obs_stop_flag(*args, **kwargs)[source]¶ Toggle the obs_stop flag on the spell object.
Parameters: value (bool) – Returns: True
-
set_refusing_obs_flag(*args, **kwargs)[source]¶ Set the value of the ‘refusing_obs’ flag on the spell object
Parameters: value – Value to change flag too Returns: True
-
start_message= 'Stop Observations'¶
-
stop_message= 'Restart Observations'¶
-