<% # get the pateint id , treate it as a hex number, turn it to a string and strip the last 9 characters off of it hic = patient.id.to_s.hex.to_s hic = hic.slice(hic.length-9,9) %> 202 Burlington Rd. Bedford MA 01730 US <%= 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.race) %> 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 %>