Class: Renalware::Pathology::Requests::GlobalRule::PatientGlobalRuleDecision
- Inherits:
-
Object
- Object
- Renalware::Pathology::Requests::GlobalRule::PatientGlobalRuleDecision
- Defined in:
- app/models/renalware/pathology/requests/global_rule/observation_result.rb
Instance Method Summary collapse
Instance Method Details
#observation_required_for_patient? ⇒ Boolean
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'app/models/renalware/pathology/requests/global_rule/observation_result.rb', line 54 def observation_required_for_patient? return true if observation.blank? if [">", "<", ">=", "<="].include?(rule.param_comparison_operator) observation.to_i.send( param_comparison_operator.to_sym, param_comparison_value.to_i ) else observation.send( param_comparison_operator.to_sym, param_comparison_value ) end end |