templates/_vital_signs.c32.erb in health-data-standards-0.7.1 vs templates/_vital_signs.c32.erb in health-data-standards-0.8.0

- old
+ new

@@ -31,10 +31,10 @@ <%== code_display(entry, {'preferred_code_sets' => ['LOINC']}) %> <text> <reference value="vitals-desc-<%= i %>"/> </text> <statusCode code="completed"/> - <effectiveTime value="<%= Time.at(entry.time).utc.to_formatted_s(:number) %>"/> + <effectiveTime <%= value_or_null_flavor(entry.as_point_in_time) %>/> <% if entry.value -%> <value xsi:type="PQ" value="<%= entry.value["scalar"] %>" <% if entry.value["units"]-%>unit="<%= entry.value["units"] %>"<% end -%>/> <% else -%> <value xsi:type="PQ" nullFlavor="UNK"/> <% end -%> \ No newline at end of file