lib/generator/characteristic.js.erb in hqmf2js-1.2.0 vs lib/generator/characteristic.js.erb in hqmf2js-1.2.1

- old
+ new

@@ -1,5 +1,5 @@ -var value = patient.<%= criteria.property %>(<%= js_for_date_bound(criteria) if criteria.property == :age %>); +var value = patient.<%= criteria.property %>(<%= js_for_date_bound(criteria) if criteria.property == :age %>) || null; <%- if criteria.property == :birthtime -%> var events = [value]; <%- if criteria.temporal_references -%> <%- criteria.temporal_references.each do |temporal_reference| -%> events = <%= temporal_reference.type %>(events, hqmfjs.<%= temporal_reference.reference.id %>(patient)<%= ", #{js_for_bounds(temporal_reference.range)}" if temporal_reference.range %>);