Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="/FusionCharts/FusionCharts.js" type="text/javascript"></script>
- <div id="whyadd_explanation" style="display:none">
- <h1>
- Why Add This Provider?
- </h1>
- <p>By adding your providers you gain a number of advantages. First and foremost you can then use this provider when managing your bills in the bill management section. Secondly, with our new
- activity feeds you are now instantly notified when there are new comments and ratings on your providers, as well as notified about who else is using this provider. </p>
- <p>In the future you will be able to find out how your provider is related to other providers, health issues, prescriptions, and insurances. So go ahead and add your provider now!</p>
- </div>
- <h1 class="profile">
- <div class="left">
- <%= @medical_provider.name %>
- </div>
- <% unless logged_in? && current_user.my_provider?(@medical_provider)%>
- <div id="add_to_my_background">
- <%= link_to 'Add to My Providers', {:controller => 'providers', :action => 'new', :id => @medical_provider.id}, :class => 'protected' %><br /><small><%= link_to_function 'Why? Learn More.', "new Lightbox.base('whyadd_explanation');" %></small>
- </div>
- <% end %>
- <div class="clear"></div>
- </h1>
- <div id="profile_information">
- <div class="profile_general">
- <ul>
- <li><%= image_tag '/newimages/provider_profile_icon.png' %></li>
- <li><div class="comment_badge"><a href="#comments"><%= @medical_provider.comments.count %></a><br /><small><a href="#comments">Comments</a></small></div></li>
- <li>
- <div class="rating_badge">
- <% if logged_in? %>
- <% if @survey_result %>
- <% if @survey_result.score_sample_size > 0 %>
- <%= number_with_precision(@survey_result.score, 0) %>
- <% else %>
- ?
- <% end %>
- <% end %>
- <% else %>
- ?
- <% end %>
- <br /><small>Rating</small>
- </div>
- </li>
- <li>
- <div id="survey_area"></div>
- <% if logged_in? %><p><%= link_to_remote 'Rate Provider', :update => { :success => 'survey_area' },
- :url => { :action => 'show', :controller => 'provider_survey', :survey_id => @survey.id.to_s, :subject_id => @medical_provider.id.to_s,:subject_type => 'MedicalProvider' },
- :complete => "new Lightbox.base('survey_area', { before : function(){ }, after : function(){ } } );" -%><br /><%= link_to_remote 'View Details',
- :update => { :success => 'survey_area' },
- :url => { :action => 'results', :controller => 'provider_survey', :survey_id => @survey.id.to_s, :subject_id => @medical_provider.id.to_s,:subject_type => 'MedicalProvider' },
- :complete => "new Lightbox.base('survey_area', { before : function(){ }, after : function(){ } } );" -%></p><% else %><p>Login to<br /> view rating.</p><% end %></li>
- </ul>
- <div class="basic_info">
- <p>
- <strong><%= @medical_provider.type %></strong>
- <br />
- <% if @is_physician %>
- <%= @medical_provider.actual_provider.specialty %>, <%= @medical_provider.actual_provider.primary_specialty %>, <%= @medical_provider.actual_provider.secondary_specialty %>
- <% end %>
- </p>
- <p><%= @medical_provider.address %><br />
- <%= @medical_provider.city %>, <%= @medical_provider.state %> <br />
- <%= @medical_provider.zipcode %> - <% if @have_location%>
- <strong><%= link_to('Map It!', {:controller => 'medical_providers', :action => 'show', :view => 'map', :id => @medical_provider.id}) %></strong>
- <% else %>
- <% end %>
- <br />
- <%= @medical_provider.telephone %></p>
- </div>
- </div>
- <div id="shared_arrow"></div>
- <div id="shared_connections">
- <%= image_tag '/newimages/coming_soon.png' %>
- </div>
- <div class="clear"></div>
- </div>
- <div class="clear"></div>
- <% unless @is_pharmacy %>
- <div class="chart_background">
- <div class="provider_toggle">
- <h3>Inpatient Graphs</h3>
- <ul class="provider_options">
- <% if @is_hospital %>
- <li><a href="#" onclick="Effect.Appear('inpatient_volume_chart', {to: 1.000001}); Effect.Fade('inpatient_cost_chart', {duration: 0});Effect.Fade('outpatient_volume_chart', {duration: 0});Effect.Fade('outpatient_cost_chart', {duration: 0});return false;">Top 5 Health Issues by Volume</a></li>
- <% end %>
- <% if @is_hospital || @is_physician %>
- <li><a href="#" onclick="Effect.Appear('inpatient_cost_chart', {to: 1.000001}); Effect.Fade('inpatient_volume_chart', {duration: 0});Effect.Fade('outpatient_volume_chart', {duration: 0});Effect.Fade('outpatient_cost_chart', {duration: 0});return false;">Average Cost of top 5 <% if @is_hospital %>Health Issues<% end %><% if @is_physician %>Procedures<% end %></a></li>
- <% end %>
- </ul>
- <h3>Outpatient Graphs</h3>
- <ul class="provider_options">
- <% if @is_hospital %>
- <li><a href="#" onclick="Effect.Appear('outpatient_volume_chart', {to: 1.000001}); Effect.Fade('inpatient_volume_chart', {duration: 0});Effect.Fade('inpatient_cost_chart', {duration: 0});Effect.Fade('outpatient_cost_chart', {duration: 0});return false;">Top 5 Health Issues by Volume</a></li>
- <% end %>
- <% if @is_hospital || @is_physician %>
- <li><a href="#" onclick="Effect.Appear('outpatient_cost_chart', {to: 1.000001}); Effect.Fade('inpatient_volume_chart', {duration: 0});Effect.Fade('inpatient_cost_chart', {duration: 0});Effect.Fade('outpatient_volume_chart', {duration: 0});return false;">Average Cost of top 5 <% if @is_hospital %>Health Issues<% end %><% if @is_physician %>Procedures<% end %></a></li>
- <% end %>
- </ul>
- </div>
- <div id='inpatient_volume_chart' <% if @is_physician%>style="display:none"<%end%>>
- <% if @inpatient_volume_chart %>
- <h2>Top 5 Inpatient Health Issues by Volume</h2>
- <div class="provider_graph" >
- <script type="text/javascript">
- var style_inpatient_volume_chart = "<styles><definition><style name='ValuesFontStyle' type='font' face='Arial' size='14' color='32363f' bold='1' /></definition><application><apply toObject='Datavalues' styles='ValuesFontStyle' /></application></styles>";
- </script>
- <%= @inpatient_volume_chart%>
- </div>
- <% else %>
- <%= image_tag('/newimages/empty_provider_graph.png') %>
- <% end %>
- </div>
- <div id='outpatient_volume_chart' style="display:none">
- <% if @outpatient_volume_chart %>
- <h2>Top 5 Outpatient Health Issues by Volume</h2>
- <div class="provider_graph">
- <script type="text/javascript">
- var style_outpatient_volume_chart = "<styles><definition><style name='ValuesFontStyle' type='font' face='Arial' size='14' color='32363f' bold='1' /></definition><application><apply toObject='Datavalues' styles='ValuesFontStyle' /></application></styles>";
- </script>
- <%= @outpatient_volume_chart%>
- </div>
- <% else %>
- <%= image_tag('/newimages/empty_provider_graph.png') %>
- <% end %>
- </div>
- <div id='inpatient_cost_chart' style="display:none">
- <% if @inpatient_cost_chart %>
- <h2>Average Cost for Top 5 Inpatient <% if @is_hospital %>Health Issues<% end %><% if @is_physician %>Procedures<% end %></h2>
- <div class="provider_graph">
- <script type="text/javascript">
- var style_inpatient_cost_chart = "<styles><definition><style name='ValuesFontStyle' type='font' face='Arial' size='14' color='32363f' bold='1' /></definition><application><apply toObject='Datavalues' styles='ValuesFontStyle' /></application></styles>";
- </script>
- <%= @inpatient_cost_chart%>
- </div>
- <% else %>
- <%= image_tag('/newimages/empty_provider_graph.png') %>
- <% end %>
- </div>
- <div id='outpatient_cost_chart' <% if @is_hospital%>style="display:none"<%end%>>
- <% if @outpatient_cost_chart %>
- <h2>Average Cost for Top 5 Outpatient <% if @is_hospital %>Health Issues<% end %><% if @is_physician %>Procedures<% end %></h2>
- <div class="provider_graph">
- <script type="text/javascript">
- var style_outpatient_cost_chart = "<styles><definition><style name='ValuesFontStyle' type='font' face='Arial' size='14' color='32363f' bold='1' /></definition><application><apply toObject='Datavalues' styles='ValuesFontStyle' /></application></styles>";
- </script>
- <%= @outpatient_cost_chart%>
- </div>
- <% else %>
- <%= image_tag('/newimages/empty_provider_graph.png') %>
- <% end %>
- </div>
- <div class="clear"></div>
- </div>
- <% end %>
- <div class="clear"></div>
- <%= comments_for(@medical_provider) %>
- <% if @show_cost_percentage %>
- <h2>Provider Cost Graph</h2>
- <script type="text/javascript">
- var style_pay_compare_chart = "";
- </script>
- <%= @pay_compare_chart%><br>
- <% end %>
Add Comment
Please, Sign In to add comment