File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed
app/views/reports/regions Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,4 @@ DISTRICT_FACILITY_TREND_REPORT_URL = "https://api.bd.simple.org/my_facilities/bp
88DISTRICT_DRUG_STOCK_REPORT_URL = "https://api.bd.simple.org/my_facilities/drug_stocks?facility_group="
99DISTRICT_METABASE_TITRATION_URL = "https://metabase.bd.simple.org/question/997-district-titration-trend?months=past9months&district_name="
1010DISTRICT_METABASE_BP_FUDGING_URL = "https://metabase.bd.simple.org/question/1000-01-district-report?state_name="
11+ DISTRICT_METABASE_SYSTOLIC_BP_URL = "https://metabase.bd.simple.org/question/1005-histogram-systolic-reading-for-all-bp-measures-in-past-3-months?district="
Original file line number Diff line number Diff line change @@ -70,3 +70,4 @@ DISTRICT_DRUG_STOCK_REPORT_URL = "https://api.example.com/my_facilities/drug_sto
7070DISTRICT_FACILITY_TREND_REPORT_URL = " https://api.example.com/my_facilities/bp_controlled?facility_group="
7171DISTRICT_METABASE_TITRATION_URL = " https://metabase.example.com/titration?district_name="
7272DISTRICT_METABASE_BP_FUDGING_URL = " https://metabase.example.com/bp_fudging?state_name="
73+ DISTRICT_METABASE_SYSTOLIC_BP_URL = " https://metabase.example.com/systolic?district_name="
Original file line number Diff line number Diff line change 3737 < div > ⚡ < a href ="<%= ENV . fetch ( 'DISTRICT_METABASE_BP_FUDGING_URL' , '' ) %> <%= @region . parent . name %> &district_name= <%= @region . name %> " target ="_blank ">
3838 Metabase: BP fudging report
3939 </ a > </ div >
40+ < div > ⚡ < a href ="<%= ENV . fetch ( 'DISTRICT_METABASE_SYSTOLIC_BP_URL' , '' ) %> <%= @region . name %> " target ="_blank ">
41+ Metabase: Systolic BP reading report
42+ </ a > </ div >
4043 </ div >
4144 <% end %>
4245<% end %>
Original file line number Diff line number Diff line change 9292 expect ( response . body ) . to include ( "Drug stock" )
9393 expect ( response . body ) . to include ( "Metabase: Titration report" )
9494 expect ( response . body ) . to include ( "Metabase: BP fudging report" )
95+ expect ( response . body ) . to include ( "Metabase: Systolic BP reading report" )
9596 expect ( response . body ) . to include ( "https://api.example.com/my_facilities/drug_stocks?facility_group=" )
9697 expect ( response . body ) . to include ( "https://api.example.com/my_facilities/bp_controlled?facility_group=" )
9798 expect ( response . body ) . to include ( "https://metabase.example.com/titration?district_name=" )
9899 expect ( response . body ) . to include ( "https://metabase.example.com/bp_fudging?state_name=" )
100+ expect ( response . body ) . to include ( "https://metabase.example.com/systolic?district_name=" )
99101 end
100102 end
101103 context "and the feature flag is disabled" do
106108 expect ( response . body ) . to_not include ( "District Drug sto_notck report" )
107109 expect ( response . body ) . to_not include ( "Metabase: Titration report" )
108110 expect ( response . body ) . to_not include ( "Metabase: BP fudging report" )
111+ expect ( response . body ) . to_not include ( "Metabase: Systolic BP reading report" )
109112 expect ( response . body ) . to_not include ( "https://api.example.com/my_facilities/drug_stocks?facility_group=" )
110113 expect ( response . body ) . to_not include ( "https://api.example.com/my_facilities/bp_controlled?facility_group=" )
111114 expect ( response . body ) . to_not include ( "https://metabase.example.com/titration?district_name=" )
112115 expect ( response . body ) . to_not include ( "https://metabase.example.com/bp_fudging?state_name=" )
116+ expect ( response . body ) . to_not include ( "https://metabase.example.com/systolic?district_name=" )
113117 end
114118 end
115119 end
You can’t perform that action at this time.
0 commit comments