Sha256: 05f7f7e8f0081ee7490a6369d12d1919ed74b6c9ff7bb115a329993a0a189560
Contents?: true
Size: 1.65 KB
Versions: 19
Compression:
Stored size: 1.65 KB
Contents
module AthenaHealth class Appointment < BaseModel attribute :appointmentconfirmationname, String attribute :appointmentid, Integer attribute :appointmentstatus, String attribute :appointmenttype, String attribute :appointmenttypeid, Integer attribute :cancelleddatetime, String attribute :cancelreasonname, String attribute :cancelreasonnoshow, Boolean attribute :coordinatorenterprise, Boolean attribute :date, String attribute :departmentid, Integer attribute :duration, Integer attribute :encounterstatus, String attribute :frozen, Boolean attribute :lastmodified, String attribute :patient, Patient attribute :patientappointmenttypename, String attribute :patientid, Integer attribute :providerid, Integer attribute :rescheduledappointmentid, Integer attribute :scheduledby, String attribute :scheduleddatetime, String attribute :starttime, String attribute :templateappointmentid, Integer def appointment_status { 'f' => 'Future', 'x' => 'Cancelled', 'o' => 'Open', '2' => 'Checked in', '3' => 'Checked out', '4' => 'Charge entered' }[appointmentstatus] end def full_time appointment_time = "#{date} #{starttime}" DateTime.strptime(appointment_time, '%m/%d/%Y %H:%M') end end end
Version data entries
19 entries across 19 versions & 1 rubygems