Admission

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

Represents the action of a patient visiting the Hospital and being admitted to one of the Wards.

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

Calls cancel and then cancels every activity related to the admission, including the current patient spell.

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

Calls complete and then creates and starts a new spell for the selected patient.

It will also create and complete a movement to the admitted location.

This operation kicks off a policy trigger as actions may need to take place after the patient is admitted into the Hospital.

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

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

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

Checks the submitted data is correct and then calls submit.

Returns:True
Return type:bool