Class: Renalware::UKRDC::TreatmentTimeline::GenerateTimeline

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/ukrdc/treatment_timeline/generate_timeline.rb

Overview

Re-generates the ukrdc_treatments for a patient from their modalities and other information.

Instance Method Summary collapse

Instance Method Details

#callObject



15
16
17
18
19
20
21
22
23
# File 'app/models/renalware/ukrdc/treatment_timeline/generate_timeline.rb', line 15

def call
  # RemapModelTableNamesToTheirPreparedEquivalents.new.call do
  Rails.logger.info "    Generating Treatment rows for modalities #{modality_names}"
  modalities.each do |modality|
    generator = GeneratorFactory.call(modality)
    generator.call
  end
  # end
end