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

Version Path
renalware-core-2.0.0.pre.rc5 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.rc4 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.rc3 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.rc1 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta12 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta11 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta10 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta9 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta8 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta7 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta6 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta5 app/views/renalware/api/ukrdc/patients/_documents.xml.builder
renalware-core-2.0.0.pre.beta4 app/views/renalware/api/ukrdc/patients/_documents.xml.builder