Sha256: 251c8038a175c162193ffaeff69b1df03c340a966ae8ae087ff8e60e4e39a07e

Contents?: true

Size: 619 Bytes

Versions: 25

Compression:

Stored size: 619 Bytes

Contents

class Condition < Entry
  field :type,          type: String
  field :causeOfDeath,  type: Boolean
  field :time_of_death, type: Integer
  field :priority,      type: Integer
  field :name,          type: String
  field :ordinality,    type: Hash
  field :severity,      type: Hash # Currently unsupported by any importers

  embeds_many :treating_provider,  class_name: "Provider"
  
  alias   :cause_of_death         :causeOfDeath
  alias   :cause_of_death=        :causeOfDeath=

  def shift_dates(date_diff)
    super
    self.time_of_death = self.time_of_death.nil? ? nil : self.time_of_death + date_diff
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
health-data-standards-3.2.4 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.3 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.2 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.1 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.0 lib/health-data-standards/models/condition.rb