Class: Renalware::Pathology::Requests::GlobalRule::PrescriptionDrug

Inherits:
Renalware::Pathology::Requests::GlobalRule show all
Defined in:
app/models/renalware/pathology/requests/global_rule/prescription_drug.rb

Constant Summary

Constants inherited from Renalware::Pathology::Requests::GlobalRule

PARAM_COMPARISON_OPERATORS

Instance Method Summary collapse

Instance Method Details

#observation_required_for_patient?(patient, _date) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/renalware/pathology/requests/global_rule/prescription_drug.rb', line 12

def observation_required_for_patient?(patient, _date)
  patient.drugs.include?(drug)
end

#to_sObject



16
17
18
# File 'app/models/renalware/pathology/requests/global_rule/prescription_drug.rb', line 16

def to_s
  "prescribed drugs include #{drug.name}"
end