<%== code_display(entry, 'value_set_map' => value_set_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %> /> /> <%== code_display(entry, 'value_set_map' => value_set_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %> <%= entry.description %> /> <% ev = entry.values.first if ev.present? if ev.respond_to?(:codes) -%> <%== code_display(ev, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'], 'tag_name' => 'value', 'extra_content' => "xsi:type=\"CD\"") %> <% elsif ev.respond_to?(:scalar) -%> <% if is_num?(ev.scalar) -%> unit="<%= ev.units %>"<% end -%>/> <% elsif is_bool?(ev.scalar)%> <% else -%> <%= ev.scalar %> <% end end else -%> <% end -%>