Skip to content

Commit bd17ee2

Browse files
committed
converted report.ipynb into Rmd
1 parent edd60fd commit bd17ee2

File tree

2 files changed

+810
-0
lines changed

2 files changed

+810
-0
lines changed

analysis/reports/report.Rmd

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
---
2+
title: "Pharmacy First"
3+
output:
4+
html_document:
5+
theme: journal
6+
date: "01-01-2020 through 31-06-2024 by month"
7+
---
8+
```{css, echo=FALSE}
9+
pre {
10+
max-height: 300px;
11+
overflow-y: auto;
12+
}
13+
pre[class] {
14+
max-height: 200px;
15+
}
16+
```
17+
18+
<style>
19+
body {
20+
text-align: justify;
21+
font-size: 11pt}
22+
</style>
23+
24+
25+
```{r setup, include=FALSE}
26+
knitr::opts_chunk$set(echo = TRUE)
27+
```
28+
$~$
29+
30+
## Background <a name="background"></a>
31+
32+
Add background here.
33+
34+
$~$
35+
36+
## Methods <a name="methods"></a>
37+
38+
This study used data from OpenSAFELY-TPP, which covers 40% of the population of England. For a description of the representativeness of this sample, please see our manuscript [here](https://wellcomeopenresearch.org/articles/7-191/v1). Individuals were included if they were alive and registered at a TPP practice each month, across the study period. Patients were excluded if their listed age was not between 0 and 120 years.
39+
40+
Counts represent patients with at least one clinical code of relevance in that month. Patients with more than one of the same clinical code in a month were only counted once. Rates divide the count by the included study population and multiply by 1,000 to achieve a rate per 1,000 registered patients.
41+
42+
Counts <=7 have been redacted and all numbers rounded to the nearest 5 to avoid potential re-identification of individuals. The rates displayed were computed with these rounded counts.
43+
44+
Our data relies on a relevant Pharmacy First code being added to a patient's GP record. The Pharmacy First service relies on [GP Connect: Update Record](https://digital.nhs.uk/services/gp-connect/gp-connect-in-your-organisation/gp-connect-update-record) to update a patient's GP record with consultation information from the community pharmacy. Following the launch of the Pharmacy First service, there has been a [gradual roll-out of GP Connect: Update Record](https://cpe.org.uk/our-news/gp-connect-update-record-rollout-and-flow-of-information/) across the approved community pharmacy IT system suppliers.
45+
46+
*Need to complete this*
47+
48+
Links to the codelist for each analysis can be found beneath the relevant section.
49+
50+
This report contains the following sections:
51+
52+
* [Clinical Pathways](#pathways)
53+
* [Clinical condition](#condition)
54+
* [Days of the week](#dotw)
55+
* [NHS region](#region)
56+
* [Ethnicity](#ethnicity)
57+
* [IMD](#imd)
58+
* [Shingles](#shingles)
59+
+ [Sex](#shingles_sex)
60+
+ [Age](#shingles_age)
61+
+ [Ethnicity](#shingles_ethnicity)
62+
+ [IMD](#shingles_imd)
63+
+ [Region](#shingles_region)
64+
+ [Medication supply](#shingles_supply)
65+
* [Urinary tract infection etc.](#urt)
66+
* [Hypertension](#hyp)
67+
* [Age](#hyp_age)
68+
* [Sex](#hyp_sex)
69+
* [Region](#hyp_region)
70+
* [Contraception](#contra)
71+
* [Age](#contra_age)
72+
* [Region](#contra_region)
73+
74+
$~$
75+
76+
## Clinical Pathways <a name="pathways"></a>
77+
78+
This section focuses on the Clinical Pathways element of that Pharmacy First service.
79+
80+
81+
### Clinical Condition <a name="condition"></a>
82+
83+
This section focuses on the clinical conditions within the Clinical Pathways element of that Pharmacy First service:
84+
85+
#### Counts by clinical condition
86+
Here we show the number of consultations for each of the Pharmacy First Clinical Pathways Clinical Conditions
87+
88+
> LINE CHART WITH COUNT OF EACH CLINICAL CONDITION
89+
90+
### Counts by day of the week <a name="dotw"></a>
91+
Here we show the number of consultations for the Pharmacy First Clinical Pathways by day of the week the consultation was conducted. (Mainly of interest to show what happens at weekends etc e.g. when GP practices are closed).
92+
93+
> BAR CHART WITH COUNT BY DAY OF THE WEEK
94+
95+
### Rates by region <a name="region"></a>
96+
Here we show the rates of consultations for the Pharmacy First Clinical Pathways by the NHS Region in which the patient is registered. (Might not be the region where PF consultation conducted).
97+
98+
> RATES OF ANY PF CLINICAL PATHWAY BY REGION
99+
100+
### Rates by ethnicity <a name="ethnicity"></a>
101+
Here we show the rates of consultations for the Pharmacy First Clinical Pathways by patient ethnicity
102+
103+
> RATES OF ANY PF CLINICAL PATHWAY BY ETHNICITY
104+
105+
### Rates by IMD <a name="imd"></a>
106+
Here we show the rates of consultations for the Pharmacy First Clinical Pathways by IMD (based on patient address)
107+
108+
> RATES OF ANY PF CLINICAL PATHWAY BY IMD
109+
110+
### Shingles <a name="shingles"></a>
111+
Here we show the rates specifically for consultations conducted under the Shingles clinical pathway:
112+
113+
#### Rates by sex <a name="shingles_sex"></a>
114+
Here we show the rates of consultations for the Pharmacy First Shingles Clinical Pathways by sex
115+
116+
> RATES OF SHINGLES CLINICAL PATHWAY BY SEX
117+
118+
#### Rates by age <a name="shingles_age"></a>
119+
Here we show the rates of consultations for the Pharmacy First Shingles Clinical Pathways by age. (Would need to consider age bands as different for each pathway)
120+
121+
> RATES OF SHINGLES CLINICAL PATHWAY BY AGE
122+
123+
#### Rates by ethnicity <a name="shingles_ethnicity"></a>
124+
Here we show the rates of consultations for the Pharmacy First Shingles Clinical Pathways by ethnicity
125+
126+
> RATES OF SHINGLES CLINICAL PATHWAY BY ETHNICITY
127+
128+
#### Rates by IMD <a name="shingles_imd"></a>
129+
Here we show the rates of consultations for the Pharmacy First Shingles Clinical Pathways by IMD
130+
131+
> RATES OF SHINGLES CLINICAL PATHWAY BY IMD
132+
133+
#### Rates by region <a name="shingles_region"></a>
134+
Here we show the rates of consultations for the Pharmacy First Shingles Clinical Pathways by NHS region
135+
136+
> RATES OF SHINGLES CLINICAL PATHWAY BY REGION
137+
138+
#### Rates by medication supply <a name="shingles_supply"></a>
139+
Here we show the percentage of consultations for the Pharmacy First Shingles Clinical Pathways with vs without medication supply. (Could also potentially show details of which medication issued)
140+
141+
> BAR PLOT OF PERCENTAGE OF SHINGLES CLINICAL PATHWAY WITH/WITHOUT MEDICATION SUPPLIED
142+
143+
### Urinary tract infection etc. <a name="urt"></a>
144+
145+
> *placeholder*
146+
147+
## Hypertension <a name="hyp"></a>
148+
149+
*description*
150+
151+
### Age <a name="hyp_age"></a>
152+
153+
> *placeholder*
154+
155+
### Sex <a name="hyp_sex"></a>
156+
157+
> *placeholder*
158+
159+
### Region <a name="hyp_region"></a>
160+
161+
> *placeholder*
162+
163+
## Contraception <a name="contra"></a>
164+
165+
*description*
166+
167+
### Age <a name="contra_age"></a>
168+
169+
> *placeholder*
170+
171+
### Region <a name="contra_region"></a>
172+
173+
> *placeholder*

analysis/reports/report.html

Lines changed: 637 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)