Sha256: 13694ed80ca80c5fbab820d31988516ad993867caa4c60d4baf6b159caef502b
Contents?: true
Size: 880 Bytes
Versions: 37
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true module Renalware module UKRDC module Outgoing module Rendering class RenalDiagnosis < Rendering::Base pattr_initialize [:patient!] def xml return if patient.prd_description_code.blank? renal_diagnosis_element end private # The nested Diagnosis is correct. def renal_diagnosis_element elem = Rendering::Diagnosis.new( coding_standard: "EDTA2", code: patient.prd_description_code, description: patient.prd_description_term, root_elemment_name: "RenalDiagnosis" ) if patient.first_seen_on.present? elem.identification_time = patient.first_seen_on end elem.xml end end end end end end
Version data entries
37 entries across 37 versions & 1 rubygems