Sha256: 9c4455503228f2af4f4dff3f35288c5f49402c2ab2eb35bc98e220f80728a29f

Contents?: true

Size: 344 Bytes

Versions: 31

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

xml = builder

# temp hack until XSD updated to include missing code 34
cause_code = cause.code
cause_code = 99 if cause_code == 34

xml.CauseOfDeath do
  xml.DiagnosisType "final"
  xml.Diagnosis do
    xml.CodingStandard "EDTA_COD"
    xml.Code cause_code
  end
  xml.EnteredOn cause.created_at.to_datetime
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
renalware-core-2.0.136 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.135 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.134 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.133 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.132 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.131 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.130 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.129 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.128 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.127 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.126 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.125 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.124 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.123 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.121 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.120 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.119 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.118 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.117 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.116 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder