Discharge

class operations.nh_clinical_patient_discharge(pool, cr)[source]

Represents the action of a patient leaving the Hospital after completing his or her visit for any reason.

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

Calls cancel and then opens (changes state to started) the last completed patient spell.

It will also create and complete a movement to the bed location the patient was previously located if it is still available. If not, the patient will be moved to the corresponding ward location parent of that bed.

This operation will kick off a policy trigger as this is technically equivalent to an admission back to the Hospital.

Returns:True
Return type:bool
complete(*args, **kwargs)[source]

Calls complete and then creates and completes a new movement to the discharge location, which is a virtual location representing the patient is no longer in the Hospital.

It will also complete the current spell.

Returns:True
Return type:bool
get_last(*args, **kwargs)[source]

Checks if there is a completed discharge for the provided patient and returns the last one.

Parameters:exception (str) – ‘True’ will raise exception when found. ‘False’ when not.
Returns:discharge id
Return type:int
submit(*args, **kwargs)[source]

Checks the submitted data is correct and then calls submit.

Returns:True
Return type:bool