Sha256: 551bc8031adb92bbdaee5b4f22269f99a26271c078eae9b3d141637188a72d58

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hqmf2js-1.2.1 lib/generator/precondition.js.erb
hqmf2js-1.2.0 lib/generator/precondition.js.erb