Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/dataset-onscis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Data from the COVID-19 Infection Survey data provided by the Office for National Statistics.

---8<-- 'includes/onscis-warning-header.md'

!!! warning
This section is a work in progress.


---8<-- 'includes/glossary.md'
1 change: 1 addition & 0 deletions docs/news.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

This page lists significant improvements to the platform since June 2021, with the most recent at the top. We suggest you check it regularly.

* 2022-04-05: Added support for querying the ONS CIS dataset with `patients.with_an_ons_cis_record` [docs](https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.with_an_ons_cis_record), [#748](https://github.com/opensafely-core/cohort-extractor/pull/773)
* 2022-03-08: Added support for returning _total_bed_days_in_period_ and _total_critical_care_days_in_period_ from `admitted_to_hospital` [docs](https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.admitted_to_hospital), [#748](https://github.com/opensafely-core/cohort-extractor/pull/748)
* 2022-01-28: Added ability to query a patient's _place_of_death_ (TPP backend only) [docs](https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.with_these_codes_on_death_certificate), [#728](https://github.com/opensafely-core/cohort-extractor/pull/728)
* 2022-01-27: Extended `mean_recorded_value` to support querying for mean recorded value across a full date range, as well as the most recent day of measurement. [docs](https://docs.opensafely.org/study-def-variables/#cohortextractor.patients.mean_recorded_value).
Expand Down
12 changes: 12 additions & 0 deletions docs/study-def-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ For more information, see the [CPNS data section](dataset-cpns.md).
::: cohortextractor.patients.with_death_recorded_in_cpns
&nbsp;


## ONS deaths
These variables are derived from the Death Registry data provided by the Office for National Statistics.
For more information, see the [ONS deaths section](dataset-onsdeaths.md).
Expand All @@ -130,6 +131,17 @@ For more information, see the [ONS deaths section](dataset-onsdeaths.md).
&nbsp;


## ONS CIS
---8<-- 'includes/onscis-warning-header.md'

These variables are derived from the COVID-19 Infection Survey data provided by the Office for National Statistics.
For more information, see the [ONS CIS section](dataset-onscis.md).
&nbsp;

::: cohortextractor.patients.with_an_ons_cis_record
&nbsp;


## High Cost Drugs
(Documentation on the source of this data will be forthcoming later.)

Expand Down
3 changes: 3 additions & 0 deletions includes/onscis-warning-header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
!!! warning
ONS CIS data can only be used if the ONS governance board has approved the project.
Please contact your co-pilot, or <team@opensafely.org> if you have any questions.
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ nav:
- SystmOne primary care: dataset-systmone.md
- EMIS primary care: dataset-emis.md
- Externally linked data:
- Covid-19 infection survey: dataset-onscis.md
- Covid-19 test results: dataset-sgsscovid.md
- Covid-19 therapeutics: dataset-therapeutics.md
- Emergency attendances: dataset-ecds.md
- Hospital admissions: dataset-apc.md
- Intensive care admissions (covid-19 only): dataset-icnarc.md
- In-hospital deaths (covid-19 only): dataset-cpns.md
- Intensive care admissions (covid-19 only): dataset-icnarc.md
- Registered deaths: dataset-onsdeaths.md
- Covid-19 therapeutics: dataset-therapeutics.md
- Access policies: access-policies.md
- Technical architecture: technical-architecture.md
- Getting Started guide: getting-started.md
Expand Down
6 changes: 3 additions & 3 deletions requirements.prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ numpy==1.21.4 \
# pyarrow
# scipy
# seaborn
opensafely-cohort-extractor==1.64.0 \
--hash=sha256:267f8ba7a425941e2078bdcab1dd89f86f232f0fc0a2b41fa199e4291b5c4b01 \
--hash=sha256:586f400edab9cd916e60f445f304246a705518461912fb77fa47ab9b39f835af
opensafely-cohort-extractor==1.65.0 \
--hash=sha256:3c59466b29c9cf4366e755037be10db46aa055acca91a0c3f2e10ecfbabb1ab5 \
--hash=sha256:ba9a6d43a9662161085052db939d5603f97e56fb170cb22e6bd87aa07552a726
# via -r requirements.prod.in
packaging==21.3 \
--hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \
Expand Down