lib/health-data-standards/models/encounter.rb in health-data-standards-3.4.6 vs lib/health-data-standards/models/encounter.rb in health-data-standards-3.5.0
- old
+ new
@@ -1,26 +1,18 @@
class Encounter < Entry
- field :admitType, type: Hash
- field :dischargeDisposition, type: Hash
- field :admitTime, type: Integer
- field :dischargeTime, type: Integer
+ field :admitType, as: :admit_type, type: Hash
+ field :dischargeDisposition, as: :discharge_disposition, type: Hash
+ field :admitTime, as: :admit_time, type: Integer
+ field :dischargeTime, as: :discharge_time, type: Integer
embeds_one :transferTo, class_name: "Transfer"
embeds_one :transferFrom, class_name: "Transfer"
embeds_one :facility
embeds_one :reason, class_name: "Entry"
belongs_to :performer, class_name: "Provider"
- alias :admit_time :admitTime
- alias :admit_time= :admitTime=
- alias :admit_type :admitType
- alias :admit_type= :admitType=
- alias :discharge_disposition :dischargeDisposition
- alias :discharge_disposition= :dischargeDisposition=
- alias :discharge_time :dischargeTime
- alias :discharge_time= :dischargeTime=
alias :transfer_to :transferTo
alias :transfer_to= :transferTo=
alias :transfer_from :transferFrom
alias :transfer_from= :transferFrom=
\ No newline at end of file