templates/html/_header.html.erb in health-data-standards-2.1.2 vs templates/html/_header.html.erb in health-data-standards-2.1.3

- old
+ new

@@ -9,13 +9,25 @@ <td width="30%"><%= Time.at(patient.birthdate).utc.to_formatted_s(:long_ordinal)%></td> <td width="15%" bgcolor="#3399ff"><span class="td_label">Sex</span></td> <td><%= (patient.gender == 'M') ? "Male" : (patient.gender == 'F') ? 'Female' : 'Unknown'%></td> </tr> <tr> - <td bgcolor="#3399ff"><span class="td_label">Contact info</span></td> - <td> Pirmary Home:<br />202 Burlington Rd.<br />Bedford, MA 01730<br />Tel: +1-781-271-3000<br /></td> + <td width="20%" bgcolor="#3399ff"><span class="td_label">Race</span></td> + <td width="30%"><%= patient.race.nil? ? 'Unknown' : (patient.race['name'] ? patient.race['name'] : "CDC-RE: #{patient.race['code']}") %></td> + <td width="15%" bgcolor="#3399ff"><span class="td_label">Ethnicity</span></td> + <td><%= patient.ethnicity.nil? ? 'Unknown' : (patient.ethnicity['name'] ? patient.ethnicity['name'] : "CDC-RE: #{patient.ethnicity['code']}") %></td> + </tr> + <tr> + <td bgcolor="#3399ff"><span class="td_label">Insurance Providers</span></td> + <td> + <%= (patient.insurance_providers.map {|provider| provider.name }).join(", ") %> + </td> <td bgcolor="#3399ff"><span class="td_label">Patient IDs</span></td> - <td><%= patient.id %> Cypress<br /></td> + <td><%= patient.id %> Cypress</td> + </tr> + <tr> + <td bgcolor="#3399ff"><span class="td_label">Contact info</span></td> + <td colspan="3"> Pirmary Home: 202 Burlington Rd. Bedford, MA 01730<br />Tel: +1-781-271-3000</td> </tr> </tbody> </table> <table class="header_table"> <tbody>