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 complete and then creates and completes a new admission to the provided location.

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

Checks the submitted data and then calls submit.

If a ward location with 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 service linked to a valid location instance of pos type, as new Wards will need to be assigned to a point of service.

Returns:True
Return type:bool