Patient Monitoring Exception

class nh_eobs.models.nh_clinical_patient_monitoring_exception.PatientMonitoringException(pool, cr)[source]

A ‘patient monitoring exception’ is a waiver on the regular monitoring of a patient. While a patient monitoring exception is in effect the system will not enforce observations on a patient in the usual way as there is some reason why the patient cannot be or should not be monitored.

Patient monitoring exceptions are implemented as activity data related to an activity. When the activity is ‘started’ then the patient monitoring exception is in effect. When the activity is ‘completed’ then the patient monitoring exception ceases and normal monitoring resumes.

cancel(activity_id)[source]
complete(activity_id)[source]
get_activities_by_spell_activity(spell_activity)[source]

Get all patient monitoring exception activities from the passed spell activity.

Parameters:spell_activity
Returns:
get_activity_by_spell_activity(spell_activity)[source]

Get a patient monitoring exception activity from the passed spell activity.

Parameters:spell_activity
Returns:
get_start_message()[source]
get_stop_message()[source]
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 True to 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.

spell

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 True to 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.

start(activity_id)[source]
started_after_date(spell_activity, date)[source]

Check if any patient monitoring exceptions have been started since the passed date.

Parameters:
  • spell_activity
  • date
Returns: