Sha256: 27c361715b47afef115696c2c2f3b493ac44d2a512bf9b6165970c79518f8897

Contents?: true

Size: 431 Bytes

Versions: 13

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

# https://github.com/renalreg/ukrdc/blob/6d95e364dd8de857839fe6cdbd4e7fc3fb4c1d42/Schema/Diagnoses/Diagnosis.xsd
# This is snomed-based, so might not be possible?
xml = builder
xml.Diagnoses do
  if patient.dead?
    [patient.first_cause, patient.second_cause].compact.each do |cause|
      render "renalware/api/ukrdc/patients/diagnoses/cause_of_death", builder: xml, cause: cause
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
renalware-core-2.0.51 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.50 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.48 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.47 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.46 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.45 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.44 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.43 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.42 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.41 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.40 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.39 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.38 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder