Sha256: b9883a0a9826bc1fd33b29b4eb07d41be1a31baf55f4fe2c5b8c725284185c0f

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

class Transfer
  include Mongoid::Document
  include Mongoid::Attributes::Dynamic
  include ThingWithCodes

  field :time, type: Integer 

  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
health-data-standards-3.7.0 lib/health-data-standards/models/transfer.rb