Sha256: f3d66d7d8af5429d5b39ee4b3b7ee6b1841cfb8baff1aa6da71416d62693db87

Contents?: true

Size: 536 Bytes

Versions: 8

Compression:

Stored size: 536 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
  xml.Diagnosis
  if patient.dead? && patient.first_cause.present?
    # Only 1 CauseOfDeath element is allowed so we ignore patient.second_cause
    render(
      "renalware/api/ukrdc/patients/diagnoses/cause_of_death",
      builder: xml,
      cause: patient.first_cause
    )
  end
  xml.RenalDiagnosis
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.78 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.77 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.76 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.75 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.74 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.73 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.72 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.71 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder