Sha256: 0c823e3bae76c111aacd02398464a373b03aba6bd6f056614728c1e474ca1761

Contents?: true

Size: 928 Bytes

Versions: 20

Compression:

Stored size: 928 Bytes

Contents

class FulfillmentHistory
  include Mongoid::Document
  
  field :prescriptionNumber, type: String
  field :dispenseDate, type: Integer
  field :quantityDispensed, type: Hash
  field :fillNumber, type: Integer
  field :fillStatus, type: String
  
  belongs_to :provider, class_name: "Provider"

  alias :prescription_number :prescriptionNumber
  alias :prescription_number= :prescriptionNumber=
  alias :dispense_date :dispenseDate
  alias :dispense_date= :dispenseDate=
  alias :quantity_dispensed :quantityDispensed
  alias :quantity_dispensed= :quantityDispensed=
  alias :fill_number :fillNumber
  alias :fill_number= :fillNumber=
  alias :fill_status :fillStatus
  alias :fill_status= :fillStatus=
  alias :prescription_number :prescriptionNumber
  alias :prescription_number= :prescriptionNumber=

  def shift_dates(date_diff)
    self.dispenseDate = (self.dispenseDate.nil?) ? nil : self.dispenseDate + 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/fulfillment_history.rb
health-data-standards-3.4.5 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.4.4 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.4.3 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.4.2 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.4.1 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.4.0 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.12 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.3.0 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.11 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.10 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.8 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.7 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.6 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.5 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.4 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.3 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.2 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.1 lib/health-data-standards/models/fulfillment_history.rb
health-data-standards-3.2.0 lib/health-data-standards/models/fulfillment_history.rb