Sha256: b86985d523db6ddc6aa989936e942352c11e12f9e99818604d6ca429b8fd0071
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
var MeasurePeriod = { "low": <%= js_for_value(measure_period.low) %>, "high": <%= js_for_value(measure_period.high) %> } hqmfjs.MeasurePeriod = function(patient) { return [new hQuery.CodedEntry( { "start_time": MeasurePeriod.low.asDate().getTime()/1000, "end_time": MeasurePeriod.high.asDate().getTime()/1000, "codes": {} } )]; } if (typeof effective_date === 'number') { MeasurePeriod.high.date = new Date(1000*effective_date); MeasurePeriod.low.date = new Date(1000*effective_date); MeasurePeriod.low.date.setFullYear(MeasurePeriod.low.date.getFullYear()-1); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hqmf2js-1.1.0 | lib/generator/measure_period.js.erb |
hqmf2js-1.0.1 | lib/generator/measure_period.js.erb |
hqmf2js-1.0.0 | lib/generator/measure_period.js.erb |