lib/health-data-standards/models/entry.rb in health-data-standards-3.1.1 vs lib/health-data-standards/models/entry.rb in health-data-standards-3.2.0

- old
+ new

@@ -196,6 +196,14 @@ entry_hash['specifics'] = specifics end entry_hash end + + + def shift_dates(date_diff) + self.start_time = self.start_time.nil? ? nil : (self.start_time + date_diff) + self.end_time = self.end_time.nil? ? nil : (self.end_time + date_diff) + self.time = self.time.nil? ? nil : (self.time + date_diff) + end + end \ No newline at end of file