lib/health-data-standards/models/encounter.rb in health-data-standards-0.5.0 vs lib/health-data-standards/models/encounter.rb in health-data-standards-0.7.0
- old
+ new
@@ -1,7 +1,12 @@
class Encounter < Entry
field :performer, type: Hash
field :facility, type: Hash
- field :admitType, type: Hash, as: 'admit_type'
- field :dischargeDisp, type: Hash, as: 'discharge_disp'
+ field :admitType, type: Hash
+ field :dischargeDisp, type: Hash
embeds_one :reason, class_name: "Entry"
+
+ alias :admit_type :admitType
+ alias :admit_type= :admitType=
+ alias :discharge_disp :dischargeDisp
+ alias :discharge_disp= :dischargeDisp=
end
\ No newline at end of file