lib/generator/derived_data.js.erb in hqmf2js-1.3.0 vs lib/generator/derived_data.js.erb in hqmf2js-1.4.0
- old
+ new
@@ -1,5 +1,10 @@
var events = <%= criteria.derivation_operator %>(
<%- criteria.children_criteria.each_with_index do |child, index| -%>
<%= "hqmfjs.#{child}(patient, initialSpecificContext)" %><%= "," if index<criteria.children_criteria.length-1 %>
<%- end -%>
);
+ <%- if criteria.variable -%>
+ <%- if criteria.specific_occurrence -%>
+ events.specific_occurrence = '<%= criteria.source_data_criteria%>';
+ <%- end -%>
+ <%- end -%>