General Practice Extraction Service (GPES) Data for Pandemic Planning and Research (GDPPR) Dataset#
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[1], line 5
3 sys.path.append(os.path.abspath('../../../../scripts/'))
4 from data_doc_helper import NHSEDataSet as DS, last_modified
----> 5 ds = DS("GDPPR")
6 last_modified()
File /opt/build/repo/ukllc_book/docs/scripts/data_doc_helper.py:1048, in NHSEDataSet.__init__(self, dataset)
1046 # define std input variables
1047 self.dataset = dataset
-> 1048 self.df_ds = get_nhse_ds(self.dataset)
1049 self.doi = ds_doi(self.df_ds.iloc[0]["table"])
1050 self.ed = get_ed(self.dataset)
File /opt/build/repo/ukllc_book/docs/scripts/data_doc_helper.py:879, in NHSEDataSet.__init__.<locals>.get_nhse_ds(x)
869 """Returns DF of dataset info/metrics
870
871 Args:
(...) 875 DF: dataframe of dataset info/metrics
876 """
878 ds = md.get_md_api_dss()
--> 879 df_ds = ds[(ds["source"] == "NHSE") & (ds["table"] == x)]
880 df_ds["source_table"] = df_ds["source"] + "_" + df_ds["table"]
881 # ss = md.get_md_api_ss()[["source", "Owner"]]
882 # df_ds = df_ds.merge(ss, on="source")
TypeError: string indices must be integers, not 'str'
1. Summary#
Data are collected about patients at General Practices in England that have opted into contributing to the GDPPR dataset and whose health record contains coded information relevant to pandemic planning and research. Data collected include demographic information, diagnoses and findings, medications and other prescribed items, investigations, tests and results, treatments and outcomes, and vaccinations and immunisations.
Dataset Descriptor | Dataset-specific Information |
---|---|
Name of Dataset in TRE | NHSE_GDPPR |
Citation (APA) | Data Services, NHS England (NHSE) . (2024). NHS England: General Practice Extraction Service (GPES) Data for Pandemic Planning and Research. UK Longitudinal Linkage Collaboration (UK LLC). https://doi.org/10.83126/ukllc-dataset-00057-03 |
Download Citation | Citeproc JSON BibTeX RIS |
Series | NHS England |
Owner | NHS England, Office for National Statistics and Department of Health and Social Care |
Temporal Coverage in the TRE | 06/2020 - ongoing |
Geographical Coverage | England |
Participant Count | 202817 |
Number of Variables | 23 |
Number of Observations | 261104333 |
Key Link | https://digital.nhs.uk/coronavirus/gpes-data-for-pandemic-planning-and-research/guide-for-analysts-and-users-of-the-data |
Keywords | COVID-19, Primary care, GP records |
Latest Extract Date | 2024-04-26 |
Specific Restrictions to Data Use | 1. Research must be related to COVID-19. For examples of research purposes acceptable to NHS England see the COVID-19 Public Health Directions 2020: https://digital.nhs.uk/about-nhs-digital/corporate-information-and-documents/directions-and-data-provision-notices/secretary-of-state-directions/covid-19-public-health-directions-2020 2. GDPPR data must not be used for any form of performance management of General Practices. |
Build a Data Request | https://explore.ukllc.ac.uk/ |
2. Metrics#
Table 2: Please note, individual cohort counts of less than 10 are suppressed to 0 and are therefore excluded from total participant counts for datasets
3. Version History#
Version Number | 1 | 2 | 3 |
---|---|---|---|
Name in TRE | NHSE_GDPPR | NHSE_GDPPR | NHSE_GDPPR |
Version Date | 21 Dec 2022 | 13 Apr 2023 | 26 Apr 2024 |
Number of Variables | 23 | 23 | 23 |
Number of Rows | 163918817 | 201875928 | 261104333 |
DOI | 10.83126/ukllc-dataset-00057-01 | 10.83126/ukllc-dataset-00057-02 | 10.83126/ukllc-dataset-00057-03 |
4. Documentation#
We are currently building a documentation storage system, which will host relevant and useful documents related to datasets, groupings, and studies themselves. Relevant documentation for this particular dataset will go here.
5. Useful Syntax#
Below we will include syntax that may be helpful to other researchers in the UK LLC TRE. For longer scripts, we will include a snippet of the code plus a link to Git where you can find the full script