Skip to content

Commit f0c8515

Browse files
authored
For Ethiopia change the wording to visits rather than patients (#5815)
Affects: - Comparison table title and tooltip at all levels - Footer notes at all levels **Story card:** [SIMPLEETH-26](https://rtsl.atlassian.net/browse/SIMPLEETH-26?search_id=ad88c9f4-2f56-4432-a83d-7c47199b3005&referrer=quick-find) ## Because ET request the wording of the title is changed from Follow-up patients to Follow-up visits. The word patients to visits but leaving existing wording intact. ## This addresses An issue in ET with the report being questioned. ## Test instructions Example: <img width="1392" height="240" alt="reg-fol" src="https://github.com/user-attachments/assets/1ca6a403-9c43-4035-97c2-33b0e36b4745" /> <img width="1425" height="282" alt="reg-fol-2" src="https://github.com/user-attachments/assets/87a4d6f8-f4de-4e9d-84ce-4209bf6c3840" /> - Ensure your instance is set to 'Ethiopia' - Navigate to BOTH HTN and DM pages at all levels Check the following 3 items: - Table column title is updated to state 'visits' - Table tooltip (item 2) states 'visits' - Footer details shows 'visits' **NOTE: At facility level the wording is 'Follow-up visits per user' but at all other levels its 'Follow-up visits'** <img width="688" height="200" alt="reg-fol-footer" src="https://github.com/user-attachments/assets/59dc65e3-c434-4e3a-a4f6-3f7d0ae39017" /> <img width="226" height="215" alt="reg-fol-tooltip" src="https://github.com/user-attachments/assets/f1658332-15a2-4191-b904-6c6cc872526c" /> This tooltip is just an example so you know what to look for, but it should say 'Follow-up visits'.
1 parent 18c64e2 commit f0c8515

10 files changed

Lines changed: 22 additions & 18 deletions

app/components/dashboard/diabetes/registrations_and_follow_ups_by_user_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<%= render Dashboard::Card::TitleComponent.new(title: "Patient registrations and follow-ups") do |c| %>
33
<% c.tooltip(
44
{ "Monthly registered patients" => t("registered_diabetes_patients_copy.monthly_registered_patients", region_name: region.name),
5-
"Follow-up patients per user" => t(:diabetes_follow_up_patients_copy, region_name: region.name) }) %>
5+
t(:follow_up_patients_per_user_label) => t(:diabetes_follow_up_patients_copy, region_name: region.name) }) %>
66
<% end %>
77

88
<div class="table-responsive-md">
@@ -28,7 +28,7 @@
2828

2929
<%= table.header("Total") %>
3030
<%= table.header("Monthly registered patients", colspan: 6) %>
31-
<%= table.header("Follow-up patients per user", colspan: 6) %>
31+
<%= table.header(t(:follow_up_patients_per_user_label), colspan: 6) %>
3232

3333
<%= table.sub_header("Users", sort_default: true, sort_method: :string) %>
3434
<%= table.sub_header("Registered patients") %>

app/components/dashboard/diabetes/registrations_and_follow_ups_table_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="card pr-md-3 pb-inside-avoid">
22
<%= render Dashboard::Card::TitleComponent.new(title: "Diabetes patient registrations and follow-ups") do |c| %>
33
<%= c.tooltip({ "Monthly registered patients" => t("registered_diabetes_patients_copy.monthly_registered_patients", region_name: region.name),
4-
"Follow-up patients" => t(:diabetes_follow_up_patients_copy, region_name: region.name) }) %>
4+
t(:follow_up_patients_label) => t(:diabetes_follow_up_patients_copy, region_name: region.name) }) %>
55
<% end %>
66
<div class="table-responsive">
77
<%= render Dashboard::Card::TableComponent.new(id: "diabetesRegistrationsAndFollowUpsTable") do |table| %>
@@ -23,7 +23,7 @@
2323

2424
<%= table.header("Totals", colspan: 2) %>
2525
<%= table.header("Monthly registered patients", colspan: 6) %>
26-
<%= table.header("Follow-up patients", colspan: 6) %>
26+
<%= table.header(t(:follow_up_patients_label), colspan: 6) %>
2727

2828
<%= table.sub_header(region.child_region_type.capitalize, sort_default: true, sort_method: :string) %>
2929
<%= table.sub_header("Registrations") %>

app/components/diabetes_registrations_and_follow_ups_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h3>
66
<%= render "definition_tooltip",
77
definitions: { "Monthly registered patients" => t("registered_diabetes_patients_copy.monthly_registered_patients", region_name: region.name),
8-
"Follow-up patients" => t(:diabetes_follow_up_patients_copy, region_name: region.name) } %>
8+
t(:follow_up_patients_label) => t(:diabetes_follow_up_patients_copy, region_name: region.name) } %>
99
</div>
1010
<div class="table-responsive-md">
1111
<table class="analytics-table table-compact">
@@ -34,7 +34,7 @@
3434
Monthly registered patients
3535
</th>
3636
<th colspan="6">
37-
Follow-up patients
37+
<%= t(:follow_up_patients_label) %>
3838
</th>
3939
</tr>
4040
<tr class="sorts" data-sort-method="thead">

app/components/registrations_and_follow_ups_component.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h3>
66
<%= render "definition_tooltip",
77
definitions: { "Monthly registered patients" => t("registered_patients_copy.monthly_registered_patients", region_name: region.name),
8-
"Follow-up patients" => t(:follow_up_patients_copy, region_name: region.name) } %>
8+
t(:follow_up_patients_label) => t(:follow_up_patients_copy, region_name: region.name) } %>
99
</div>
1010
<div class="table-responsive-md">
1111
<table class="analytics-table table-compact">
@@ -36,7 +36,7 @@
3636
Monthly registered patients
3737
</th>
3838
<th colspan="6">
39-
Follow-up patients
39+
<%= t(:follow_up_patients_label) %>
4040
</th>
4141
</tr>
4242
<tr class="sorts" data-sort-method="thead">

app/views/reports/regions/_details_footnotes.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
<div class="mb-24px">
5959
<p class="mb-8px fs-16px fw-bold c-grey-dark">
6060
<% if @region.facility_region? %>
61-
Follow-up patients per user
61+
<%= t(:follow_up_patients_per_user_label) %>
6262
<% else %>
63-
Follow-up patients
63+
<%= t(:follow_up_patients_label) %>
6464
<% end %>
6565
</p>
6666
<div class="pl-16px">

app/views/reports/regions/_diabetes_footnotes.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@
134134
<div class="mb-24px">
135135
<p class="mb-8px fs-16px fw-bold c-grey-dark">
136136
<% if @region.facility_region? %>
137-
Follow-up patients per user
137+
<%= t(:follow_up_patients_per_user_label) %>
138138
<% else %>
139-
Follow-up patients
139+
<%= t(:follow_up_patients_label) %>
140140
<% end %>
141141
</p>
142142
<div class="pl-16px">

app/views/reports/regions/_facility_details.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</h3>
66
<%= render "definition_tooltip",
77
definitions: { "Monthly registered patients" => t("registered_patients_copy.monthly_registered_patients", region_name: @region.name),
8-
"Follow-up patients per user" => t(:follow_up_patients_copy, region_name: @region.name) } %>
8+
t(:follow_up_patients_per_user_label) => t(:follow_up_patients_copy, region_name: @region.name) } %>
99
</div>
1010
<div class="table-responsive-md">
1111
<table class="analytics-table table-compact">
@@ -35,7 +35,7 @@
3535
</th>
3636
<% unless Flipper.enabled?(:hide_facility_follow_up_patients_per_user) %>
3737
<th colspan="6">
38-
Follow-up patients per user
38+
<%= t(:follow_up_patients_per_user_label) %>
3939
</th>
4040
<% end %>
4141
</tr>

app/views/reports/regions/_overview_footnotes.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@
112112
<div class="mb-24px">
113113
<p class="mb-8px fs-16px fw-bold c-grey-dark">
114114
<% if @region.facility_region? %>
115-
Follow-up patients per user
116-
<% else %>
117-
Follow-up patients
118-
<% end %>
115+
<%= t(:follow_up_patients_per_user_label) %>
116+
<% else %>
117+
<%= t(:follow_up_patients_label) %>
118+
<% end %>
119119
</p>
120120
<div class="pl-16px">
121121
<p class="mb-8px fs-14px c-grey-dark">

config/locales/en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ en:
188188
ltfu_denominator_copy: "Hypertension patients assigned to %{region_name}. Dead patients are excluded."
189189
diabetes_ltfu_denominator_copy: "Diabetes patients assigned to %{region_name}. Dead patients are excluded."
190190
follow_up_patients_copy: "Hypertension patients with a BP measure taken, a blood sugar taken, an appointment scheduled, or their medications refilled during a month in %{region_name}"
191+
follow_up_patients_label: "Follow-up patients"
192+
follow_up_patients_per_user_label: "Follow-up patients per user"
191193
diabetes_follow_up_patients_copy: "Diabetes patients with a BP measure taken, a blood sugar taken, an appointment scheduled, or their medications refilled during a month in %{region_name}"
192194
patients_under_care_copy: "Hypertension patients with a visit in the last 12 months."
193195
patients_bp_controlled_copy: "Hypertension patients with BP <140/90 at their last visit in the last 3 months (from patients enrolled more than 3 months ago)."

config/locales/en_ET.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ en-ET:
4949
small: "Health centers"
5050
medium: "Primary hospitals"
5151
large: "General/specialized hospitals"
52+
follow_up_patients_label: "Follow-up visits"
53+
follow_up_patients_per_user_label: "Follow-up visits per user"

0 commit comments

Comments
 (0)