lib/health-data-standards/models/guarantor.rb in health-data-standards-3.1.1 vs lib/health-data-standards/models/guarantor.rb in health-data-standards-3.2.0
- old
+ new
@@ -6,6 +6,11 @@
field :time, type: Integer
field :start_time, type: Integer
field :end_time, type: Integer
+
+ 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
+ end
end
\ No newline at end of file