# -*- coding: utf-8 -*-
from openerp.osv import orm, fields
[docs]class NHClinicalSpell(orm.Model):
"""
Override to add a boolean flag that indicates whether there are active
patient monitoring exceptions on the spell.
"""
_name = 'nh.clinical.spell'
_inherit = 'nh.clinical.spell'
_columns = {
'obs_stop': fields.boolean('Stop Observations for patient?'),
'rapid_tranq': fields.boolean('Patient on Rapid Tranquilisation?'),
'refusing_obs': fields.boolean('Patient Refusing Observations?')
}
_defaults = {
'obs_stop': False,
'rapid_tranq': False,
'refusing_obs': False
}