Sha256: adb6c3e1fe8c07c83f1afcae00fee5c3642d1d6dcf6cce6d283182e3dd403891
Contents?: true
Size: 752 Bytes
Versions: 37
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true module Renalware module UKRDC module Outgoing module Rendering class FamilyDoctor < Rendering::Base pattr_initialize [:patient!] def xml family_doctor_element end private def family_doctor_element create_node("FamilyDoctor") do |family_doctor| if patient.practice.present? family_doctor << create_node("GPPracticeId", patient.practice.code) end if patient.primary_care_physician.present? family_doctor << create_node("GPId", patient.primary_care_physician.code) end end end end end end end end
Version data entries
37 entries across 37 versions & 1 rubygems