Skip to content

Commit f3e1f3c

Browse files
committed
Updated to the latest dataset available: January 2026.
1 parent ec1ccdc commit f3e1f3c

5 files changed

Lines changed: 180 additions & 508 deletions

File tree

general_practice/patient_registrations/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</tr>
3030
<tr>
3131
<td>Temporal coverage</td>
32-
<td>2023-05-01</td>
32+
<td>2026-01-01</td>
3333
</tr>
3434
<tr>
3535
<td>Update frequency</td>
@@ -53,13 +53,12 @@
5353
</tr>
5454
<tr>
5555
<td>Last updated</td>
56-
<td>2023-06-13</td>
56+
<td>2026-01-22</td>
5757
</tr>
5858
<tr>
5959
<td>Notes</td>
6060
<td>
61-
<p>Please read the <a href="https://digital.nhs.uk/data-and-information/publications/statistical/patients-registered-at-a-gp-practice/may-2023">Publication Summary</a> for important information regarding the publication from which this dataset is derived, noting in particular the following:</p>
62-
<p style="font-style: italic;">&quot;The outbreak of Coronavirus (COVID-19) has led to changes in the work of General Practices and subsequently the data within this publication. Until activity in this healthcare setting stabilises, we urge caution in drawing any conclusions from these data without consideration of the country's circumstances and would recommend that any uses of these data are accompanied by an appropriate caveat.&quot;</p>
61+
<p>There is ongoing work by NHS Digital to address patient list inflation.</p>
6362
</td>
6463
</tr>
6564
</table>

general_practice/patient_registrations/index.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ df <- read_csv("trafford_gp_patient_registrations.csv") %>%
4040
<tr>
4141
<td>NHS Digital</td>
4242
<td><a href="https://digital.nhs.uk/data-and-information/publications/statistical/patients-registered-at-a-gp-practice" target="_blank">NHS Digital</a></td>
43-
<td><time datetime="2023-05-01">2023-05-01</time></td>
43+
<td><time datetime="2026-01-01">2026-01-01</time></td>
4444
<td>Electoral ward, MSOA, Trafford Locality</td>
4545
<td><a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" target="_blank">OGL v3.0</a></td>
4646
<td>Contains public sector information licensed under the Open Government Licence v3.0</td>
47-
<td><time datetime="2023-06-13">2023-06-13</time></td>
47+
<td><time datetime="2026-01-22">2026-01-22</time></td>
4848
</tr>
4949
</table>
5050

general_practice/patient_registrations/index.html

Lines changed: 123 additions & 468 deletions
Large diffs are not rendered by default.

general_practice/patient_registrations/pre-processing.R

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Source: https://digital.nhs.uk/data-and-information/publications/statistical/patients-registered-at-a-gp-practice
44

5-
# Current publication: https://digital.nhs.uk/data-and-information/publications/statistical/patients-registered-at-a-gp-practice/may-2023
6-
# GP Practices: https://files.digital.nhs.uk/11/9809CA/gp-reg-pat-prac-map.csv
7-
# Patients: https://files.digital.nhs.uk/F1/3E4D66/gp-reg-pat-prac-all.csv
5+
# Current publication: https://digital.nhs.uk/data-and-information/publications/statistical/patients-registered-at-a-gp-practice/january-2026
6+
# GP Practices: https://files.digital.nhs.uk/FB/6E37C6/gp-reg-pat-prac-map.zip
7+
# Patients: https://files.digital.nhs.uk/10/0EC6AE/gp-reg-pat-prac-all.zip
88

99
# NOTE: Clinical Commissioning Groups (CCG) were abolished in favour of Integrated Care Boards (ICB) in 2022.
1010
# Trafford GPs are now part of:
@@ -13,21 +13,36 @@
1313
# ICB22CDH: QOP
1414

1515

16-
library(tidyverse)
16+
library(tidyverse) ; library(httr)
17+
18+
# Download the ZIP files required ---------
19+
tmp <- tempfile(fileext = ".zip")
20+
GET(url = "https://files.digital.nhs.uk/FB/6E37C6/gp-reg-pat-prac-map.zip",
21+
write_disk(tmp))
22+
unzip(tmp)
23+
unlink(tmp)
24+
25+
tmp <- tempfile(fileext = ".zip")
26+
GET(url = "https://files.digital.nhs.uk/10/0EC6AE/gp-reg-pat-prac-all.zip",
27+
write_disk(tmp))
28+
unzip(tmp)
29+
unlink(tmp)
30+
1731

1832
# Load Trafford's postcodes and associated area information
1933
trafford_postcodes <- read_csv("https://www.trafforddatalab.io/spatial_data/postcodes/trafford_postcodes.csv") %>%
2034
select(postcode, ward_code, ward_name, msoa_code, msoa_hcl_name, locality)
2135

2236
# Get the list of GP practices within Trafford
23-
trafford_gp <- read_csv("https://files.digital.nhs.uk/11/9809CA/gp-reg-pat-prac-map.csv") %>%
37+
trafford_gp <- read_csv("gp-reg-pat-prac-map.csv") %>%
2438
filter(PRACTICE_POSTCODE %in% trafford_postcodes$postcode) %>%
2539
select(practice_code = PRACTICE_CODE,
2640
practice_name = PRACTICE_NAME,
27-
postcode = PRACTICE_POSTCODE)
41+
postcode = PRACTICE_POSTCODE) %>%
42+
mutate(practice_name = str_to_title(practice_name))
2843

2944
# Get the current number of patient registrations
30-
trafford_gp_patients <- read_csv("https://files.digital.nhs.uk/F1/3E4D66/gp-reg-pat-prac-all.csv") %>%
45+
trafford_gp_patients <- read_csv("gp-reg-pat-prac-all.csv") %>%
3146
filter(POSTCODE %in% trafford_postcodes$postcode) %>%
3247
rename(practice_code = CODE,
3348
registered_patients = NUMBER_OF_PATIENTS) %>%
@@ -44,3 +59,7 @@ trafford_gp_patients <- read_csv("https://files.digital.nhs.uk/F1/3E4D66/gp-reg-
4459
locality)
4560

4661
write_csv(trafford_gp_patients, "trafford_gp_patient_registrations.csv")
62+
63+
64+
# Tidy up the filesystem ---------
65+
unlink(c("gp-reg-pat-prac-map.csv", "gp-reg-pat-prac-all.csv"))
Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
practice_code,practice_name,practice_postcode,registered_patients,ward_code,ward_name,msoa_code,msoa_hcl_name,locality
2-
P91003,PARK MEDICAL PRACTICE,WA15 7XR,6140,E05015257,Timperley Central,E02001280,Timperley East,South
3-
P91004,ALTRINCHAM MEDICAL PRACTICE,WA14 2DD,8278,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
4-
P91006,URMSTON GROUP PRACTICE,M41 8AA,13303,E05015245,Davyhulme,E02001265,Flixton & Moorside,West
5-
P91007,TIMPERLEY HEALTH CENTRE (WESTWOOD),WA15 6PH,4771,E05015257,Timperley Central,E02001279,Timperley North,South
6-
P91008,SHAY LANE MEDICAL CENTRE (KELMAN),WA15 8NZ,6009,E05015249,Hale Barns & Timperley South,E02001286,Hale Barns,South
7-
P91009,DAVYHULME MEDICAL CENTRE,M41 7WJ,11249,E05015245,Davyhulme,E02001263,Davyhulme,West
8-
P91011,SHAY LANE MEDICAL CENTRE (PATEL),WA15 8NZ,5803,E05015249,Hale Barns & Timperley South,E02001286,Hale Barns,South
9-
P91012,PRIMROSE SURGERY,M41 7AB,7323,E05015259,Urmston,E02001260,Trafford Park West & Kingsway Park,West
10-
P91013,BOUNDARY HOUSE MEDICAL CENTRE,M33 2RH,11526,E05015255,Sale Moor,E02001276,Sale Moor,Central
11-
P91014,WASHWAY ROAD MEDICAL CENTRE,M33 7SS,16301,E05015254,Sale Central,E02001273,Sale Central,Central
12-
P91016,WEST TIMPERLEY MEDICAL CENTRE,WA14 5PF,9565,E05015242,Broadheath,E02001282,Altrincham East,South
13-
P91017,BODMIN ROAD HEALTH CENTRE,M33 5JH,8950,E05015244,Bucklow-St Martins,E02001271,Ashton upon Mersey North,West
14-
P91018,DELAMERE MEDICAL PRACTICE,M32 0DF,14695,E05015256,Stretford & Humphrey Park,E02001269,Stretford East,North
15-
P91019,PARTINGTON CENTRAL SURGERY,M31 4FY,3668,E05015244,Bucklow-St Martins,E02001275,Partington,West
16-
P91020,LIMELIGHT HEALTH AND WELLBEING HUB,M16 9NW,9756,E05015253,Old Trafford,E02001259,Old Trafford,North
17-
P91021,FIRSWAY HEALTH CENTRE,M33 4BR,15139,E05015252,Manor,E02001271,Ashton upon Mersey North,Central
18-
P91026,PARTINGTON FAMILY PRACTICE,M31 4FL,5781,E05015244,Bucklow-St Martins,E02001275,Partington,West
19-
P91029,FLIXTON ROAD MEDICAL CENTRE,M41 5BG,11604,E05015259,Urmston,E02001268,Urmston West,West
20-
P91035,CONWAY ROAD MEDICAL PRACTICE,M33 2TB,12947,E05015243,Brooklands,E02001272,Sale East,Central
21-
P91603,BARRINGTON MEDICAL CENTRE,WA14 1PF,6838,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
22-
P91604,ST JOHNS MEDICAL CENTRE,WA14 1PF,17296,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
23-
P91617,FAMILY SURGERY,WA14 1LL,2683,E05015239,Altrincham,E02001282,Altrincham East,South
24-
P91623,VILLAGE SURGERY,WA15 6PH,5369,E05015257,Timperley Central,E02001279,Timperley North,South
25-
P91627,LOSTOCK MEDICAL CENTRE,M32 9PA,8643,E05015251,Lostock & Barton,E02001264,Trafford Park East & Sevenways,North
26-
P91629,NORTH TRAFFORD GROUP PRACTICE,M32 0PA,15214,E05015247,Gorse Hill & Cornbrook,E02001261,Gorse Hill,North
27-
P91631,RIDDINGS FAMILY HEALTH CENTRE,WA15 6BP,3320,E05015258,Timperley North,E02001279,Timperley North,South
28-
P91633,GROVE MEDICAL PRACTICE,WA15 6PH,5637,E05015257,Timperley Central,E02001279,Timperley North,South
2+
P91003,Park Medical Practice,WA15 7XR,7855,E05015257,Timperley Central,E02001280,Timperley East,South
3+
P91004,Altrincham Medical Practice,WA14 2DD,8597,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
4+
P91006,Urmston Group Practice,M41 8AA,13247,E05015245,Davyhulme,E02001265,Flixton & Moorside,West
5+
P91007,Timperley Health Centre (Westwood),WA15 6PH,6329,E05015257,Timperley Central,E02001279,Timperley North,South
6+
P91008,Shay Lane Medical Centre (Kelman),WA15 8NZ,6233,E05015249,Hale Barns & Timperley South,E02001286,Hale Barns,South
7+
P91009,Davyhulme Medical Centre,M41 7WJ,10804,E05015245,Davyhulme,E02001263,Davyhulme,West
8+
P91011,Shay Lane Medical Centre (Patel),WA15 8NZ,5386,E05015249,Hale Barns & Timperley South,E02001286,Hale Barns,South
9+
P91012,Primrose Surgery,M41 7AB,7573,E05015259,Urmston,E02001260,Trafford Park West & Kingsway Park,West
10+
P91013,Boundary House Medical Centre,M33 2RH,11271,E05015255,Sale Moor,E02001276,Sale Moor,Central
11+
P91014,Washway Road Medical Centre,M33 7SS,16215,E05015254,Sale Central,E02001273,Sale Central,Central
12+
P91016,West Timperley Medical Centre,WA14 5PF,9377,E05015242,Broadheath,E02001282,Altrincham East,South
13+
P91017,Bodmin Road Health Centre,M33 5JH,8842,E05015244,Bucklow-St Martins,E02001271,Ashton upon Mersey North,West
14+
P91018,Delamere Medical Practice,M32 0DF,14696,E05015256,Stretford & Humphrey Park,E02001269,Stretford East,North
15+
P91019,Partington Central Surgery,M31 4FL,3835,E05015244,Bucklow-St Martins,E02001275,Partington,West
16+
P91020,Limelight Health And Wellbeing Hub,M16 9NW,9229,E05015253,Old Trafford,E02001259,Old Trafford,North
17+
P91021,Firsway Health Centre,M33 4BR,15247,E05015252,Manor,E02001271,Ashton upon Mersey North,Central
18+
P91026,Partington Family Practice,M31 4FL,6683,E05015244,Bucklow-St Martins,E02001275,Partington,West
19+
P91029,Flixton Road Medical Centre,M41 5BG,11851,E05015259,Urmston,E02001268,Urmston West,West
20+
P91035,Conway Road Medical Practice,M33 2TB,13755,E05015243,Brooklands,E02001272,Sale East,Central
21+
P91603,Barrington Medical Centre,WA14 1PF,7694,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
22+
P91604,St Johns Medical Centre,WA14 1PF,16407,E05015239,Altrincham,E02001283,"Altrincham West, Dunham & Warburton",South
23+
P91617,Family Surgery,WA14 1LL,2307,E05015239,Altrincham,E02001282,Altrincham East,South
24+
P91623,Village Surgery,WA15 6PH,7810,E05015257,Timperley Central,E02001279,Timperley North,South
25+
P91627,Lostock Medical Centre,M32 9PA,8739,E05015251,Lostock & Barton,E02001264,Trafford Park East & Sevenways,North
26+
P91629,North Trafford Group Practice,M32 0PA,15211,E05015247,Gorse Hill & Cornbrook,E02001261,Gorse Hill,North
27+
P91631,Riddings Family Health Centre,WA15 6BP,3718,E05015258,Timperley North,E02001279,Timperley North,South

0 commit comments

Comments
 (0)