Class: Renalware::Medications::Delivery::EventPrescription
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Medications::Delivery::EventPrescription
- Defined in:
- app/models/renalware/medications/delivery/event_prescription.rb
Overview
Represents a prescription associated with for example a home_delivery print event. Usually creating a home delivery prescriptions print event will mean we create a row for drug types esa, immunosupressant or both. In the future other drug types may be associated with the printing of prescriptions for a particular provider, so while this approach seems a bit overkill, being normalised like this (as opposed to just say storing the drug type ids or their codes in an array on medication_delivery_events) is more flexible and also provides more scope for reporting.