Sha256: d27af071ef4acea6cd2fd017bc6ff26ad7d95c81371416b4fab8312a56de0712

Contents?: true

Size: 645 Bytes

Versions: 2

Compression:

Stored size: 645 Bytes

Contents

<%- if precondition.conjunction? -%>
<%- if indent>0 -%>
<%= "\n#{'  '*(indent+1)}#{conjunction_code_for(precondition)}('#{precondition.id}', patient, initialSpecificContext," -%>
<%- else -%>
<%= "#{conjunction_code_for(precondition)}('#{precondition.id}', patient, initialSpecificContext," -%>
<%- end -%>
<%- precondition.preconditions.each_with_index do |child, index| -%>
<%= "#{js_for_precondition(child, indent+1, context)}" -%>
<%= "," if index < precondition.preconditions.length-1 -%>
<%- end -%>
<%= "\n#{'  '*(indent+1)})" -%>
<%- else # !precondition.conjunction? -%>
<%= " hqmfjs.#{js_name(precondition.reference)}" -%>
<%- end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hqmf2js-1.4.0 lib/generator/precondition.js.erb
hqmf2js-1.3.0 lib/generator/precondition.js.erb