1
+ <% return if discrepancies.blank? %>
2
+
3
+ <div class ="nhsuk-table__panel-with-heading-tab ">
4
+ < h3 class ="nhsuk-table__heading-tab ">
5
+ <%= pluralize ( discrepancies . count , "NHS number" ) %>
6
+ <%= discrepancies . count == 1 ? "was" : "were" %> updated
7
+ </ h3 >
8
+
9
+ < p >
10
+ <%= pluralize ( discrepancies . count , "incorrect NHS number" ) %>
11
+ updated with <%= discrepancies . count == 1 ? "that" : "those" %> found on Spine.
12
+ Update your original data source if necessary.
13
+ </ p >
14
+
15
+ <%= govuk_table ( html_attributes : { class : "nhsuk-table-responsive" } ) do |table | %>
16
+ <% table . with_head do |head | %>
17
+ <% head . with_row do |row | %>
18
+ <% row . with_cell ( text : "Child record" ) %>
19
+ <% row . with_cell ( text : "NHS number (upload)" ) %>
20
+ <% row . with_cell ( text : "NHS number (Spine)" ) %>
21
+ <% end %>
22
+ <% end %>
23
+
24
+ <% table . with_body do |body | %>
25
+ <% discrepancies . each do |changeset | %>
26
+ <% patient = changeset . patient %>
27
+
28
+ <% body . with_row do |row | %>
29
+ <% row . with_cell do %>
30
+ < span class ="nhsuk-table-responsive__heading "> Child record</ span >
31
+ < span >
32
+ <% if can_link_to? ( patient ) %>
33
+ <%= link_to patient . full_name , patient_path ( patient ) %>
34
+ <% else %>
35
+ <%= patient . full_name %>
36
+ <% end %>
37
+ </ span >
38
+ <% end %>
39
+
40
+ <% row . with_cell do %>
41
+ < span class ="nhsuk-table-responsive__heading "> Uploaded NHS number</ span >
42
+ <%= helpers . format_nhs_number ( changeset . uploaded_nhs_number ) %>
43
+ <% end %>
44
+
45
+ <% row . with_cell do %>
46
+ < span class ="nhsuk-table-responsive__heading "> PDS NHS number</ span >
47
+ <%= helpers . format_nhs_number ( changeset . pds_nhs_number ) %>
48
+ <% end %>
49
+ <% end %>
50
+ <% end %>
51
+ <% end %>
52
+ <% end %>
53
+ </ div >
0 commit comments