Class: Renalware::UKRDC::Outgoing::Rendering::CauseOfDeath

Inherits:
Base
  • Object
show all
Defined in:
app/models/renalware/ukrdc/outgoing/rendering/cause_of_death.rb

Instance Method Summary collapse

Instance Method Details

#xmlObject



13
14
15
16
17
# File 'app/models/renalware/ukrdc/outgoing/rendering/cause_of_death.rb', line 13

def xml
  return nil unless patient.dead? && first_cause.present?

  cause_of_death_element
end