From f4461386ec850a0e05c899eb72310fa682c2ff46 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Mon, 26 Oct 2026 08:21:32 +0000 Subject: [PATCH 1/3] Pertussis-and-RSV-warning-updates Removed the link to UKHSA guidance and replaced it with this line: Check before going ahead or refer to a prescriber for a patient specific direction (PSD). --- .../pertussis/not-yet-16-weeks-pregnant-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html b/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html index a2f1968d..54e6b677 100644 --- a/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html +++ b/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html @@ -31,7 +31,7 @@

The pertussis vaccine is recommended between 16 and 32 weeks of pregnancy.

-

UKHSA guidance on pertussis vaccination of pregnant women (opens in new tab).

+

Check before going ahead or refer to a prescriber for a patient specific direction (PSD).

{{ button({ "text": "Continue anyway", From d9d6c198eed2a036a4e4a167e1ca9be7a3456287 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Mon, 26 Oct 2026 08:23:40 +0000 Subject: [PATCH 2/3] Replace UKHSA link with patient direction advice Updated warning message for RSV vaccination guidance. --- .../rsv/not-yet-28-weeks-pregnant-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html b/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html index ddd77b5b..78371459 100644 --- a/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html +++ b/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html @@ -32,7 +32,7 @@

The RSV vaccine is not routinely recommended before 28 weeks of pregnancy.

-

UKHSA guidance on RSV vaccination of pregnant women (opens in new tab).

+

Check before going ahead or refer to a prescriber for a patient specific direction (PSD).

{{ button({ "text": "Continue anyway", From a77b6615fc9e5766132baa3ce9ea8186f969ed3f Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Mon, 26 Oct 2026 14:21:46 +0000 Subject: [PATCH 3/3] Default to 13 weeks if not in normal record flow --- app/routes/record-vaccinations.js | 8 ++++++++ .../pertussis/not-yet-16-weeks-pregnant-warning.html | 4 +--- .../rsv/not-yet-28-weeks-pregnant-warning.html | 4 +--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/routes/record-vaccinations.js b/app/routes/record-vaccinations.js index 5c2642e1..4769fab1 100644 --- a/app/routes/record-vaccinations.js +++ b/app/routes/record-vaccinations.js @@ -635,6 +635,10 @@ module.exports = router => { const data = req.session.data const pregnancyDueDate = dateFromYearMonthDay(data.pregnancyDueDate?.year, data.pregnancyDueDate?.month, data.pregnancyDueDate?.day) + if (!pregnancyDueDate) { + return res.render('record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning') + } + // Vaccination date is today const vaccinationDate = new Date() @@ -656,6 +660,10 @@ module.exports = router => { const data = req.session.data const pregnancyDueDate = dateFromYearMonthDay(data.pregnancyDueDate?.year, data.pregnancyDueDate?.month, data.pregnancyDueDate?.day) + if (!pregnancyDueDate) { + return res.render('record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning') + } + // Vaccination date is today const vaccinationDate = new Date() diff --git a/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html b/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html index 54e6b677..4e02ec42 100644 --- a/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html +++ b/app/views/record-vaccinations/pertussis/not-yet-16-weeks-pregnant-warning.html @@ -19,13 +19,12 @@ {% endif %} {% set panelHtml %} - {% set randomWeeks = (range(1, 15) | random) %}

{{ displayName }} is {% if fullWeeksPregnant is defined and fullWeeksPregnant is not none %} {{ fullWeeksPregnant | plural("week") }} {% else %} - {{ randomWeeks }} week{{ 's' if randomWeeks > 1 }} + 13 weeks {% endif %} {% if remainderDaysPregnant is defined and remainderDaysPregnant > 0 %} and {{ remainderDaysPregnant | plural("day") }}{% endif %} pregnant.

@@ -49,4 +48,3 @@ {% endblock %} - diff --git a/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html b/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html index 78371459..fbb55670 100644 --- a/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html +++ b/app/views/record-vaccinations/rsv/not-yet-28-weeks-pregnant-warning.html @@ -19,13 +19,12 @@ {% endif %} {% set panelHtml %} - {% set randomWeeks = (range(1, 27) | random) %}

{{ displayName }} is {% if fullWeeksPregnant is defined and fullWeeksPregnant is not none %} {{ fullWeeksPregnant | plural("week") }} {% else %} - {{ randomWeeks }} week{{ 's' if randomWeeks > 1 }} + 13 weeks {% endif %} {% if remainderDaysPregnant is defined and remainderDaysPregnant > 0 %} and {{ remainderDaysPregnant | plural("day") }}{% endif %} pregnant.

@@ -50,4 +49,3 @@ {% endblock %} -