lib/health-data-standards/models/medication.rb in health-data-standards-1.0.1 vs lib/health-data-standards/models/medication.rb in health-data-standards-2.0.0

- old
+ new

@@ -16,10 +16,14 @@ field :vehicle, type: Hash field :reaction, type: Hash field :deliveryMethod, type: Hash field :patientInstructions, type: String field :doseIndicator, type: String + + # There are currently no importers that support this field + # It is expected to be a scalar and value, such as 7 days + field :cumulativeMedicationDuration, type: Hash alias :administration_timing :administrationTiming alias :administration_timing= :administrationTiming= alias :type_of_medication :typeOfMedication alias :type_of_medication= :typeOfMedication= @@ -39,6 +43,8 @@ alias :delivery_method= :deliveryMethod= alias :patient_instructions :patientInstructions alias :patient_instructions= :patientInstructions= alias :dose_indicator :doseIndicator alias :dose_indicator= :doseIndicator= + alias :cumulative_medication_duration :cumulativeMedicationDuration + alias :cumulative_medication_duration= :cumulativeMedicationDuration= end \ No newline at end of file