lib/health-data-standards/models/medication.rb in health-data-standards-3.1.1 vs lib/health-data-standards/models/medication.rb in health-data-standards-3.2.0
- old
+ new
@@ -45,6 +45,17 @@
alias :patient_instructions= :patientInstructions=
alias :dose_indicator :doseIndicator
alias :dose_indicator= :doseIndicator=
alias :cumulative_medication_duration :cumulativeMedicationDuration
alias :cumulative_medication_duration= :cumulativeMedicationDuration=
+
+ def shift_dates(date_diff)
+ super
+ self.fulfillmentHistory.each do |fh|
+ fh.shift_dates(date_diff)
+ end
+ self.orderInformation.each do |oi|
+ oi.shift_dates(date_diff)
+ end
+ end
+
end
\ No newline at end of file