Skip to content

Commit

Permalink
Merge pull request #1391 from opensafely/add-ehrql-note-to-federation…
Browse files Browse the repository at this point in the history
…-page

Add note about ehrQL to federation page
  • Loading branch information
inglesp authored Nov 28, 2023
2 parents c1392b3 + c914f46 commit 3f89e6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/federation.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ We have various [examples](#examples) of completed and published analyses that w

The researcher wrote the code as a **single codebase**. As with all OpenSAFELY activity, this is composed of small, cross-backend components called *actions*.

The first action they wrote extracts a dataset using an [OpenSAFELY study definition](study-def.md)—a uniform way of extracting variables from very different databases. For example, this section of the study definition creates a variable that indicates when a patient was most recently recorded as having severe obesity:
The first action they wrote extracts a dataset using an [OpenSAFELY study definition](study-def.md)—a uniform way of extracting variables from very different databases.
(Note that this example uses cohort-extractor, which has been deprecated in favour of [ehrQL](/ehrql/).
However, this doesn't change the approach to federation.)

For example, this section of the study definition creates a variable that indicates when a patient was most recently recorded as having severe obesity:


```python

Expand Down

0 comments on commit 3f89e6c

Please sign in to comment.