class Procedure < Entry field :site, type: Hash field :incisionTime, type: Integer, as: :incision_time field :ordinality, type: Hash field :source, type: Hash belongs_to :performer, class_name: "Provider" def shift_dates(date_diff) super self.incisionTime = self.incisionTime.nil? ? nil : self.incisionTime + date_diff end end