Sha256: 621d5495134fb6964a4e291d51021952e35c94dfc0053ff8c049cae2036fa7ff

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

<% 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) -%>
<value xsi:type="PQ" value="<%= ev.scalar %>" <% if ev.units -%>unit="<%= ev.units %>"<% end -%>/>
<%     elsif is_bool?(ev.scalar)%>
<value xsi:type="BL" value="<%= ev.scalar %>" />
<%     else -%>
<value xsi:type="ST" ><%= ev.scalar %></value> 
<%     end 
     end
   else -%>
<value xsi:type="CD" nullFlavor="UNK"/>
<% end -%>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
health-data-standards-3.0.6 templates/cat1/_result_value.cat1.erb
health-data-standards-3.0.5 templates/cat1/_result_value.cat1.erb
health-data-standards-3.0.4 templates/cat1/_result_value.cat1.erb
health-data-standards-3.0.3 templates/cat1/_result_value.cat1.erb
qrda_generator-1.0.1 templates/_result_value.cat1.erb
qrda_generator-1.0.0 templates/_result_value.cat1.erb