Admit¶
-
class
adt.nh_clinical_adt_patient_admit(pool, cr)[source]¶ Represents the patient admission operation in the patient management system. (A01 Message)
Consulting and referring doctors are expected in the submitted values in the following format:
[... { 'type': 'c' or 'r', 'code': 'code_string, 'title': 'Mr', 'given_name': 'John', 'family_name': 'Smith' }... ]
If doctor doesn’t exist, then a partner is created (but no user is created).
-
complete(*args, **kwargs)[source]¶ Calls
completeand then creates and completes a newadmissionto the provided location.Returns: TrueReturn type: bool
-
submit(*args, **kwargs)[source]¶ Checks the submitted data and then calls
submit.If a ward
locationwith the provided code does not exist, it will create a new one.Due to this behaviour the user submitting the data must be related to a
point of servicelinked to a validlocationinstance of pos type, as new Wards will need to be assigned to a point of service.Returns: TrueReturn type: bool
-