Class: Renalware::Pathology::Requests::GlobalRule::ObservationResult
- Inherits:
-
Renalware::Pathology::Requests::GlobalRule
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Pathology::Requests::GlobalRule
- Renalware::Pathology::Requests::GlobalRule::ObservationResult
- Defined in:
- app/models/renalware/pathology/requests/global_rule/observation_result.rb
Constant Summary
Constants inherited from Renalware::Pathology::Requests::GlobalRule
Instance Method Summary collapse
-
#observation_description_code ⇒ Object
def observation_description @observation_description ||= ObservationDescription.where(id: param_id).first end.
- #observation_required_for_patient?(patient, _date) ⇒ Boolean
- #to_s ⇒ Object
Instance Method Details
#observation_description_code ⇒ Object
def observation_description
@observation_description ||= ObservationDescription.where(id: param_id).first
end
29 30 31 32 33 |
# File 'app/models/renalware/pathology/requests/global_rule/observation_result.rb', line 29 def observation_description_code @observation_description_code ||= begin ObservationDescription.where(id: param_id).pluck(:code).first end 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 |