Sha256: 851d304ed25bb27933f892d5835c3334d6f9bbfb8a25b9c94e12e915c5521129
Contents?: true
Size: 1.08 KB
Versions: 13
Compression:
Stored size: 1.08 KB
Contents
class Encounter < Entry field :admitType, type: Hash field :dischargeDisposition, type: Hash field :admitTime, type: Integer field :dischargeTime, type: Integer field :transferTo, type: Hash field :transferFrom, type: Hash embeds_one :facility embeds_one :reason, class_name: "Entry" belongs_to :performer, class_name: "Provider" alias :admit_time :admitTime alias :admit_time= :admitTime= alias :admit_type :admitType alias :admit_type= :admitType= alias :discharge_disposition :dischargeDisposition alias :discharge_disposition= :dischargeDisposition= alias :discharge_time :dischargeTime alias :discharge_time= :dischargeTime= alias :transfer_to :transferTo alias :transfer_to= :transferTo= alias :transfer_from :transferFrom alias :transfer_from= :transferFrom= def shift_dates(date_diff) super if self.facility self.facility.shift_dates(date_diff) end self.admitTime = (self.admitTime.nil?) ? nil : self.admitTime + date_diff self.dischargeTime = (self.dischargeTime.nil?) ? nil : self.dischargeTime + date_diff end end
Version data entries
13 entries across 13 versions & 1 rubygems