Skip to content

Commit 5faa3ad

Browse files
committed
Run just generate-docs
1 parent e0c47ac commit 5faa3ad

File tree

3 files changed

+66
-3
lines changed

3 files changed

+66
-3
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
<h4 class="attr-heading" id="claim_permissions" data-toc-label="claim_permissions" markdown>
3+
<tt><strong>claim_permissions</strong>(<em>*permissions</em>)</tt>
4+
</h4>
5+
<div markdown="block" class="indent">
6+
This function allows you to access any restricted table or feature when working with
7+
dummy data. It will NOT allow you access with real data: for that you will need the
8+
appropriate permissions on the OpenSAFELY platform.
9+
10+
Permission names are strings and should be written with double quotes e.g.
11+
12+
from ehrql import claim_permissions
13+
14+
claim_permissions("some_permission", "another_permission")
15+
16+
This can go anywhere in your dataset or measure definition file.
17+
18+
You can make multiple `claim_permissions()` calls and the permissions will be
19+
combined together.
20+
</div>

docs/includes/generated_docs/schemas/raw.tpp.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,12 @@ Date on which the current dataset was imported.
475475
<p class="dimension-indicator"><code>many rows per patient</code></p>
476476
## isaric
477477

478+
!!! warning "Access to this table requires the `isaric` permission"
479+
480+
Access to ISARIC data is usually agreed at the project application stage. If
481+
you're unsure as to whether you do or should have access please speak to your
482+
co-pilot or to OpenSAFELY support.
483+
478484
ISARIC is a dataset of COVID-19-related hospital admissions,
479485
with coverage across the majority of hospitals across the UK,
480486
including much richer clinical information
@@ -1465,6 +1471,12 @@ Medical condition mentioned on the death certificate.
14651471

14661472
National Waiting List Clock Stops
14671473

1474+
!!! warning "Access to this table requires the `waiting_list` permission"
1475+
1476+
Access to Waiting List data is usually agreed at the project application stage.
1477+
If you're unsure as to whether you do or should have access please speak to your
1478+
co-pilot or to OpenSAFELY support.
1479+
14681480
The columns in this table have the same data types as the columns in [the associated
14691481
database table][wl_clockstops_raw_1]. The three "pseudo" columns are small
14701482
exceptions, as they are converted from binary columns to string columns.
@@ -1614,6 +1626,12 @@ exceptions, as they are converted from binary columns to string columns.
16141626

16151627
National Waiting List Open Pathways
16161628

1629+
!!! warning "Access to this table requires the `waiting_list` permission"
1630+
1631+
Access to Waiting List data is usually agreed at the project application stage.
1632+
If you're unsure as to whether you do or should have access please speak to your
1633+
co-pilot or to OpenSAFELY support.
1634+
16171635
The columns in this table have the same data types as the columns in [the associated
16181636
database table][wl_openpathways_raw_1]. The three "pseudo" columns are small
16191637
exceptions, as they are converted from binary columns to string columns.

docs/includes/generated_docs/schemas/tpp.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,8 @@ The date of discharge from a hospital provider spell.
701701

702702
Appointments in primary care.
703703

704-
!!! warning
704+
!!! warning "Access to this table requires the `appointments` permission"
705+
705706
In TPP this data comes from the "Appointment" table. This table has not yet been
706707
well characterised, so there are some issues around how to interpret findings
707708
from it. The data contains records created when an appointment is made with a GP
@@ -710,8 +711,8 @@ Appointments in primary care.
710711
There are also duplicate events in the table that we need to better understand.
711712

712713
As a consequence, if you try to use the appointment table, you will see warnings
713-
when running your code locally, and failures when the GitHub action tests your
714-
code. If you need access to the appointments data, please speak to your
714+
when running your code locally, and failures if you try to run against real
715+
data. If you need access to the appointments data, please speak to your
715716
OpenSAFELY co-pilot. We will be considering projects on a case by case basis
716717
until it can enter the normal stable pool of data.
717718

@@ -2691,6 +2692,12 @@ The date the referral request was received by the health care provider.
26912692

26922693
This table contains responses to questions from the OpenPROMPT project.
26932694

2695+
!!! warning "Access to this table requires the `open_prompt` permission"
2696+
2697+
Access to OpenPROMPT data is usually agreed at the project application stage. If
2698+
you're unsure as to whether you do or should have access please speak to your
2699+
co-pilot or to OpenSAFELY support.
2700+
26942701
You can find out more about this table in the associated short data report. To view
26952702
it, you will need a login for [Level 4][open_prompt_1]. The
26962703
[workspace][open_prompt_2] shows when the code that comprises the report was run;
@@ -3348,6 +3355,12 @@ used to do so.
33483355
<p class="dimension-indicator"><code>many rows per patient</code></p>
33493356
## ukrr
33503357

3358+
!!! warning "Access to this table requires the `ukrr` permission"
3359+
3360+
Access to UK Renal Registry data is usually agreed at the project application
3361+
stage. If you're unsure as to whether you do or should have access please speak
3362+
to your co-pilot or to OpenSAFELY support.
3363+
33513364
The UK Renal Registry (UKRR) contains data on patients under secondary renal care
33523365
(advanced chronic kidney disease stages 4 and 5, dialysis, and kidney transplantation)
33533366
<div markdown="block" class="definition-list-wrapper">
@@ -3533,6 +3546,12 @@ Vaccine's product name.
35333546

35343547
Waiting List Minimum Data Set Clock Stops
35353548

3549+
!!! warning "Access to this table requires the `waiting_list` permission"
3550+
3551+
Access to Waiting List data is usually agreed at the project application stage.
3552+
If you're unsure as to whether you do or should have access please speak to your
3553+
co-pilot or to OpenSAFELY support.
3554+
35363555
These data are from the patient-level [Waiting List Minimum Data Set (WLMDS)](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/wlmds/),
35373556
which are reported separately from the aggregate [Referral to Treatment (RTT) data](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/).
35383557

@@ -3718,6 +3737,12 @@ The Sunday of the week that the pathway relates to
37183737

37193738
Waiting List Minimum Data Set Open Pathways
37203739

3740+
!!! warning "Access to this table requires the `waiting_list` permission"
3741+
3742+
Access to Waiting List data is usually agreed at the project application stage.
3743+
If you're unsure as to whether you do or should have access please speak to your
3744+
co-pilot or to OpenSAFELY support.
3745+
37213746
These data are from the patient-level [Waiting List Minimum Data Set (WLMDS)](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/wlmds/),
37223747
which are reported separately from the aggregate [Referral to Treatment (RTT) data](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/).
37233748

0 commit comments

Comments
 (0)