<%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
QRDA Calculated Summary Report
<%== render :partial=>"author", :collection=>header.authors %>
<%== render :partial=>"id", :collection=>header.custodian.organization.ids, :id=>"identifier" %>
<%== render :partial=>"organization", :locals=>{organization: header.custodian.organization} %>
<%== render :partial=>"id", :collection=>header.legal_authenticator.ids, :id=>"identifier" %>
<%== render :partial=>"address" , :collection=>header.legal_authenticator.addresses %>
<%= header.legal_authenticator.person.given %>
<%= header.legal_authenticator.person.family %>
<%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization} %>
<%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
Measure Section
<% measures.each do |measure| %>
<%= measure['name'] %>
<% result = results[measure['hqmf_id']]
unless result.is_cv? || result.multiple_population_types?
-%>
<%== render :partial => 'performance_rate', :locals => {:aggregate_count => result} %>
<% end -%>
<% result.top_level_populations.each do |pop|
unless pop.type == 'OBSERV' -%>
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population_type => pop.type, :population_id => pop.id} %>
<% end
end -%>
<% end %>