<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT', 'HCPCS', 'CDT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %> <%= entry.description %> /> /> <% if entry.discharge_disposition.present? vset = oid_for_code(entry.discharge_disposition,field_oids["DISCHARGE_STATUS"], entry.record["bundle_id"]) if vset %> <% end %> <% end -%> <% if entry.respond_to?(:facility) && entry.facility.present? -%> <% if entry.facility.code.present? -%> <% vset = oid_for_code(entry.facility.code,field_oids["FACILITY_LOCATION"], entry.record["bundle_id"]) %> <% if vset %> <% else %> <% end %> <% else -%> <% end -%> <% if entry.facility.addresses.present? -%> <%= entry.facility.addresses.first.street %> <%= entry.facility.addresses.first.city %> <%= entry.facility.addresses.first.state %> <%= entry.facility.addresses.first.zip %> <%= entry.facility.addresses.first.country %> <% end -%> <%= entry.facility.name %> <% end -%> <% if entry.reason.present? -%> <%== render(:partial => 'reason', :locals => {:entry => entry,:reason_oids=>field_oids["REASON"]}) %> <% end -%> <% if entry.principalDiagnosis && field_oids["PRINCIPAL_DIAGNOSIS"] -%> <%== code_display(entry.principal_diagnosis, 'tag_name' => 'value', 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT'], 'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{field_oids["PRINCIPAL_DIAGNOSIS"].first}\"") %> <% end -%>