> <%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], '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 value_set = oid_for_code(entry.principal_diagnosis.preferred_code, field_oids["PRINCIPAL_DIAGNOSIS"], entry.record["bundle_id"]) if value_set %> <%== 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=\"#{value_set}\"") %> <% end %> <% end -%> <% if entry.diagnosis value_set = oid_for_code(entry.diagnosis.preferred_code, field_oids["DIAGNOSIS"], entry.record["bundle_id"]) if value_set %> /> /> <%== code_display(entry.diagnosis, 'tag_name' => 'value', 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT'], 'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set}\"") %> <% end %> <% end -%> <%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"], :r2_compatibility => r2_compatibility}) %>