Rapid Tranquilisation Patient Monitoring Exception

class nh_eobs_mental_health.models.nh_clinical_pme_rapid_tranq.NhClinicalRapidTranq(pool, cr)[source]
cancel(activity_id)[source]
static changed(set_value, existing_value)[source]

Indicates whether or not the 2 passed booleans are different from one another.

Parameters:
  • set_value
  • existing_value
Returns:

Return type:

bool

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

Check what the effect of setting the rapid tranq status would be and return a dictionary with user-friendly messages which the caller can use for things such as raising exceptions and creating popups.

Parameters:set_value (bool) –
Returns:
Return type:dict
complete(activity_id)[source]
get_start_message()[source]
get_stop_message()[source]
set_rapid_tranq(value)[source]

Toggle the obs_stop flag on the spell object.

Parameters:value (bool) –
Returns:True
start(activity_id)[source]
start_message = 'Start Rapid Tranq.'
stop_message = 'Stop Rapid Tranq.'
toggle_rapid_tranq(*args, **kwargs)[source]

Toggles rapid tranquilisation status on or off for a given spell.

Parameters:spell_activity
Returns:The new value after the toggle.
Return type:bool