<% let url = g1.url.parse(window.location.href) %> <% options = $.extend({}, options, url.searchList) %> <% if(options['view'][0] == 'IN'){column = 'States'}else if(options['view'][0] == 'state' ){column = 'Districts'} else if(options['view'][0] == 'district'){column = 'Tbu'} else if(options['view'][0] == 'tbu' ||options['view'][0] == 'phi'){column = 'Health Facility'} %> <% if(options['map-level'][0] == 'district'){column='Districts'} %> <% if (url.directory.includes('/adherence/') && _.includes(['trends_but', 'monthtreat'], button_val)) { %>
<% if (options['adher_date'][0] == 'notif_cohort'){ %> <% } %> <% if (options['adher_date'][0] == 'notif_cohort'){ %> <% } else if (options['adher_date'][0] == 'cal_month'){ %> <% } %> <% _.forEach(data,function(val, key){ %> <% }) %>
<%- column %>
<%- options['trends_dd_val'][0] == 'monthtreat' ? 'Month into Treatment' : 'Notif. Cohort-' %> <%- $('.date-label-calendar').html() %>
Calender Cohort - <%- $('.date-label-calendar').html() %>
<%- toCamelCase(val[0]['location']) %>
<% setTimeout(function() { %> <% var criterion = def_sel == 'Total Patients' ? (options.adh_tab[0] == 'allPatients' ? 'tot_pat' : 'enroll_'+options.adh_tab[0]) : sub_dd_dict[def_sel] %> <% criterion = criterion == 'dots' ? '99dots' : criterion %> <% render_geotrend("#trend_"+key , val, criterion, button_val, options) %> <% }, 1000) %>
<% } else { %>
EFFICIENCY / BENEFITS PROCESSED WITHIN
<% if(options.map[0] == 'avg_benefit_creation'){ %> <% _.forEach(columns_all[options['map'][0]]["col"],function(each){ %> <% }) %> <% } else if(!options.map[0].startsWith('avg')){ %> <% _.forEach(columns_all[options['map'][0]]["col"],function(each){ %> <% }) %> <% } else { %> <% var colum = columns_all[options['map'][0]]["col"][0] %> <% _.forEach(columns_all[options['map'][0]]["col"],function(each){ %> <% each = each.trim() %> <% if(!(each.startsWith('Avg.'))) { %> <% if(each.includes('%')){ percent = '%'} else{ percent = ''} %> <% } %> <% }) %> <% } %> <% _.forEach(data,function(each){ %> <% delete each.location %> <% delete each.location_id %> <% delete each.state_name %> <% delete each.state_code %> <% delete each.parent %> <% delete each['% of Total Beneficiaries Eligible'] %> <% index = 0 %> <% _.forEach(each,function(row){ %> <% if(Object.keys(each)[index].includes('Percentage')){ percent = '%'} else{ percent = ''} %> <% if(isNaN(row.value) || !isFinite(row.value)){ row.value = 'NA', percent = Object.keys(each)[index].includes('Percentage') ? '%': '' }else{ row.value = Math.round(row.value)} %> <% index = index + 1 %> <% }) %> <% }) %>
<%- column %>
<%- (each) %>
<%- (each) %>
<%- (colum) %>
<%- (each) %>
<%- (each) %>
<%- toCamelCase(each.location.value) %>
<%- row.value.toLocaleString('en-IN')+(row.value != 'NA' ? percent: '') %>
<% } %> <% $(document).ready(function(){ %> <% $(".highliting-column[data-attr='>10d'], .highliting-column[data-attr='5d'], .highliting-column[data-attr='5d %'], .highliting-column[data-attr='>10d %']").attr('style', 'background-color: #f7f7f7') %> <% %> <% }) %>