Class: Renalware::UKRDC::TreatmentTimeline::Generic::Generator

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

Overview

Handles creating a treatment record for any modality that has not been handled in a more specific way. Note that we only create a Treatment if we find a ukrdc_modality_code_id in the modality’s description row in the database. Some modalities will not have that id so we just ignore them.

Instance Method Summary collapse

Instance Method Details

#callObject



16
17
18
# File 'app/models/renalware/ukrdc/treatment_timeline/generic/generator.rb', line 16

def call
  create_treatment if ukrdc_modality_code.present?
end