Sha256: 71ee5e410d5c07c806d7b3b9546fc6a9a4fe852bd0769235f25c9e2e46a0245e

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

class Medication < Entry
  field :administrationTiming, type: Hash
  field :freeTextSig, type: String
  field :dose, type: Hash
  field :typeOfMedication, type: Hash
  field :statusOfMedication, type: Hash
  embeds_many :fulfillmentHistory, class_name: 'FulfillmentHistory'
  embeds_many :orderInformation, class_name: 'OrderInformation'

  field :route, type: Hash
  field :site, type: Hash
  field :doseRestriction, type: Hash
  field :fulfillmentInstructions, type: String
  field :indication, type: Hash
  field :productForm, type: Hash
  field :vehicle, type: Hash
  field :reaction, type: Hash
  field :deliveryMethod, type: Hash
  field :patientInstructions, type: String
  field :doseIndicator, type: String
  
  alias :administration_timing :administrationTiming
  alias :administration_timing= :administrationTiming=
  alias :type_of_medication :typeOfMedication
  alias :type_of_medication= :typeOfMedication=
  alias :status_of_medication :statusOfMedication
  alias :status_of_medication= :statusOfMedication=
  alias :fulfillment_history :fulfillmentHistory
  alias :fulfillment_history= :fulfillmentHistory=
  alias :order_information :orderInformation
  alias :order_information= :orderInformation=
  alias :dose_restriction :doseRestriction
  alias :dose_restriction= :doseRestriction=
  alias :fulfillment_instructions :fulfillmentInstructions
  alias :fulfillment_instructions= :fulfillmentInstructions=
  alias :product_form :productForm
  alias :product_form= :productForm=
  alias :delivery_method :deliveryMethod
  alias :delivery_method= :deliveryMethod=
  alias :patient_instructions :patientInstructions
  alias :patient_instructions= :patientInstructions=
  alias :dose_indicator :doseIndicator
  alias :dose_indicator= :doseIndicator=
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
health-data-standards-1.0.1 lib/health-data-standards/models/medication.rb
health-data-standards-1.0.0 lib/health-data-standards/models/medication.rb