% if !measures.empty? %>
<% reporting_program = if measures.first.type == 'ep'
'PQRS_MU_INDIVIDUAL'
else
'HQR_EHR'
end -%>
<% if cms_compatibility %>
<% end %>
QRDA Incidence Report
<%== render :partial => 'record_target', :locals => {:patient => patient, :cms_compatibility => cms_compatibility} %>
<% if header %>
<%== render :partial=>"author", :collection=>header.authors %>
<%== render :partial=>"organization", :locals=>{organization: header.custodian.organization, tag_name: "representedCustodianOrganization"} %>
<% if cms_compatibility %>
<% end %>
<%== render :partial=>"id", :collection=>header.legal_authenticator.ids, :id=>"identifier" %>
<%== render :partial=>"address" , :collection=>header.legal_authenticator.addresses %>
<%== render :partial => "telecom", :collection => header.legal_authenticator.telecoms %>
<%= header.legal_authenticator.person.given %>
<%= header.legal_authenticator.person.family %>
<%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization, tag_name: "representedOrganization"} %>
<% else %>
<% if cms_compatibility %>
<% patient.provider_performances.each do |pp| -%>
<% pp.provider.cda_identifiers.each do |cda_id| -%>
<% if cda_id.root.eql?('2.16.840.1.113883.4.6') -%>
<% end -%>
<% end -%>
<% end -%>
<% else %>
<% end %>
202 Burlington Rd.
Bedford
MA
01730
US
Cypress
Cypress
<% if cms_compatibility && reporting_program == 'HQR_EHR' %>
<% else %>
<% end %>
Cypress Test Deck
202 Burlington Rd.
Bedford
MA
01730
US
<% if cms_compatibility %>
<% end %>
202 Burlington Rd.
Bedford
MA
01730
US
Henry
Seven
Cypress
<% end %>
<%== render :partial => 'providers', :locals => {:patient => patient} %>
<%== render :partial => 'measures', :locals => {:measures => measures, :patient => patient} %>
<%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date, :cms_compatibility => cms_compatibility} %>
<%== render :partial => 'patient_data', :locals => {:measures => measures, :patient => patient, :cms_compatibility => cms_compatibility, :qrda_version => qrda_version} %>
<% else %>
<% end %>