lib/health-data-standards/models/medication.rb in health-data-standards-4.2.0 vs lib/health-data-standards/models/medication.rb in health-data-standards-4.3.0
- old
+ new
@@ -1,30 +1,38 @@
+# Medication is used for Medication, Immunization and Substance QDM types.
class Medication < Entry
# administrationTiming is the same as QDM5.3 frequency in Bonnie
field :administrationTiming, as: :administration_timing, type: Hash
field :freeTextSig, type: String
# QDM 5.0 disambiguates dose to be dosage and suppy. 'dose' here represents the QDM 5.0 'dosage'.
# Bonnie displays this as 'dosage'.
field :dose, type: Hash
+ field :setting, type: Hash
+ # Attribute deprecated for "Medication, Active", "Medication, Administered", "Immunization, Administered", "Substance, Administered", "Substance, Recommended" in QDM 5.4.
+ # Remains for "Medication, Dispensed", "Medication, Order", "Medication, Discharge", "Immunization, Order", "Substance, Order"
field :supply, type: Hash
field :refills, type: Hash
field :typeOfMedication, as: :type_of_medication, type: Hash
field :statusOfMedication, as: :status_of_medication, type: Hash
embeds_many :fulfillmentHistory, class_name: 'FulfillmentHistory'
embeds_many :orderInformation, class_name: 'OrderInformation'
field :route, type: Hash
field :anatomical_approach, type: Hash
+ field :dispenserIdentifier, as: :dispenser_identifier, type: Hash
field :doseRestriction, as: :dose_restriction, type: Hash
field :fulfillmentInstructions, as: :fulfillment_instructions, type: String
field :indication, type: Hash
field :productForm, as: :product_form, type: Hash
field :vehicle, type: Hash
field :reaction, type: Hash
field :deliveryMethod, as: :delivery_method, type: Hash
+ field :prescriberIdentifier, as: :prescriber_identifier, type: Hash
field :patientInstructions, as: :patient_instructions, type: String
field :doseIndicator, as: :dose_indicator, type: String
+ field :daysSupplied, as: :days_supplied, type: Hash
+ # In QDM 5.4: method not present on 'medication'. deprecated for 'substance' (particularly, 'Substance, Recommended')
field :method , type: Hash
field :active_datetime , type: Integer
field :signed_datetime , type: Integer
# This is used for Medicaton, Order. It is the total number of times a dose of a particular