Sha256: 5b3eb922a18723c6f4284788cd71d2d511d1fe80b5e660256e8812024ace5675
Contents?: true
Size: 724 Bytes
Versions: 4
Compression:
Stored size: 724 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); // add one minute before pulling off the year. This turns 12-31-2012 23:59 into 1-1-2013 00:00 => 1-1-2012 00:00 MeasurePeriod.low.date = new Date(1000*(effective_date+60)); MeasurePeriod.low.date.setFullYear(MeasurePeriod.low.date.getFullYear()-1); }
Version data entries
4 entries across 4 versions & 1 rubygems