Sha256: 91f0529d2b914406e076462878a001c28f4e213b63b52bd68df6b5b39f44ef05

Contents?: true

Size: 724 Bytes

Versions: 16

Compression:

Stored size: 724 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
  field :laterality,        type: Hash
  field :anatomical_target, type: Hash
  field :anatomical_location, type: Hash

  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

16 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/health-data-standards/models/condition.rb
health-data-standards-4.3.4 lib/health-data-standards/models/condition.rb
health-data-standards-4.3.3 lib/health-data-standards/models/condition.rb
health-data-standards-4.3.2 lib/health-data-standards/models/condition.rb
health-data-standards-4.3.1 lib/health-data-standards/models/condition.rb
health-data-standards-4.3.0 lib/health-data-standards/models/condition.rb
health-data-standards-4.2.0 lib/health-data-standards/models/condition.rb
health-data-standards-4.1.0 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.6 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.5 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.4 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.3 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.2 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.1 lib/health-data-standards/models/condition.rb
health-data-standards-4.0.0 lib/health-data-standards/models/condition.rb
health-data-standards-3.7.0 lib/health-data-standards/models/condition.rb