Last updated: 10 November 2026
Use Code recorded in a patient search to find patients who have any code from a code list, at any time or in the last few months. It reads both problems and observations, so a code recorded either way is found. This is how to build an audit like "QRISK recorded in the last 12 months".
You can also describe the search in the box at the top, for example "patients with asthma coded in the last year", and choose Draft. Check the condition it adds before you use the results.
A problem with no onset date can't be placed in a time window. With In the last, that patient is counted as couldn't be decided: they are not a match, and not counted as having no code either. The count tells you how many. Add an onset date to the problem to include them. With Ever, they do count, because the code was recorded.
To see how many of a group meet the condition, build the group with your other conditions, then set the Code recorded condition as the Audit measure. The results show Met and Not met.
Save the search to run it again on today's data whenever you open it. To change a saved search someone else made, use Duplicate.