Sha256: 3b501d71923413a6e615d033095dba08d06c79d466feb90c044a3ba84bdf7c1d

Contents?: true

Size: 367 Bytes

Versions: 20

Compression:

Stored size: 367 Bytes

Contents

class ProviderPerformance
  include Mongoid::Document
  
  field :start_date, type: Integer
  field :end_date, type: Integer
  
  belongs_to :provider
  embedded_in :record
  

  def shift_dates(date_diff)
    self.start_date = self.start_date.nil? ? nil : self.start_date + date_diff
    self.end_date = self.end_date.nil? ? nil : self.end_date + date_diff
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
health-data-standards-3.4.6 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.5 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.4 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.3 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.2 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.1 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.4.0 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.12 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.3.0 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.11 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.10 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.8 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.7 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.6 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.5 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.4 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.3 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.2 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.1 lib/health-data-standards/models/provider_performance.rb
health-data-standards-3.2.0 lib/health-data-standards/models/provider_performance.rb