<%= record.id%> <%= record.title %> <%= record.first %> <%= record.last %> <%= time_if_not_nil(record.birthdate) %> <%= time_if_not_nil(record.deathdate) %> <% if record.race %> <% end %> <% if record.ethnicity %> <% end %> <% record.languages.each do |l| %> <%=l%> <% end%> <% record.allergies.each do |a| %> <%== render partial: "allergy", locals: {allergy: a} %> <% end %> <% record.conditions.each do |c| %> <%== render partial: "condition", locals: {condition: c} %> <% end %> <% record.immunizations.each do |i| %> <%== render partial: "immunization", locals: {immunization: i} %> <% end %> <% record.insurance_providers.each do |ip| %> <%== render partial: "insurance_providers", locals: {insurance_provider: ip} %> <% end %> <% record.medical_equipment.each do |me| %> <%== render partial: "medical_equipment", locals: {medical_equipment: me} %> <% end %> <% record.medications.each do |m| %> <%== render partial: "medication", locals: {medication: m} %> <% end %> <% record.procedures.each do |pr| %> <%== render partial: "procedure", locals: {procedure: pr} %> <% end %> <% record.results.each do |r| %> <%== render partial: "result", locals: {result: r} %> <% end %> <% record.social_history.each do |sh| %> <%== render partial: "social_history", locals: {social_history: sh} %> <% end %> <% record.support.each do |s| %> <%== render partial: "support", locals: {support: s}%> <% end %> <% record.vital_signs.each do |vs| %> <%== render partial: "vital_sign", locals: {vital_sign: vs} %> <% end %>