|
8 | 8 | <% content_for(:before_content) { f.govuk_error_summary } %> |
9 | 9 |
|
10 | 10 | <div class="nhsuk-card__content"> |
11 | | - <h2 class="nhsuk-card__heading nhsuk-heading-m"> |
12 | | - <%= patient.given_name %> has confirmed that they: |
13 | | - </h2> |
| 11 | + <section> |
| 12 | + <h2 class="nhsuk-card__heading nhsuk-heading-m"> |
| 13 | + Pre-screening checks |
| 14 | + </h2> |
14 | 15 |
|
15 | | - <%= f.govuk_check_boxes_fieldset :feeling_well, multiple: false, legend: nil do %> |
16 | | - <%= f.govuk_check_box :feeling_well, true, multiple: false, link_errors: true %> |
17 | | - <% end %> |
| 16 | + <p><%= patient.given_name %> has confirmed that they:</p> |
18 | 17 |
|
19 | | - <% if vaccinate_form.ask_not_pregnant? %> |
20 | | - <%= f.govuk_check_boxes_fieldset :not_pregnant, multiple: false, legend: nil do %> |
21 | | - <%= f.govuk_check_box :not_pregnant, true, multiple: false, link_errors: true %> |
22 | | - <% end %> |
23 | | - <% end %> |
| 18 | + <ul class="nhsuk-list nhsuk-list--bullet"> |
| 19 | + <li>are not acutely unwell</li> |
| 20 | + <% if vaccinate_form.ask_not_pregnant? %> |
| 21 | + <li>are not pregnant</li> |
| 22 | + <% end %> |
| 23 | + <% if vaccinate_form.ask_not_taking_medication? %> |
| 24 | + <li>are not taking any medication which prevents vaccination</li> |
| 25 | + <% end %> |
| 26 | + <li>have no allergies which would prevent vaccination</li> |
| 27 | + <li>have not already had this vaccination</li> |
| 28 | + <li>know what the vaccination is for, and are happy to have it</li> |
| 29 | + </ul> |
24 | 30 |
|
25 | | - <% if vaccinate_form.ask_not_taking_medication? %> |
26 | | - <%= f.govuk_check_boxes_fieldset :not_taking_medication, multiple: false, legend: nil do %> |
27 | | - <%= f.govuk_check_box :not_taking_medication, true, multiple: false, link_errors: true %> |
| 31 | + <%= f.govuk_check_boxes_fieldset :pre_screening_confirmed, multiple: false, legend: nil do %> |
| 32 | + <%= f.govuk_check_box :pre_screening_confirmed, 1, 0, multiple: false, link_errors: true, |
| 33 | + label: { text: "#{patient.given_name} has confirmed the above statements are true" } %> |
28 | 34 | <% end %> |
29 | | - <% end %> |
30 | | - |
31 | | - <%= f.govuk_check_boxes_fieldset :no_allergies, multiple: false, legend: nil do %> |
32 | | - <%= f.govuk_check_box :no_allergies, true, multiple: false, link_errors: true %> |
33 | | - <% end %> |
34 | 35 |
|
35 | | - <%= f.govuk_check_boxes_fieldset :not_already_had, multiple: false, legend: nil do %> |
36 | | - <%= f.govuk_check_box :not_already_had, true, multiple: false, link_errors: true %> |
37 | | - <% end %> |
38 | | - |
39 | | - <%= f.govuk_check_boxes_fieldset :knows_vaccination, multiple: false, legend: nil do %> |
40 | | - <%= f.govuk_check_box :knows_vaccination, true, multiple: false, link_errors: true %> |
41 | | - <% end %> |
42 | | - |
43 | | - <%= f.govuk_text_area :pre_screening_notes, label: { text: "Pre-screening notes (optional)" } %> |
| 36 | + <%= f.govuk_text_area :pre_screening_notes, label: { text: "Pre-screening notes (optional)" }, rows: 3 %> |
| 37 | + </section> |
44 | 38 |
|
45 | 39 | <hr class="nhsuk-section-break nhsuk-section-break--visible nhsuk-section-break--l"> |
46 | 40 |
|
47 | | - <h2 class="nhsuk-card__heading nhsuk-heading-m"> |
48 | | - Is <%= patient.given_name %> ready for their <%= programme.name %> vaccination? |
49 | | - </h2> |
| 41 | + <section> |
| 42 | + <h2 class="nhsuk-card__heading nhsuk-heading-m"> |
| 43 | + Is <%= patient.given_name %> ready for their <%= programme.name %> vaccination? |
| 44 | + </h2> |
| 45 | + |
| 46 | + <% hint = "Pre-screening checks must be completed for vaccination to go ahead" %> |
50 | 47 |
|
51 | | - <%= f.govuk_radio_buttons_fieldset :administered, legend: nil do %> |
52 | | - <% if common_delivery_sites_options.length > 1 %> |
53 | | - <%= f.govuk_radio_button :administered, true, label: { text: "Yes" }, link_errors: true do %> |
54 | | - <%= f.govuk_collection_radio_buttons :delivery_site, |
55 | | - common_delivery_sites_options, |
56 | | - :value, |
57 | | - :label, |
58 | | - legend: { |
59 | | - text: "Where will the injection be given?", |
60 | | - size: "s", |
61 | | - } %> |
| 48 | + <%= f.govuk_radio_buttons_fieldset :administered, legend: nil do %> |
| 49 | + <% if common_delivery_sites_options.length > 1 %> |
| 50 | + <%= f.govuk_radio_button :administered, true, label: { text: "Yes" }, hint: { text: hint }, link_errors: true do %> |
| 51 | + <%= f.govuk_collection_radio_buttons :delivery_site, |
| 52 | + common_delivery_sites_options, |
| 53 | + :value, |
| 54 | + :label, |
| 55 | + legend: { |
| 56 | + text: "Where will the injection be given?", |
| 57 | + size: "s", |
| 58 | + } %> |
| 59 | + <% end %> |
| 60 | + <% else %> |
| 61 | + <%= f.govuk_radio_button :administered, true, label: { text: "Yes" }, hint: { text: hint }, link_errors: true %> |
| 62 | + <%= f.hidden_field :delivery_site, value: common_delivery_sites_options.first.value %> |
62 | 63 | <% end %> |
63 | | - <% else %> |
64 | | - <%= f.govuk_radio_button :administered, true, label: { text: "Yes" }, link_errors: true %> |
65 | | - <%= f.hidden_field :delivery_site, value: common_delivery_sites_options.first.value %> |
| 64 | + <%= f.govuk_radio_button :administered, false, label: { text: "No" } %> |
66 | 65 | <% end %> |
67 | | - <%= f.govuk_radio_button :administered, false, label: { text: "No" } %> |
68 | | - <% end %> |
69 | 66 |
|
70 | | - <%= f.hidden_field :delivery_method, value: delivery_method %> |
71 | | - <%= f.hidden_field :dose_sequence, value: dose_sequence %> |
72 | | - <%= f.hidden_field :programme_id, value: programme.id %> |
| 67 | + <%= f.hidden_field :delivery_method, value: delivery_method %> |
| 68 | + <%= f.hidden_field :dose_sequence, value: dose_sequence %> |
| 69 | + <%= f.hidden_field :programme_id, value: programme.id %> |
73 | 70 |
|
74 | | - <%= f.govuk_submit "Continue" %> |
| 71 | + <%= f.govuk_submit "Continue" %> |
| 72 | + </section> |
75 | 73 | </div> |
76 | 74 | <% end %> |
0 commit comments