<%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
QRDA Calculated Summary Report
<%== render :partial=>"author", :collection=>header.authors %>
<%== render :partial=>"organization", :locals=>{organization: header.custodian.organization, tag_name: "representedCustodianOrganization"} %>
<%== 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, tag_name: "representedOrganization"} %>
<%== render :partial=>"providers", :locals=>{providers: header.performers, start_date: start_date, end_date: end_date} %>
<%== 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.population_groups.each do |pg|
-%>
<%== render :partial => 'performance_rate', :locals => {:population_group => pg, :qrda3_version => qrda3_version} %>
<% end
end -%>
<% result.populations.each do |pop|
unless pop.type == 'OBSERV' -%>
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop, :qrda3_version => qrda3_version} %>
<% end
end -%>
<% end %>