Module: Renalware::Transplants

Defined in:
app/models/renalware/transplants.rb,
app/models/renalware/transplants/patient.rb,
app/models/renalware/transplants/version.rb,
app/models/renalware/transplants/donation.rb,
app/models/renalware/transplants/donor_stage.rb,
app/models/renalware/transplants/donor_workup.rb,
app/models/renalware/transplants/registration.rb,
app/models/renalware/transplants/donor_followup.rb,
app/models/renalware/transplants/donor_operation.rb,
app/models/renalware/transplants/recipient_workup.rb,
app/models/renalware/transplants/live_donors_query.rb,
app/models/renalware/transplants/rejection_episode.rb,
app/presenters/renalware/transplants/mdm_presenter.rb,
app/models/renalware/transplants/create_donor_stage.rb,
app/models/renalware/transplants/donor_stage_status.rb,
app/models/renalware/transplants/mdm_patients_query.rb,
app/models/renalware/transplants/recipient_followup.rb,
app/controllers/renalware/transplants/mdm_controller.rb,
app/documents/renalware/transplants/crf_dated_result.rb,
app/models/renalware/transplants/recipient_operation.rb,
app/models/renalware/transplants/registration_status.rb,
app/models/renalware/transplants/rejection_treatment.rb,
app/controllers/renalware/transplants/base_controller.rb,
app/models/renalware/transplants/donor_stage_position.rb,
app/policies/renalware/transplants/donor_stage_policy.rb,
app/policies/renalware/transplants/registration_policy.rb,
app/presenters/renalware/transplants/consent_presenter.rb,
app/presenters/renalware/transplants/patient_presenter.rb,
app/documents/renalware/transplants/donor_workup_document.rb,
app/documents/renalware/transplants/registration_document.rb,
app/models/renalware/transplants/recipient_workup_builder.rb,
app/controllers/renalware/transplants/donations_controller.rb,
app/models/renalware/transplants/failure_cause_description.rb,
app/policies/renalware/transplants/recipient_workup_policy.rb,
app/presenters/renalware/transplants/mdm_patient_presenter.rb,
app/controllers/renalware/transplants/wait_lists_controller.rb,
app/models/renalware/transplants/donor_modality_description.rb,
app/policies/renalware/transplants/rejection_episode_policy.rb,
app/controllers/renalware/transplants/live_donors_controller.rb,
app/documents/renalware/transplants/donor_operation_document.rb,
app/policies/renalware/transplants/recipient_followup_policy.rb,
app/controllers/renalware/transplants/donor_stages_controller.rb,
app/controllers/renalware/transplants/mdm_patients_controller.rb,
app/documents/renalware/transplants/recipient_workup_document.rb,
app/models/renalware/transplants/registrations/wait_list_form.rb,
app/policies/renalware/transplants/recipient_operation_policy.rb,
app/controllers/renalware/transplants/donor_workups_controller.rb,
app/controllers/renalware/transplants/registrations_controller.rb,
app/models/renalware/transplants/registrations/wait_list_query.rb,
app/presenters/renalware/transplants/donor_dashboard_presenter.rb,
app/documents/renalware/transplants/recipient_followup_document.rb,
app/models/renalware/transplants/recipient_modality_description.rb,
app/controllers/renalware/transplants/donor_followups_controller.rb,
app/documents/renalware/transplants/recipient_operation_document.rb,
app/models/renalware/transplants/failure_cause_description_group.rb,
app/models/renalware/transplants/registration_status_description.rb,
app/controllers/renalware/transplants/donor_dashboards_controller.rb,
app/controllers/renalware/transplants/donor_operations_controller.rb,
app/controllers/renalware/transplants/recipient_workups_controller.rb,
app/presenters/renalware/transplants/recipient_dashboard_presenter.rb,
app/controllers/renalware/transplants/recipient_followups_controller.rb,
app/controllers/renalware/transplants/recipient_dashboards_controller.rb,
app/controllers/renalware/transplants/recipient_operations_controller.rb,
app/presenters/renalware/transplants/wait_list_registration_presenter.rb,
app/controllers/renalware/transplants/registration_statuses_controller.rb

Defined Under Namespace

Modules: Registrations Classes: BaseController, CRFDatedResult, ConsentPresenter, CreateDonorStage, Donation, DonationsController, DonorDashboardPresenter, DonorDashboardsController, DonorFollowup, DonorFollowupsController, DonorModalityDescription, DonorOperation, DonorOperationDocument, DonorOperationsController, DonorStage, DonorStagePolicy, DonorStagePosition, DonorStageStatus, DonorStagesController, DonorWorkup, DonorWorkupDocument, DonorWorkupsController, FailureCauseDescription, FailureCauseDescriptionGroup, LiveDonorsController, LiveDonorsQuery, MDMController, MDMPatientPresenter, MDMPatientsController, MDMPatientsQuery, MDMPresenter, Patient, PatientPresenter, RecipientDashboardPresenter, RecipientDashboardsController, RecipientFollowup, RecipientFollowupDocument, RecipientFollowupPolicy, RecipientFollowupsController, RecipientModalityDescription, RecipientOperation, RecipientOperationDocument, RecipientOperationPolicy, RecipientOperationsController, RecipientWorkup, RecipientWorkupBuilder, RecipientWorkupDocument, RecipientWorkupPolicy, RecipientWorkupsController, Registration, RegistrationDocument, RegistrationPolicy, RegistrationStatus, RegistrationStatusDescription, RegistrationStatusesController, RegistrationsController, RejectionEpisode, RejectionEpisodePolicy, RejectionTreatment, Version, WaitListRegistrationPresenter, WaitListsController

Constant Summary collapse

WAITLIST_FILTERS =
%w(
  all
  active
  suspended
  active_and_suspended
  working_up
  status_mismatch
).freeze

Class Method Summary collapse

Class Method Details

.cast_patient(patient) ⇒ Object



18
19
20
# File 'app/models/renalware/transplants.rb', line 18

def self.cast_patient(patient)
  ActiveType.cast(patient, ::Renalware::Transplants::Patient)
end

.table_name_prefixObject



14
15
16
# File 'app/models/renalware/transplants.rb', line 14

def self.table_name_prefix
  "transplant_"
end