Skip to content

Commit a476462

Browse files
committed
Run just generate-docs
1 parent 148118c commit a476462

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

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

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

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

3352+
!!! warning "Access to this table requires the `ukrr` permission"
3353+
3354+
Access to UK Renal Registry data is usually agreed at the project application
3355+
stage. If you're unsure as to whether you do or should have access please speak
3356+
to your co-pilot or to OpenSAFELY support.
3357+
33453358
The UK Renal Registry (UKRR) contains data on patients under secondary renal care
33463359
(advanced chronic kidney disease stages 4 and 5, dialysis, and kidney transplantation)
33473360
<div markdown="block" class="definition-list-wrapper">
@@ -3527,6 +3540,12 @@ Vaccine's product name.
35273540

35283541
Waiting List Minimum Data Set Clock Stops
35293542

3543+
!!! warning "Access to this table requires the `waiting_list` permission"
3544+
3545+
Access to Waiting List data is usually agreed at the project application stage.
3546+
If you're unsure as to whether you do or should have access please speak to your
3547+
co-pilot or to OpenSAFELY support.
3548+
35303549
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/),
35313550
which are reported separately from the aggregate [Referral to Treatment (RTT) data](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/).
35323551

@@ -3712,6 +3731,12 @@ The Sunday of the week that the pathway relates to
37123731

37133732
Waiting List Minimum Data Set Open Pathways
37143733

3734+
!!! warning "Access to this table requires the `waiting_list` permission"
3735+
3736+
Access to Waiting List data is usually agreed at the project application stage.
3737+
If you're unsure as to whether you do or should have access please speak to your
3738+
co-pilot or to OpenSAFELY support.
3739+
37153740
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/),
37163741
which are reported separately from the aggregate [Referral to Treatment (RTT) data](https://www.england.nhs.uk/statistics/statistical-work-areas/rtt-waiting-times/).
37173742

0 commit comments

Comments
 (0)