lib/health-data-standards/models/transfer.rb in health-data-standards-3.6.1 vs lib/health-data-standards/models/transfer.rb in health-data-standards-3.7.0

- old
+ new

@@ -3,7 +3,12 @@ include Mongoid::Attributes::Dynamic include ThingWithCodes field :time, type: Integer - embedded_in :encounter, class_name: "Encounter" + embedded_in :encounter, class_name: "Encounter", inverse_of: nil + + def shift_dates(date_diff) + self.time = (self.time.nil?) ? nil : self.time + date_diff + end + end