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.6.1 lib/health-data-standards/models/condition.rb
health-data-standards-3.5.3 lib/health-data-standards/models/condition.rb
health-data-standards-3.5.2 lib/health-data-standards/models/condition.rb
health-data-standards-3.5.1 lib/health-data-standards/models/condition.rb
health-data-standards-3.5.0 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.6 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.5 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.4 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.3 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.2 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.1 lib/health-data-standards/models/condition.rb
health-data-standards-3.4.0 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.12 lib/health-data-standards/models/condition.rb
health-data-standards-3.3.0 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.11 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.10 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.8 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.7 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.6 lib/health-data-standards/models/condition.rb
health-data-standards-3.2.5 lib/health-data-standards/models/condition.rb