Skip to content

Commit

Permalink
Merge pull request #247 from opensafely-core/restrict_appointments_table
Browse files Browse the repository at this point in the history
Restrict appointments table
  • Loading branch information
rebkwok authored Mar 28, 2024
2 parents 947862f + 312b704 commit a25d148
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions opensafely/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class RestrictedDataset:
cohort_extractor_function_names=[],
ehrql_table_names=["wl_openpathways", "wl_openpathways_raw"],
),
RestrictedDataset(
name="appointments",
cohort_extractor_function_names=["with_gp_consultations"],
ehrql_table_names=["appointments"],
),
]

PERMISSIONS_URL = "https://raw.githubusercontent.com/opensafely-core/opensafely-cli/main/repository_permissions.yaml"
Expand Down
4 changes: 4 additions & 0 deletions repository_permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ opensafely/openprompt-cohort-profile:
allow: ['open_prompt']
opensafely/waiting-list:
allow: ['wl_clockstops', 'wl_clockstops_raw', 'wl_openpathways', 'wl_openpathways_raw']
opensafely/appointments-short-data-report:
allow: ['appointments']
opensafely/with-gp-consultations-curation:
allow: ['appointments']
4 changes: 3 additions & 1 deletion tests/fixtures/permissions/repository_permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ opensafely/dummy_wl_clockstops:
allow: ['wl_clockstops']
opensafely/dummy_wl_openpathways:
allow: ['wl_openpathways']
opensafely/dummy_appointments:
allow: ['appointments']
opensafely/dummy_all:
allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops', 'wl_openpathways']
allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops', 'wl_openpathways', 'appointments']

0 comments on commit a25d148

Please sign in to comment.