Tutorial
This tutorial provides practical steps for learning ehrQL.
You will work through using ehrQL to:
- identify patients who should be on the QOF register for diabetes, and
- categorise patients on the register according to various QOF business rules.
What's QOF?
QOF is the Quality and Outcomes Framework. It is an incentive programme for GP practices. To recieve payment, GPs must keep registers of patients with various conditions, and demonstrate that they are providing care according to business rules.
An example from the diabetes business rules (found here) would be that patients with a new diagnosis of diabetes should be referred to a structured education programme within nine months of diagnosis.
The tutorial is interactive. You will get the most out of it if you run the code yourself, and do experiments by changing the code and trying to explain what you see.
At the end of the tutorial there will be a quiz.
You can find a tutorial for writing an OpenSAFELY study in our Getting started guide.
Get started with Setting up.
Cartoon from xkcd.com/2582.