Class: Renalware::UKRDC::TreatmentTimeline::PD::Generator

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

Overview

Generates a set of treatments based on a PD modality.

There will be an initial treatment triggered by the modality itself, and then a treatment for each significant change in the pd regime during the period of the modality (until it ends)

Instance Method Summary collapse

Instance Method Details

#callObject



20
21
22
23
# File 'app/models/renalware/ukrdc/treatment_timeline/pd/generator.rb', line 20

def call
  create_treatment_from_modality
  create_treatments_within_modality
end