Sha256: 6617f7ac7cef2cb766da5e1296d7bb80923089957563e75c46735b9e02dbb003

Contents?: true

Size: 740 Bytes

Versions: 37

Compression:

Stored size: 740 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module UKRDC
    module Outgoing
      module Rendering
        # Handles rendering an HD Trweatment (aka modality). We defer to the base Treatment
        # class but pass in some extra arguments to the ctor.
        class HDTreatment < Rendering::Treatment
          def initialize(treatment:)
            encounter_number = [
              treatment.modality_id,
              treatment.hd_profile_id
            ].compact.join("-")

            super(
              treatment: treatment,
              encounter_number: encounter_number,
              attributes: { "QBL05" => treatment.hospital_unit&.unit_type_rr8 }
            )
          end
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.1.0 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.167 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.166 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.165 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.164 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.163 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.162 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.161 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.160 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.159 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.158 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.157 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.156 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.155 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.153 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.152 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.151 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.149 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb
renalware-core-2.0.148 app/models/renalware/ukrdc/outgoing/rendering/hd_treatment.rb