lib/health-data-standards/models/immunization.rb in health-data-standards-0.7.1 vs lib/health-data-standards/models/immunization.rb in health-data-standards-0.8.0
- old
+ new
@@ -1,10 +1,16 @@
class Immunization < Entry
field :refusalInd, type: Boolean
- field :performer, type: Hash
field :refusalReason, type: Hash
+ field :seriesNumber, type: Integer
+ belongs_to :performer, class_name: "Provider"
+
+ embeds_one :medication_product
+
alias :refusal_ind :refusalInd
alias :refusal_ind= :refusalInd=
alias :refusal_reason :refusalReason
alias :refusal_reason= :refusalReason=
+ alias :series_number :seriesNumber
+ alias :series_number= :seriesNumber=
end
\ No newline at end of file