Module: Renalware::Renal::RegistryPreflightChecksController::WithHDUnit

Included in:
MissingESRFPresenter, PatientsPresenter
Defined in:
app/controllers/renalware/renal/registry_preflight_checks_controller.rb

Instance Method Summary collapse

Instance Method Details

#hd_unitObject



12
13
14
15
16
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 12

def hd_unit
  if current_modality.description.name == "HD"
    Renalware::HD.cast_patient(__getobj__)&.hd_profile&.hospital_unit&.unit_code
  end
end