Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old examples.tutorial schema #2107

Merged
merged 5 commits into from
Sep 13, 2024
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
2 changes: 1 addition & 1 deletion docs/explanation/selecting-populations-for-study.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ for further details of this transfer process.
a patient did not change practice during a time period of interest.

For TPP,
there is a [method to select patients with a continuous registration](../reference/schemas/tpp.md#practice_registrations.has_a_continuous_practice_registration_spanning).
there is a [method to select patients with a continuous registration](../reference/schemas/tpp.md#practice_registrations.spanning).
2 changes: 1 addition & 1 deletion docs/includes/generated_docs/language__dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dataset.define_population(patients.date_of_birth < "1990-01-01")
```

For more detail see the how-to guide on [defining
populations](../../how-to/define-population/).
populations](../how-to/define-population.md).
</div>

<div class="attr-heading" id="Dataset.add_column">
Expand Down
9 changes: 0 additions & 9 deletions docs/includes/generated_docs/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ This schema defines the data (both primary care and externally linked) available
OpenSAFELY-EMIS backend. For more information about this backend, see
"[EMIS Primary Care](https://docs.opensafely.org/data-sources/emis/)".

## [examples.tutorial](schemas/examples.tutorial.md)
<small class="subtitle">
<a href="./examples.tutorial/"> view details → </a>
</small>

_This schema is for development or testing purposes and is not available on any backend._

This example schema is for use in the ehrQL tutorial.

## [raw.core](schemas/raw.core.md)
<small class="subtitle">
<a href="./raw.core/"> view details → </a>
Expand Down
277 changes: 0 additions & 277 deletions docs/includes/generated_docs/schemas/examples.tutorial.md

This file was deleted.

8 changes: 4 additions & 4 deletions docs/includes/generated_docs/schemas/tpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3035,7 +3035,7 @@ The priority type.
Note that a small number of rows contain values which are not in the list
below. These are converted to NULL in this representation of the data. If
you need to access the original values, please see the corresponding [raw
table](../raw.tpp/#wl_clockstops).
table](raw.tpp.md#wl_clockstops).

* Possible values: `routine`, `urgent`, `two week wait`
</dd>
Expand Down Expand Up @@ -3137,7 +3137,7 @@ The waiting list type on completion of the pathway.
Note that a small number of rows contain values which are not in the list
below. These are converted to NULL in this representation of the data. If
you need to access the original values, please see the corresponding [raw
table](../raw.tpp/#wl_clockstops).
table](raw.tpp.md#wl_clockstops).

* Possible values: `ORTT`, `IRTT`, `PTLO`, `PTLI`, `RTTO`, `RTTI`
</dd>
Expand Down Expand Up @@ -3222,7 +3222,7 @@ The priority type.
Note that a small number of rows contain values which are not in the list
below. These are converted to NULL in this representation of the data. If
you need to access the original values, please see the corresponding [raw
table](../raw.tpp/#wl_openpathways).
table](raw.tpp.md#wl_openpathways).

* Possible values: `routine`, `urgent`, `two week wait`
</dd>
Expand Down Expand Up @@ -3325,7 +3325,7 @@ The waiting list type.
Note that a small number of rows contain values which are not in the list
below. These are converted to NULL in this representation of the data. If
you need to access the original values, please see the corresponding [raw
table](../raw.tpp/#wl_openpathways).
table](raw.tpp.md#wl_openpathways).

* Possible values: `ORTT`, `IRTT`, `ONON`, `INON`, `PTLO`, `PTLI`, `RTTO`, `RTTI`
</dd>
Expand Down
6 changes: 1 addition & 5 deletions ehrql/docs/render_includes/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ def render_schema_index(schemas):


def implemented_by_list(backends, depth=1):
if not backends:
return (
"_This schema is for development or testing purposes and is not"
" available on any backend._"
)
assert len(backends) > 0
if depth > 1:
url_prefix = "/".join([".."] * (depth - 1)) + "/"
else:
Expand Down
2 changes: 1 addition & 1 deletion ehrql/query_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def define_population(self, population_condition):
```

For more detail see the how-to guide on [defining
populations](../../how-to/define-population/).
populations](../how-to/define-population.md).
"""
if "population" in self.variables:
raise AttributeError(
Expand Down
Empty file removed ehrql/tables/examples/__init__.py
Empty file.
Loading
Loading