Skip to main content

The dataset specification is outlined in section 3 of the business rule documents and specifies the core data expected to be extracted by the system supplier. This is comprised of 5 main sections:

  • qualifying dates
  • GMS registration status
  • populations
  • clinical code clusters
  • clinical data extraction criteria

Qualifying dates

The dataset and indicator or count logic (rules) use a number of dates to determine the relevant periods to extract data for and for identifying which activity to include in each extract. These dates may differ for each Quality Service and are specified in the indicators section for use in the remainder of the dataset and rules. Dates may include, but are not limited to, any number of the following:

Term  Definition
Quality Service Start Date (QSSD) The first day of the period during which a GP practice provides the Quality Service.
Quality Service End Date (QSED) The last day of the period during which a GP practice provides the Quality Service.
Quality Service Period The period during which a GP practice provides the Quality Service specified in the business rules document.
Quality Service Data Extract Frequency The frequency of data extracts associated with the Quality Service.
Quality Service Payment Period In any given Quality Service Period there may be one, multiple or no payment periods. This is alternatively expressed as a ‘frequency’ such as monthly, quarterly etc.
Payment Period Start Date (PPSD) The first day of each period for which payments are made for the Quality Service. (for monthly payment periods, the PPSD will be the 1st of the month in question). Where there are no payment periods (For example where payments are made as part of core contract) the PPSD denotes the first day of the extract period in question.
Payment Period End Date (PPED) The last day of each period for which payments are made for the Quality Service. (I.e. for monthly payment periods, the PPED will be the last day of the month in question). Where there are no payment periods (For example where payments are made as part of core contract) the PPED denotes the last day of the extract period in question.
Achievement Date (ACHV_DAT) The date up to which patient information is considered when determining the output for each extraction. This is usually the same as the Reporting Period End Date (RPED); however, where interim extracts are made the achievement date will vary for each extraction.
Reporting Period

The full period which data are being extracted for

i.e. the time between the Reporting Period Start Date (RPSD) and achievement date (ACHV_DAT).
Reporting Period Start Date (RPSD)

The date from which certain patient information is considered for the reporting period in question.

  • for non-cumulative* data extracts this relates to the extract frequency (for example for a monthly data extract the RPSD will be the 1st of the month in question)
  • for cumulative* data extracts the time period will usually equal the QSSD or PPSD (for example for a within quarter cumulative count the RPSD is the first day of the quarter for an annual cumulative count the RPSD is the QSSD).
Reporting Period End Date (RPED) The last date of the period the extract relates to (usually the last day of a month for example 30 April, 31 May, etc).
Reporting Year The time period between the quality service start date and the achievement date (inclusive). At the end of the Quality Service Period, this will cover 12 months.

* Non-cumulative data collections are self-contained extracts for a given period of time. There is no overlap between one extract and the next and they each have different RPSDs and RPEDs. Cumulative data collections start from a set point in time and the period over which data are collected increases with each extract over the Quality Service period until the final extract. When a new Quality Service period begins the RPSD is reset. Cumulative counts often share a RPSD but have different RPEDs.

In addition to using these dates to determine the core dataset, the business rules have been compiled with a prior assumption all of the dates in the table above are specified prior to extraction of data and are available for computation in the data extraction routine. The dates are required to be included in the data extraction to support processing of indicator/count rules that are dependent upon them.


Patient selection criteria

The patient selection criteria detail the required registration status as well as the patient populations. Further criteria detail the clinical aspects of interest for these populations as defined by clusters of clinical codes.

All data are expected to be returned at practice level unless otherwise specified. If an extract is expected to be returned at another level, such as general practitioner  level or patient level, then this will be detailed under the patient selection criteria heading.


General Medical Service (GMS) registration status

This section predominantly contains the GMS registration status criteria. This is to determine the registration status at the time of the achievement date, of the patients registered to the practice on the date the extract takes place. All populations are applied to these criteria unless otherwise specified.

GMS registration status will be specified in the following format and may use clinical components from the qualifying dates, clinical code clusters or clinical data extraction criteria tables.

Qualifying criteria Action if true Action if false Non-technical description 
Rule logic to determine which patients are included or excluded

Select /

Reject /

Next rule

Select /

Reject /

Next rule
Non-technical description of the rule
End of rules - - -

 

Non-technical descriptions of rules are provided as supplementary information to assist non-technical readers (for example GP practice staff, ICBs, etc.) to interpret the logic. Any organisations or individuals who are implementing the business rules are expected to implement the logic and or qualifying criteria and should not rely on the textual descriptions which may be over simplified.


Populations

Populations consist of either case registers or cohorts. These are subsets of patients to which further logic may be applied to produce the outputs.

Standard business rule logic is used to select appropriate patients into the population. Populations have the ID, title and which patients the logic is applied to in the first table with the logic in the second table.

Register/Count name Description Applied to patients in: 
XXX_REG Title

Name of other population OR

the patient selection criteria.

 

Rule number Rule Action if true Action if false Rule description or comments 
1 Rule logic to determine which patients are included or excluded

Select / Reject /

Next rule

Select / Reject /

Next rule
Non-technical description of the rule
End of rules - - - -

 

For further information regarding processing see the rule logics.

Any service may have one or more populations and some populations may be applied to other populations (For example a case register with two age cohorts applied to it). Each patient must only appear in a population once; however, if there are multiple registers, a patient can appear in more than one register if they meet the selection criteria in each set of rules.

Populations may be referred to as registers or cohorts; however, they are specified and extracted in the same way.

Cohorts are lists of eligible patients that usually form a patient population for subsequent payment and management information counts. These are populations solely for the purpose of the business rules in question and are not recognised case registers.

A list of patients selected into the population, which subsequent outputs can be applied to, and a count of patients selected into the population should be returned for each population.

All populations are expected to return a count

Non-technical descriptions of rules are provided as supplementary information to assist non-technical readers (for example GP practice staff, ICBs, etc.) to interpret the logic. Any organisations or individuals who are implementing the business rules are expected to implement the logic/qualifying criteria and should not rely on the textual descriptions which may be over-simplified.


Clinical code clusters

Although clinical codes may not be required to be returned as part of the output, they need to be specified in order for any dates associated with them to be identified. Clinical code clusters are specified in a table with their name, description and reference set ID.

Cluster name Description  SNOMED CT 
NAME_COD Description of codes included in the cluster Reference set ID

 


SNOMED CT

SNOMED CT codes may be up to 18 numbers long. In the cluster strings the following syntax is used to define which codes are included or excluded: 

Syntax Example Description
^ ^999000841000001106 Member of (used for reference sets)

 


Overarching/Composite clusters

There are a small number of clusters whose contents are based on a series of other existing clusters. An example of this can be seen in the GP Data for Pandemic Planning and Research extract (for example GDPPR_COD). In these instances, the business rules table will specify the underlying clusters for information and transparency; however, these will be greyed out and system suppliers are not expected to use this additional information in their queries. The full contents of the cluster are published in the UK primary care refset releases on Technology Reference Update Distribution (TRUD) under the specified refset ID. An example can be seen below:

Cluster name Description  SNOMED CT
EXAMPLE_COD Description of codes included in the overarching/composite cluster ^123456789123456

FOR INFORMATION - EXAMPLE_COD contains codes from the following clusters:

 

Cluster name Description  SNOMED CT
CLUSTER1_COD Description of codes included in the underlying cluster ^234567823456782
CLUSTER2_COD Description of codes included in the underlying cluster ^345676543456765

 


Clinical data extraction criteria

These are the data items to be exported from the clinical system for subsequent processing. The information provided to enable the initial export is as follows:

Column Content
Field Number Identifier of extract columns
Field Name Name of data item. Each field name will have a suffix, for example

_DAT for dates

_COD for clinical codes

_VAL for values

_AGE for patient age

_PRE for prescription

_HCPT for health care profession type

_RDT for record date

_FLG for flags
Code cluster If the field relies upon code clusters, cluster IDs are specified in the ‘Code cluster’ column (see Clinical Codes for more information).
Qualifying criteria

The qualifying criteria specifies any limits applied to the field. Typically, these relate to dates and refer to the ‘EARLIEST’ or ‘LATEST’ occurrence of an event; however, the qualifying criteria may also relate to values associated with the data being extracted for the chosen field.

The “ALL” statement is used to select every occurrence of codes or dates. It selects an array of instances, of which there may be more than one for each patient.

Description

The description gives a textual ‘non-technical’ explanation of what is required to be returned for the field.

Non-technical descriptions are provided as supplementary information to assist non-technical readers (For example GP practice staff, ICBs, etc.) to interpret the logic. Any organisations or individuals who are implementing the business rules are expected to implement the logic/qualifying criteria and should not rely on the textual descriptions which may be over-simplified.

 


Producing the dataset

As we have seen there is a process that selects patients of interest based on population definitions using dates and clusters of clinical codes. For these patients various attributes are populated, again using dates and clusters of clinical codes. This should be visualised as a report table where for every patient selected there are rows detailing the data items defined in the clinical data extraction criteria section.

Where there are no data to match a specific clinical criterion, a null field will be exported. If a data item has a NULL value and is used in the qualifying criteria of another data item, then the dependent data item fields will also be NULL as dates cannot be checked against a NULL value.

Each selected patient will be represented by a single row in the report, unless the operator “ALL” is used (see Arrays section).

Figures are expected to be reported for both populations and outputs unless otherwise specified in the business rules.

Any inactive codes within a refset should continue to be extracted.


Last edited: 28 September 2026 2:11 pm