Sha256: 60633d746f5f63842df463b9820f3d85fd648396faa0676d74067f5bb9e974eb
Contents?: true
Size: 663 Bytes
Versions: 13
Compression:
Stored size: 663 Bytes
Contents
xml = builder xml.Documents do patient.letters.each do |letter| xml.Document do xml.DocumentTime letter.created_at.iso8601 xml.DocumentName letter.title xml.Clinician do xml.Description end xml.Location do xml.Code letter.hospital_unit_code end xml.Status do xml.Code "ACTIVE" end xml.EnteredBy do xml.Description letter.updated_by end xml.EnteredAt do xml.Code letter.hospital_unit_code end xml.FileType do xml.Code "PDF" end xml.Stream Base64.encode64(Renalware::Letters::PdfRenderer.call(letter)) end end end
Version data entries
13 entries across 13 versions & 1 rubygems