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