Sha256: 367b56cf184f59ea72bcd36a0b16550e0cbfc23990a0f129960988833bb37511

Contents?: true

Size: 340 Bytes

Versions: 11

Compression:

Stored size: 340 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"
    xml.Code cause_code
  end
  xml.EnteredOn cause.created_at.to_datetime
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
renalware-core-2.0.102 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.101 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.100 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.99 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.98 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.97 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.96 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.95 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.94 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.93 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder
renalware-core-2.0.92 app/views/renalware/api/ukrdc/patients/diagnoses/_cause_of_death.xml.builder