lib/health-data-standards/models/encounter.rb in health-data-standards-0.7.1 vs lib/health-data-standards/models/encounter.rb in health-data-standards-0.8.0
- old
+ new
@@ -1,12 +1,17 @@
class Encounter < Entry
- field :performer, type: Hash
- field :facility, type: Hash
field :admitType, type: Hash
- field :dischargeDisp, type: Hash
- embeds_one :reason, class_name: "Entry"
+ field :dischargeDisposition, type: Hash
+ field :free_text, type: String
+ embeds_one :facility, class_name: "Organization"
+ embeds_one :reason, class_name: "Entry"
+
+ belongs_to :performer, class_name: "Provider"
+
alias :admit_type :admitType
alias :admit_type= :admitType=
- alias :discharge_disp :dischargeDisp
- alias :discharge_disp= :dischargeDisp=
+ alias :discharge_disposition :dischargeDisposition
+ alias :discharge_disposition= :dischargeDisposition=
+ alias :freeText :free_text
+ alias :freeText= :free_text=
end
\ No newline at end of file