Class: Renalware::Pathology::Requests::GlobalRule::RequestResult
Constant Summary
PARAM_COMPARISON_OPERATORS
Instance Method Summary
collapse
Instance Method Details
#observation_required_for_patient?(patient, _date) ⇒ Boolean
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/models/renalware/pathology/requests/global_rule/request_result.rb', line 16
def observation_required_for_patient?(patient, _date)
observation =
ObservationForPatientObservationDescriptionQuery.new(
patient, observation_description
).call
observation_result = observation.result.to_i if observation.present?
return true if observation_result.nil?
observation_result.send(param_comparison_operator.to_sym, param_comparison_value.to_i)
end
|
#to_s ⇒ Object
28
29
30
|
# File 'app/models/renalware/pathology/requests/global_rule/request_result.rb', line 28
def to_s
"last result is #{param_comparison_operator} #{param_comparison_value}"
end
|