<%= allergy.id%>
<%== code_display allergy, "tag_name" => "code", 'preferred_code_sets' => ['SNOMED-CT', "RxNorm", "FDA"] %>
<%= allergy.status%>
<%= allergy.free_text %>
<% if allergy.start_time || allergy.end_time %>
<%= time_if_not_nil(allergy.start_time) %>
<%= time_if_not_nil(allergy.end_time) %>
<% else %>
<%= time_if_not_nil(allergy.time) %>
<% end %>
<% if allergy.type %>
<%== code_display allergy, "tag_name" => "type", "attribute" => "type", 'preferred_code_sets' => ['RxNorm', 'SNOMED-CT'] %>
<% end %>
<% if allergy.reaction %>
<%== code_display allergy, "tag_name" => "reaction", "attribute" => "reaction", 'preferred_code_sets' => ['RxNorm', 'SNOMED-CT'] %>
<% end %>
<% if allergy.severity%>
<%== code_display allergy, "tag_name" => "severity", "attribute" => "severity", 'preferred_code_sets' => ['RxNorm', 'SNOMED-CT'] %>
<% end %>