Skip to content

Commit a0f2464

Browse files
authored
Merge pull request #6473 from NHSDigital/MAV-5523-vaccination_administered-discrepancies
Fix discrepancies in side-effects in email and SMS, for 'vaccination administered' comms (HPV, MenACWY, Td/IPV)
2 parents 15224d0 + 5614554 commit a0f2464

22 files changed

Lines changed: 219 additions & 81 deletions

app/lib/govuk_notify_personalisation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def patient_year_group
518518
end
519519

520520
def programme_names
521-
@programme_names ||= programmes.map(&:name)
521+
@programme_names ||= programmes.map(&:name_in_sentence)
522522
end
523523

524524
def programme_names_and_methods

app/models/concerns/has_side_effects.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module HasSideEffects
1010
aching: 0,
1111
dizziness: 1,
1212
drowsy: 2,
13+
feeling_or_being_sick: 18,
1314
feeling_sick: 3,
1415
headache: 4,
1516
high_temperature: 5,

app/views/notify_templates/email/vaccination_administered_flu.text.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
template_id: "7238ee27-5840-40e5-b9b9-3130ba4cd4fa"
33
template_name: vaccination_administered_flu
4-
subject: "Your child had their flu vaccination <%= today_or_date_of_vaccination %>"
4+
subject: "Your child had their <%= vaccination %> <%= today_or_date_of_vaccination %>"
55
---
66
<%= full_and_preferred_patient_name %> had their flu vaccination at <%= location_name %> <%= today_or_date_of_vaccination %>.
77

88
We suggest you record the following details somewhere.
99

10-
Vaccination: flu
10+
Vaccination: <%= vaccination %>
1111
Vaccine: <%= vaccine_brand %>
1212
Method: <%= if vaccine_is?("injection") then "injection" elsif vaccine_is?("nasal") then "nasal spray" end %>
1313
Date of vaccination: <%= day_month_year_of_vaccination %>
1414
Batch number: <%= batch_name %>
1515

16-
##Possible side effects
16+
## Possible side effects
1717

1818
Your child might have some of the following side effects:
1919

app/views/notify_templates/email/vaccination_administered_hpv.text.erb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ template_id: "8a65d7b5-045c-4f26-8f76-6e593c14cb6d"
33
template_name: vaccination_administered_hpv
44
subject: "Your child had their HPV vaccination <%= today_or_date_of_vaccination %>"
55
---
6-
<%= full_and_preferred_patient_name %> had their HPV vaccination at <%= location_name %> <%= today_or_date_of_vaccination %>.
6+
<%= full_and_preferred_patient_name %> had their HPV vaccination at <%= location_name %> <%= today_or_date_of_vaccination %>.
77

88
We suggest you record the following details somewhere.
99

@@ -12,18 +12,15 @@ Vaccine: Gardasil 9
1212
Date of vaccination: <%= day_month_year_of_vaccination %>
1313
Batch number: <%= batch_name %>
1414

15-
## Possible side effects
15+
## Possible side effects
1616

1717
Your child might have some of the following side effects:
1818

19-
* bruising or itching at the site of the injection
20-
* a high temperature, or feeling hot and shivery
21-
* feeling sick (nausea)
22-
* pain in the arms, hands, fingers
19+
<%= vaccine_side_effects %>
2320

2421
If you’re concerned about your child’s reaction to the vaccine, contact your GP in the usual way.
2522

26-
You can [give feedback](https://feedback.digital.nhs.uk/jfe/form/SV_3fICo6frMvUZX1k) about the ‘Give or refuse consent’ service by completing our short survey. Your feedback will help us improve the service.
23+
You can [give feedback](https://feedback.digital.nhs.uk/jfe/form/SV_3fICo6frMvUZX1k) about the ‘Give or refuse consent’ service by completing our short survey. Your feedback will help us improve the service.
2724

2825
<%= subteam_name %>
2926
<%= subteam_email %>

app/views/notify_templates/email/vaccination_administered_menacwy.text.erb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,11 @@ Vaccine: MenQuadfi
1212
Date of vaccination: <%= day_month_year_of_vaccination %>
1313
Batch number: <%= batch_name %>
1414

15-
##Possible side effects
15+
## Possible side effects
1616

1717
Your child might have some of the following side effects:
1818

19-
* pain, swelling or itchiness where the injection was given
20-
* headache
21-
* feeling sick
22-
* a rash
23-
* feeling irritable
24-
* feeling drowsy
25-
* loss of appetite
26-
* generally feeling unwell
19+
<%= vaccine_side_effects %>
2720

2821
If you’re concerned about your child’s reaction to the vaccine, contact your GP in the usual way.
2922

app/views/notify_templates/email/vaccination_administered_mmr.text.erb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ template_id: "0b1095db-fb38-4105-9f01-a364fa8bbb1c"
33
template_name: vaccination_administered_mmr
44
subject: "Your child had their <%= vaccination %> <%= today_or_date_of_vaccination %>"
55
---
6-
<%= full_and_preferred_patient_name %> had their <%= vaccination %> at <%= location_name %> <%= today_or_date_of_vaccination %>.
6+
<%= full_and_preferred_patient_name %> had their <%= vaccination %> at <%= location_name %> <%= today_or_date_of_vaccination %>.
77

88
We suggest you make a note of the following details somewhere.
99

@@ -12,18 +12,17 @@ Vaccine: <%= vaccine_brand %>
1212
Date of vaccination: <%= day_month_year_of_vaccination %>
1313
Batch number: <%= batch_name %>
1414

15-
## Possible side effects
15+
## Possible side effects
1616

1717
Your child might have some of the following side effects:
1818

19-
* a raised, blotchy rash (similar to a measles rash), feeling unwell, and a high temperature around 7 to 11 days after the vaccination
20-
* swollen glands around the cheeks, neck and jaw, and aching joints (similar to a mild form of mumps) around 2 to 3 weeks after the vaccination
19+
<%= vaccine_side_effects %>
2120

2221
These side effects are usually mild and only last 2 to 3 days. If you’re concerned about your child’s reaction to the vaccine, contact your GP in the usual way.
2322

2423
<%= mmr_second_dose_message %>
2524

26-
You can [give feedback](https://feedback.digital.nhs.uk/jfe/form/SV_3fICo6frMvUZX1k) about the ‘Give or refuse consent’ service by completing our short survey. Your feedback will help us improve the service.
25+
You can [give feedback](https://feedback.digital.nhs.uk/jfe/form/SV_3fICo6frMvUZX1k) about the ‘Give or refuse consent’ service by completing our short survey. Your feedback will help us improve the service.
2726

2827
<%= subteam_name %>
2928
<%= subteam_email %>

app/views/notify_templates/email/vaccination_administered_td_ipv.text.erb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ Batch number: <%= batch_name %>
1616

1717
Your child might have some of the following side effects:
1818

19-
* swelling or pain where the injection was given
20-
* dizziness
21-
* feeling or being sick
22-
* a high temperature
23-
* a headache
19+
<%= vaccine_side_effects %>
2420

2521
If you’re concerned about your child’s reaction to the vaccine, contact your GP in the usual way.
2622

config/locales/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ en:
467467
aching: an aching body
468468
dizziness: dizziness
469469
drowsy: feeling drowsy
470+
feeling_or_being_sick: feeling or being sick
470471
feeling_sick: feeling sick
471472
headache: a headache
472473
high_temperature: a high temperature
@@ -483,7 +484,7 @@ en:
483484
swollen_glands: >-
484485
swollen glands around the cheeks, neck and jaw, and aching joints (similar to a mild
485486
form of mumps) around 2 to 3 weeks after the vaccination
486-
tiredness: general tiredness
487+
tiredness: tiredness
487488
unwell: generally feeling unwell
488489
errors:
489490
models:

config/vaccines.yml

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ cell_based_trivalent:
1111
dose_volume_ml: 0.5
1212
disease_types: [influenza]
1313
side_effects:
14+
- aching
15+
- raised_temperature
1416
- swelling
15-
- headache
16-
- high_temperature
17-
- feeling_sick
18-
- irritable
19-
- drowsy
20-
- loss_of_appetite
21-
- unwell
2217
snomed_product_code: 43207411000001105
2318
snomed_product_term:
2419
Cell-based trivalent influenza vaccine (surface antigen, inactivated) suspension for injection
@@ -49,14 +44,9 @@ vaxigrip:
4944
dose_volume_ml: 0.5
5045
disease_types: [influenza]
5146
side_effects:
47+
- aching
48+
- raised_temperature
5249
- swelling
53-
- headache
54-
- high_temperature
55-
- feeling_sick
56-
- irritable
57-
- drowsy
58-
- loss_of_appetite
59-
- unwell
6050
snomed_product_code: 45175511000001104
6151
snomed_product_term:
6252
Vaxigrip Trivalent influenza vaccine (split virion, inactivated) suspension for injection 0.5ml
@@ -73,14 +63,9 @@ viatris:
7363
dose_volume_ml: 0.5
7464
disease_types: [influenza]
7565
side_effects:
66+
- aching
67+
- raised_temperature
7668
- swelling
77-
- headache
78-
- high_temperature
79-
- feeling_sick
80-
- irritable
81-
- drowsy
82-
- loss_of_appetite
83-
- unwell
8469
snomed_product_code: 45354911000001100
8570
snomed_product_term:
8671
Influenza TIV MYL vaccine suspension for injection 0.5ml pre-filled syringes (Viatris UK
@@ -151,11 +136,9 @@ gardasil_9:
151136
- swelling
152137
- headache
153138
- high_temperature
139+
- dizziness
154140
- feeling_sick
155-
- irritable
156-
- drowsy
157-
- loss_of_appetite
158-
- unwell
141+
- tiredness
159142
snomed_product_code: 33493111000001108
160143
snomed_product_term:
161144
Gardasil 9 vaccine suspension for injection 0.5ml pre-filled syringes (Merck Sharp & Dohme (UK)
@@ -176,7 +159,6 @@ menquadfi:
176159
- drowsy
177160
- feeling_sick
178161
- headache
179-
- high_temperature
180162
- irritable
181163
- loss_of_appetite
182164
- rash
@@ -198,7 +180,6 @@ menveo:
198180
- drowsy
199181
- feeling_sick
200182
- headache
201-
- high_temperature
202183
- irritable
203184
- loss_of_appetite
204185
- rash
@@ -222,7 +203,6 @@ nimenrix:
222203
- drowsy
223204
- feeling_sick
224205
- headache
225-
- high_temperature
226206
- irritable
227207
- loss_of_appetite
228208
- rash
@@ -309,14 +289,11 @@ revaxis:
309289
dose_volume_ml: 0.5
310290
disease_types: [tetanus, diphtheria, polio]
311291
side_effects:
312-
- drowsy
313-
- feeling_sick
292+
- dizziness
293+
- feeling_or_being_sick
314294
- headache
315295
- high_temperature
316-
- irritable
317-
- loss_of_appetite
318296
- swelling
319-
- unwell
320297
snomed_product_code: 7374511000001107
321298
snomed_product_term:
322299
Revaxis vaccine suspension for injection 0.5ml pre-filled syringes (Sanofi) 1 pre-filled
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# frozen_string_literal: true
2+
3+
class UpdateGardasil9SideEffects < ActiveRecord::Migration[8.0]
4+
def up
5+
vaccine = Vaccine.find_by!(snomed_product_code: "33493111000001108")
6+
vaccine.update!(
7+
side_effects:
8+
(vaccine.side_effects - %w[irritable drowsy loss_of_appetite unwell]) |
9+
%w[dizziness tiredness]
10+
)
11+
end
12+
13+
def down
14+
vaccine = Vaccine.find_by!(snomed_product_code: "33493111000001108")
15+
vaccine.update!(
16+
side_effects:
17+
(vaccine.side_effects - %w[dizziness tiredness]) |
18+
%w[irritable drowsy loss_of_appetite unwell]
19+
)
20+
end
21+
end

0 commit comments

Comments
 (0)