Sha256: 9c0cffab19028b645b5fdc38a8fa72df3a1b95819cc607c03180c18af95b38e4
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 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.to_s.strip %>" <% if ev.units && (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 end # else is empty else -%> <value xsi:type="CD" nullFlavor="UNK"/> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
health-data-standards-3.2.12 | templates/cat1/_result_value.cat1.erb |