Patient | <%= patient.first%> <%= patient.last%> | Sex | <%= (patient.gender == 'M') ? "Male" : (patient.gender == 'F') ? 'Female' : 'Unknown'%> |
Date of birth | <%= Time.at(patient.birthdate).utc.to_formatted_s(:long_ordinal)%> | Date of expiration | <%= (patient.expired) ? Time.at(patient.deathdate).utc.to_formatted_s(:long_ordinal) : "" %> |
Race | <%= patient.race.nil? ? 'Unknown' : (patient.race['name'] ? patient.race['name'] : "CDC-RE: #{patient.race['code']}") %> | Ethnicity | <%= patient.ethnicity.nil? ? 'Unknown' : (patient.ethnicity['name'] ? patient.ethnicity['name'] : "CDC-RE: #{patient.ethnicity['code']}") %> |
Insurance Providers | <%= (patient.insurance_providers.map {|provider| provider.name }).join(", ") %> | Patient IDs | <%= patient.id %> Cypress |
Contact info |
<% if patient.addresses %>
<% patient.addresses.each do |addr| %>
<% addr.street.each do |street| %>
<%= "#{street}," %>
<% end %>
<%= "#{addr.city}, #{addr.state}, #{addr.zip}." %>
<% if addr.use %>
(<%= addr.use %>)
<% end %>
<% end %> <% end %> <% if patient.telecoms %> <% patient.telecoms.each do |telecom| %> <%= telecom.value %> <% if telecom.use %> (<%= telecom.use %>) <% end %> <% end %> <% end %> |
Document Id | <%= patient.id %> 2.16.840.1.113883.3.72 |
Document Created: | <%= Time.now.utc.to_formatted_s(:long_ordinal)%> |
Author | Auto Generated |
Contact info |
Tel: +1-781-271-3000 |
Document maintained by | Cypress |
Contact info | 202 Burlington Rd. Bedford, MA 01730 Tel: +1-781-271-3000 |