Class: Renalware::Pathology::Requests::GlobalRule::ObservationResult
Constant Summary
PARAM_COMPARISON_OPERATORS
Instance Method Summary
collapse
Instance Method Details
#observation_description ⇒ Object
25
26
27
|
# File 'app/models/renalware/pathology/requests/global_rule/observation_result.rb', line 25
def observation_description
@observation_description ||= ObservationDescription.find_by(id: param_id)
end
|
#observation_required_for_patient?(patient, _date) ⇒ Boolean
15
16
17
|
# File 'app/models/renalware/pathology/requests/global_rule/observation_result.rb', line 15
def observation_required_for_patient?(patient, _date)
PatientGlobalRuleDecision.new(patient, self).observation_required_for_patient?
end
|
#to_s ⇒ Object
19
20
21
22
23
|
# File 'app/models/renalware/pathology/requests/global_rule/observation_result.rb', line 19
def to_s
"#{observation_description.code} " \
" #{param_comparison_operator} " \
"#{param_comparison_value}"
end
|