lib/generator/patient_data.js.erb in hqmf2js-1.3.0 vs lib/generator/patient_data.js.erb in hqmf2js-1.4.0
- old
+ new
@@ -12,10 +12,10 @@
<%- stopExp = js_for_value(criteria.effective_time.high) -%>
<%- stop = stopExp+'.asDate()' if stopExp != 'null' -%>
<%- end -%>
var eventCriteria = {"type": "<%= eventType %>"<%- -%>
<%= ", \"statuses\": #{statuses}" if statuses %> <%- -%>
-<%= ", \"includeEventsWithoutStatus\": #{includeEventsWithoutStatus}" if includeEventsWithoutStatus %> <%- -%>
+<%= ", \"includeEventsWithoutStatus\": #{includeEventsWithoutStatus}" unless includeEventsWithoutStatus.nil? %> <%- -%>
<%= ", \"negated\": #{criteria.negation}" if criteria.negation %> <%- -%>
<%= ", \"negationValueSetId\": \"#{negationValueSetId}\"" if criteria.negation && negationValueSetId %> <%- -%>
<%= ", \"valueSetId\": \"#{valueSetId}\"" if valueSetId %> <%- -%>
<%= ", \"valueSet\": #{valueSet}" if valueSet %> <%- -%>
<%= ", \"start\": #{start}" if start %> <%- -%>