Sha256: 6cbbd08eb7bdbb79b948eac1b37bdc0f9b2dc05bdf3bd7b66f125b994b779aed
Contents?: true
Size: 753 Bytes
Versions: 8
Compression:
Stored size: 753 Bytes
Contents
<% values.compact! if !values.empty? values.each do |ev| 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) -%> <value xsi:type="PQ" value="<%= ev.scalar %>" <% if ev.units && (ev.units != "") -%>unit="<%= ev.units %>"<% else -%>unit="1"<% end -%>/> <% elsif is_bool?(ev.scalar)%> <value xsi:type="BL" value="<%= ev.scalar %>" /> <% else -%> <value xsi:type="ST" ><%= ev.scalar %></value> <% end end end # else is empty else -%> <value xsi:type="CD" nullFlavor="UNK"/> <% end -%>
Version data entries
8 entries across 8 versions & 1 rubygems