templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb in health-data-standards-3.3.0 vs templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb in health-data-standards-3.4.0
- old
+ new
@@ -1,14 +1,16 @@
-<% vals = entry.values || [nil]
- vals.each do |value| %>
+<% vals = entry.values.empty? ? [nil] : entry.values
+ vals.each do |value|
+ %>
<entry>
<observation classCode="OBS" moodCode="EVN" <%== negation_indicator(entry) %>>
<!-- Consolidation Assessment Scale Observation templateId -->
<templateId root="2.16.840.1.113883.10.20.22.4.69"/>
<!-- Risk Category Assessment -->
<templateId root="2.16.840.1.113883.10.20.24.3.69"/>
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
<%== code_display(entry, 'value_set_map' => value_set_map,'preferred_code_sets' => ['LOINC', 'SNOMED-CT'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
+ <text><%= entry.description %></text>
<statusCode code="completed"/>
<effectiveTime>
<low <%= value_or_null_flavor(entry.start_time) %>/>
<high <%= value_or_null_flavor(entry.end_time) %>/>
\ No newline at end of file