Class: Renalware::Transplants::Patient
- Inherits:
-
Object
- Object
- Renalware::Transplants::Patient
- Defined in:
- app/models/renalware/transplants/patient.rb
Instance Method Summary collapse
Instance Method Details
#has_ever_been_a_donor? ⇒ Boolean
10 11 12 13 14 15 |
# File 'app/models/renalware/transplants/patient.rb', line 10 def has_ever_been_a_donor? @has_ever_been_a_donor ||= begin donor_modality = "Renalware::Transplants::DonorModalityDescription" modality_descriptions.exists?(type: donor_modality) end end |
#has_ever_been_a_recipient? ⇒ Boolean
17 18 19 20 21 22 |
# File 'app/models/renalware/transplants/patient.rb', line 17 def has_ever_been_a_recipient? @has_ever_been_a_recipient ||= begin recipient_modality = "Renalware::Transplants::RecipientModalityDescription" modality_descriptions.exists?(type: recipient_modality) end end |