Class: Renalware::Pathology::Requests::GlobalRuleSet
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Pathology::Requests::GlobalRuleSet
show all
- Includes:
- FrequencyMethods
- Defined in:
- app/models/renalware/pathology/requests/global_rule_set.rb,
app/models/renalware/pathology/requests/global_rule_set/patient_rule_set_decision.rb
Defined Under Namespace
Classes: PatientRuleSetDecision
Instance Method Summary
collapse
#frequency
Instance Method Details
#observation_required_for_patient?(patient, date) ⇒ Boolean
25
26
27
|
# File 'app/models/renalware/pathology/requests/global_rule_set.rb', line 25
def observation_required_for_patient?(patient, date)
PatientRuleSetDecision.new(patient, self, date).call
end
|
#to_s ⇒ Object
29
30
31
32
33
34
35
36
|
# File 'app/models/renalware/pathology/requests/global_rule_set.rb', line 29
def to_s
if rules.length >= 1
rules_str = rules.map(&:to_s).join(" and ")
"if #{rules_str} then #{frequency}"
else
frequency.to_s
end
end
|