<% if (patient.medical_record_number && patient.medical_record_assigner) %> <% if cms_compatibility %> <% end %> <% else -%> <% end -%> <% if patient.addresses.present? patient.addresses.each do |address| -%> <%= address.street.join(' ') %> <%= address.city %> <%= address.state %> <%= address.zip %> <%= address.country %> <% end -%> <% else -%> 202 Burlington Rd. Bedford MA 01730 US <% end -%> <%= patient.first %> <%= patient.last %> <% if (patient.race) %> displayName="<%= patient.race['name'] %>"<% end %> codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/> <% end %> <% if (patient.ethnicity) %> displayName="<%= patient.ethnicity['name'] %>"<% end %> codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/> <% end %> <% languages = patient.languages languages = ["eng"] if languages.nil? or languages.empty? languages.each do |language|%> <% end %>