Transfer

class nh_clinical.models.nh_clinical_patient_transfer.NhClinicalPatientTransfer(pool, cr)[source]

Represents the action of a patient being moved to a ward usage location within the Hospital.

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

Calls cancel and then if the origin ward usage location is different from where the current patient location is located, a new movement is created and completed.

If the origin location was of bed usage then the movement will assign that location back to the patient if it is still available.

This operation will kick off a policy trigger if the movement takes place as this is technically equivalent to an admission into the new Ward.

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

Calls complete and then if the destination ward usage location is different from where the current patient location is located, a new movement is created and completed.

This operation will kick off a policy trigger if the movement takes place as this is technically equivalent to an admission into the new Ward.

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

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

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

Check if a patient transfer occurred some time after the given date.

Parameters:
  • patient_id (int) –
  • date (str) –
Returns:

Return type:

bool

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

Checks the submitted data is correct and then calls submit.

Returns:True
Return type:bool