lib/health-data-standards/models/condition.rb in health-data-standards-3.6.1 vs lib/health-data-standards/models/condition.rb in health-data-standards-3.7.0
- old
+ new
@@ -1,19 +1,22 @@
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
+ 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
\ No newline at end of file
+end