Transfer¶
-
class
operations.nh_clinical_patient_transfer(pool, cr)[source]¶ Represents the action of a patient being moved to a ward usage
locationwithin the Hospital.-
cancel(*args, **kwargs)[source]¶ Calls
canceland then if the origin ward usage location is different from where the current patient location is located, a newmovementis 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 triggerif the movement takes place as this is technically equivalent to an admission into the new Ward.Returns: TrueReturn type: bool
-
complete(*args, **kwargs)[source]¶ Calls
completeand then if the destination ward usage location is different from where the current patient location is located, a newmovementis created and completed.This operation will kick off a
policy triggerif the movement takes place as this is technically equivalent to an admission into the new Ward.Returns: TrueReturn 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: transferidReturn type: int
-