Class: Renalware::PD::Patient
- Inherits:
-
Object
- Object
- Renalware::PD::Patient
- Defined in:
- app/models/renalware/pd/patient.rb
Instance Method Summary collapse
-
#has_ever_been_on_pd? ⇒ Boolean
rubocop:disable Naming/PredicateName.
- #treated? ⇒ Boolean
Instance Method Details
#has_ever_been_on_pd? ⇒ Boolean
rubocop:disable Naming/PredicateName
17 18 19 20 |
# File 'app/models/renalware/pd/patient.rb', line 17 def has_ever_been_on_pd? @has_ever_been_on_pd ||= modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end |
#treated? ⇒ Boolean
12 13 14 |
# File 'app/models/renalware/pd/patient.rb', line 12 def treated? modality_descriptions.exists?(type: "Renalware::PD::ModalityDescription") end |