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

Version Path
athena_health-1.0.33 lib/athena_health/appointment.rb
athena_health-1.0.31 lib/athena_health/appointment.rb
athena_health-1.0.30 lib/athena_health/appointment.rb
athena_health-1.0.29 lib/athena_health/appointment.rb
athena_health-1.0.28 lib/athena_health/appointment.rb
athena_health-1.0.27 lib/athena_health/appointment.rb
athena_health-1.0.26 lib/athena_health/appointment.rb
athena_health-1.0.25 lib/athena_health/appointment.rb
athena_health-1.0.24 lib/athena_health/appointment.rb
athena_health-1.0.23 lib/athena_health/appointment.rb
athena_health-1.0.22 lib/athena_health/appointment.rb
athena_health-1.0.21 lib/athena_health/appointment.rb
athena_health-1.0.20 lib/athena_health/appointment.rb
athena_health-1.0.19 lib/athena_health/appointment.rb
athena_health-1.0.18 lib/athena_health/appointment.rb
athena_health-1.0.17 lib/athena_health/appointment.rb
athena_health-1.0.16 lib/athena_health/appointment.rb
athena_health-1.0.15 lib/athena_health/appointment.rb
athena_health-1.0.14 lib/athena_health/appointment.rb