Sha256: 98d80d4af893be07258230ceb2f1822f0e8954963398f9b1b25bcdba2a4f2160
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
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 %>); <%- end -%> <%- end -%> events.specificContext=hqmf.SpecificsManager.identity(); return events; <%- elsif criteria.property == :expired or criteria.property == :clinicalTrialParticipant -%> matching = matchingValue(value, 'true'); matching.specificContext=hqmf.SpecificsManager.identity(); return matching <%- else -%> matching = matchingValue(value, <%= js_for_bounds(criteria.value) %>); matching.specificContext=hqmf.SpecificsManager.identity(); return matching; <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hqmf2js-1.2.1 | lib/generator/characteristic.js.erb |