@@ -28,11 +28,6 @@ <h2 class="nhsuk-heading-m">Patient</h2>
2828 },
2929 actions: {
3030 items: [
31- {
32- href: "/vaccinate/patient",
33- text: "Change",
34- visuallyHiddenText: "patient"
35- }
3631 ]
3732 }
3833 },
@@ -45,37 +40,15 @@ <h2 class="nhsuk-heading-m">Patient</h2>
4540 },
4641 actions: {
4742 items: [
48- {
49- href: "/vaccinate/no-search-result",
50- text: "Change",
51- visuallyHiddenText: "date of birth"
52- }
53- ]
54- }
55- },
56- {
57- key: {
58- text: "Postcode"
59- },
60- value: {
61- text: data.postcode
62- },
63- actions: {
64- items: [
65- {
66- href: "/vaccinate/no-search-result",
67- text: "Change",
68- visuallyHiddenText: "postcode"
69- }
7043 ]
7144 }
7245 },
7346 {
7447 key: {
75- text: "NHS number "
48+ text: "Address "
7649 },
7750 value: {
78- text: data.nhsNumber
51+ html: "73 Roman Rd < br > Leeds < br > LS2 5ZN"
7952 },
8053 actions: {
8154 items: [
@@ -84,38 +57,28 @@ <h2 class="nhsuk-heading-m">Patient</h2>
8457 } if data.nhsNumber,
8558 {
8659 key: {
87- text: "Eligibility "
60+ text: "Postcode "
8861 },
8962 value: {
90- html: (( data.eligibility | join(" < br > ")) if (data.eligibility | isArray) else data.eligibility)
63+ text: data.postcode
9164 },
9265 actions: {
9366 items: [
94- {
95- href: "/vaccinate/eligibility",
96- text: "Change",
97- visuallyHiddenText: "eligibility"
98- }
9967 ]
10068 }
101- } if ( data.vaccine != "Pertussis") ,
69+ } if not data.nhsNumber ,
10270 {
10371 key: {
104- text: "Pregnancy due date "
72+ text: "NHS number "
10573 },
10674 value: {
107- text: ( data.pregnancyDueDate | isoDateFromDateInput | govukDate)
75+ text: data.nhsNumber
10876 },
10977 actions: {
11078 items: [
111- {
112- href: "/vaccinate/patient-estimated-due-date",
113- text: "Change",
114- visuallyHiddenText: "pregnancy due date"
115- }
11679 ]
11780 }
118- } if (( data.vaccine == "Pertussis") or (data.eligibility | arrayOrStringIncludes("Pregnant")))
81+ } if data.nhsNumber
11982 ]
12083 }) }}
12184
@@ -207,6 +170,40 @@ <h2 class="nhsuk-heading-m">Vaccination</h2>
207170 ]
208171 }
209172 },
173+ {
174+ key: {
175+ text: "Eligibility"
176+ },
177+ value: {
178+ html: ((data.eligibility | join("< br > ")) if (data.eligibility | isArray) else data.eligibility)
179+ },
180+ actions: {
181+ items: [
182+ {
183+ href: "/vaccinate/eligibility",
184+ text: "Change",
185+ visuallyHiddenText: "eligibility"
186+ }
187+ ]
188+ }
189+ } if (data.vaccine != "Pertussis"),
190+ {
191+ key: {
192+ text: "Pregnancy due date"
193+ },
194+ value: {
195+ text: (data.pregnancyDueDate | isoDateFromDateInput | govukDate)
196+ },
197+ actions: {
198+ items: [
199+ {
200+ href: "/vaccinate/patient-estimated-due-date",
201+ text: "Change",
202+ visuallyHiddenText: "pregnancy due date"
203+ }
204+ ]
205+ }
206+ } if ((data.vaccine == "Pertussis") or (data.eligibility | arrayOrStringIncludes("Pregnant"))),
210207 {
211208 key: {
212209 text: "Injection site"
0 commit comments