Class: Renalware::Renal::RegistryPreflightChecksController::PatientPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Renalware::Renal::RegistryPreflightChecksController::PatientPresenter
- Defined in:
- app/controllers/renalware/renal/registry_preflight_checks_controller.rb
Instance Method Summary collapse
Instance Method Details
#hd_unit ⇒ Object
16 17 18 19 20 |
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 16 def hd_unit if current_modality.description.name == "HD" Renalware::HD.cast_patient(__getobj__)&.hd_profile&.hospital_unit&.unit_code end end |
#missing_data ⇒ Object
12 13 14 |
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 12 def missing_data Registry::PreflightChecks::PatientsQuery.missing_data_for(__getobj__) end |
#renal_profile ⇒ Object
22 23 24 |
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 22 def renal_profile Renalware::Renal.cast_patient(__getobj__).profile end |