Sha256: d4206c64967049229ad39e13a5d88a18cf910881ae4af8a314cc481f16733053

Contents?: true

Size: 504 Bytes

Versions: 16

Compression:

Stored size: 504 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?
    # 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

16 entries across 16 versions & 1 rubygems

Version Path
renalware-core-2.0.70 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.69 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.68 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.67 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.64 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.63 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.62 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.61 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.60 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.58 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.57 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.56 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.55 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.54 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.53 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder
renalware-core-2.0.52 app/views/renalware/api/ukrdc/patients/_diagnoses.xml.builder