lib/athena_health/appointment.rb in athena_health-0.9.3 vs lib/athena_health/appointment.rb in athena_health-0.9.4
- old
+ new
@@ -9,7 +9,18 @@
attribute :providerid, Integer
attribute :starttime, String
attribute :duration, Integer
attribute :appointmenttypeid, Integer
attribute :patientappointmenttypename, Integer
+
+ def appointment_status
+ {
+ 'f' => 'Future',
+ 'x' => 'Cancelled',
+ 'o' => 'Open',
+ '2' => 'Checked in',
+ '3' => 'Checked out',
+ '4' => 'Charge entered'
+ }[appointmentstatus]
+ end
end
end