Sha256: ac2fc74a2dad7932bf4049d52cdff966505158589d0224f7654a5ce1e72a0a8d
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
var value = patient.<%= criteria.property %>(<%= js_for_date_bound(criteria) if criteria.property == :age %>); <%- 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=Specifics.identity(); return events; <%- elsif criteria.property == :expired or criteria.property == :clinicalTrialParticipant -%> matching = matchingValue(value, 'true'); matching.specificContext=Specifics.identity(); return matching <%- else -%> matching = matchingValue(value, <%= js_for_bounds(criteria.value) %>); matching.specificContext=Specifics.identity(); return matching; <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hqmf2js-1.0.1 | lib/generator/characteristic.js.erb |
hqmf2js-1.0.0 | lib/generator/characteristic.js.erb |