Class: Renalware::Pathology::Requests::GlobalRule::PrescriptionDrugCategory
Constant Summary
PARAM_COMPARISON_OPERATORS
Instance Method Summary
collapse
Instance Method Details
#observation_required_for_patient?(patient, _date) ⇒ Boolean
12
13
14
|
# File 'app/models/renalware/pathology/requests/global_rule/prescription_drug_category.rb', line 12
def observation_required_for_patient?(patient, _date)
(patient.drugs.map(&:id) & drug_ids).any?
end
|
#to_s ⇒ Object
16
17
18
|
# File 'app/models/renalware/pathology/requests/global_rule/prescription_drug_category.rb', line 16
def to_s
"prescribed drugs include #{drug_category.name}"
end
|