API¶
-
class
api.nh_clinical_api(pool, cr)[source]¶ Core API for nh_clinical
-
admit(*args, **kwargs)[source]¶ Admits a patient into a specified location.
Parameters: Returns: TrueReturn type:
-
admit_update(*args, **kwargs)[source]¶ Updates the spell information of a patient.
Parameters: Returns: TrueReturn type:
-
cancel_admit(*args, **kwargs)[source]¶ Cancels the open admission of the patient.
Parameters: hospital_number (str) – hospital number of the patient Returns: TrueReturn type: bool
-
cancel_discharge(*args, **kwargs)[source]¶ Cancels the last discharge of a patient.
Parameters: hospital_number (str) – hospital number of the patient Returns: TrueReturn type: bool
-
cancel_transfer(*args, **kwargs)[source]¶ Cancels the last transfer of a patient.
Parameters: hospital_number (str) – hospital number of the patient Returns: TrueReturn type: bool
-
check_activity_access(*args, **kwargs)[source]¶ Verifies if an
activityis assigned to auser.Parameters: Returns: Trueif user is assigned. OtherwiseFalseReturn type:
-
merge(*args, **kwargs)[source]¶ Merges a specified patient into a patient.
Parameters: Returns: TrueReturn type:
-
register(*args, **kwargs)[source]¶ Registers a new patient in the system.
Parameters: - hospital_number (str) – hospital number of the patient
- data – may contain the following keys:
patient_identifier,family_name,given_name,middle_names,dob,genderandsex
Returns: TrueReturn type:
-