care.security.authorization.token module¶
- class TokenCategoryAccess¶
Bases:
AuthorizationHandler
- can_list_facility_token_category(user, facility)¶
Check if the user has permission to view token category in the facility
- can_write_facility_token_category(user, facility)¶
Check if the user has permission to view token category in the facility
- class TokenAccess¶
Bases:
AuthorizationHandler
- can_write_token(resource_obj, user)¶
- can_update_token(resource_obj, user)¶
- can_list_token_on_facility(user, facility)¶
- can_list_token(resource_obj, user)¶
- can_write_practitioner_token(obj, user, facility)¶
- can_write_healthcare_service_token(obj, user)¶
Anyone in the managing organization of the healthcare service can write the schedule
- can_write_location_token(obj, user)¶
- can_read_practitioner_token(obj, user, facility)¶
- can_read_healthcare_service_token(obj, user)¶
Anyone in the managing organization of the healthcare service can write the schedule
- can_read_location_token(obj, user)¶