care.security.authorization.encounter module

class EncounterAccess

Bases: AuthorizationHandler

find_roles_on_encounter(user, encounter)
can_create_encounter_obj(user, facility)

Check if the user has permission to create encounter under this facility

can_view_encounter_obj(user, encounter)

Check if the user has permission to read encounter under this facility

can_view_as_pharmacist(user, facility)
can_submit_encounter_questionnaire_obj(user, encounter)

Check if the user has permission to read encounter under this facility

check_permission_in_encounter(user, encounter, permission)
can_update_encounter_obj(user, encounter)

Check if the user has permission to create encounter under this facility

can_view_service_request_for_encounter(user, encounter)

Check if the user has permission to read service request under this encounter

can_view_medication_dispense_for_encounter(user, encounter)

Check if the user has permission to read service request under this encounter

can_read_diagnostic_report_in_encounter(user, encounter)

Check if the user has permission to read diagnostic report under this encounter

can_write_service_request_in_encounter(user, encounter)

Check if the user has permission to create service request under this encounter

get_filtered_encounters(qs, user, facility)