Sha256: 670794d71263817bea69c3eca3767553667cc963134edc1a7638d39d7b96479a

Contents?: true

Size: 1.57 KB

Versions: 6

Compression:

Stored size: 1.57 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
      "#{date} #{starttime}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
athena_health-1.0.39 lib/athena_health/appointment.rb
athena_health-1.0.38 lib/athena_health/appointment.rb
athena_health-1.0.37 lib/athena_health/appointment.rb
athena_health-1.0.36 lib/athena_health/appointment.rb
athena_health-1.0.35 lib/athena_health/appointment.rb
athena_health-1.0.34 lib/athena_health/appointment.rb