Sha256: ed730369ead3d35db62a3741457f0d3d652e5e7765d2d84600f72e2fa4eddaf0

Contents?: true

Size: 1.08 KB

Versions: 64

Compression:

Stored size: 1.08 KB

Contents

<% values.compact!
   if !values.empty?
      values.each do |ev| 
	     if ev.respond_to?(:codes) 
        extra_content = 'xsi:type="CD"'
        if defined? result_oids
          preferred_code = ev.preferred_code(['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'])
          oid = oid_for_code(preferred_code,result_oids, ev.entry.record["bundle_id"])
          if oid
            extra_content += " sdtc:valueSet='#{oid}'"
          end
        end
        -%>
	<%== code_display(ev, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'], 'tag_name' => 'value', 'extra_content' => extra_content) %>
	<%   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

64 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.3.0 templates/cat1/r3/_result_value.cat1.erb
health-data-standards-4.3.0 templates/cat1/r4/_result_value.cat1.erb
health-data-standards-4.3.0 templates/cat1/r3_1/_result_value.cat1.erb
health-data-standards-4.3.0 templates/cat1/r2/_result_value.cat1.erb
health-data-standards-4.2.0 templates/cat1/r3/_result_value.cat1.erb
health-data-standards-4.2.0 templates/cat1/r4/_result_value.cat1.erb
health-data-standards-4.2.0 templates/cat1/r3_1/_result_value.cat1.erb
health-data-standards-4.2.0 templates/cat1/r2/_result_value.cat1.erb
health-data-standards-4.1.0 templates/cat1/r2/_result_value.cat1.erb
health-data-standards-4.1.0 templates/cat1/r3/_result_value.cat1.erb
health-data-standards-4.1.0 templates/cat1/r3_1/_result_value.cat1.erb
health-data-standards-4.1.0 templates/cat1/r4/_result_value.cat1.erb
health-data-standards-4.0.6 templates/cat1/r2/_result_value.cat1.erb
health-data-standards-4.0.6 templates/cat1/r4/_result_value.cat1.erb
health-data-standards-4.0.6 templates/cat1/r3_1/_result_value.cat1.erb
health-data-standards-4.0.6 templates/cat1/r3/_result_value.cat1.erb
health-data-standards-4.0.5 templates/cat1/r3/_result_value.cat1.erb
health-data-standards-4.0.5 templates/cat1/r4/_result_value.cat1.erb
health-data-standards-4.0.5 templates/cat1/r3_1/_result_value.cat1.erb
health-data-standards-4.0.5 templates/cat1/r2/_result_value.cat1.erb