Sha256: 9a85b65681a702ab0b809d3c85257d5d7bb86843fa900ca24fda25c61fd2e517

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

class Medication < Entry
  field :administrationTiming, type: Hash, as: 'administration_timing'
  field :freeTextSig, type: String, as: 'free_text_sig'
  field :dose, type: Hash
  field :brandName, type: String, as: 'brand_name'
  field :typeOfMedication, type: Hash, as: 'type_of_medication'
  field :statusOfMedication, type: Hash, as: 'status_of_medication'
  embeds_many :fulfillmentHistory, class_name: 'FulfillmentHistory'
  embeds_many :orderInformation, class_name: 'OrderInformation'
  field :route, type: Hash
  field :site, type: Hash
  field :doseRestriction, type: Hash, as: 'dose_restriction'
  field :fulfillmentInstructions, type: String, as: 'fulfillment_instructions'
  field :indication, type: Hash
  field :productForm, type: Hash, as: 'product_form'
  field :vehicle, type: Hash
  field :reaction, type: Hash
  field :deliveryMethod, type: Hash, as: 'delivery_method'
  field :patientInstructions, type: String, as: 'patient_instructions'
  
  alias :fulfillment_history :fulfillmentHistory
  alias :fulfillment_history= :fulfillmentHistory=
  alias :order_information :orderInformation
  alias :order_information= :orderInformation=
end

Version data entries

1 entries across 1 versions & 1 rubygems

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