Sha256: 1a9f2bfff0fc99cf412336049247a4cf2ab9d7a9a748fa173c3d1ee41d504aa6

Contents?: true

Size: 972 Bytes

Versions: 6

Compression:

Stored size: 972 Bytes

Contents

module AthenaHealth
  class Appointment < BaseModel
    attribute :date,                       String
    attribute :appointmentid,              Integer
    attribute :departmentid,               Integer
    attribute :appointmenttype,            String
    attribute :appointmentstatus,          String
    attribute :patientid,                  Integer
    attribute :providerid,                 Integer
    attribute :starttime,                  String
    attribute :duration,                   Integer
    attribute :appointmenttypeid,          Integer
    attribute :patientappointmenttypename, String
    attribute :lastmodified,               String
    attribute :scheduleddatetime,          String

    def appointment_status
        {
          'f' => 'Future',
          'x' => 'Cancelled',
          'o' => 'Open',
          '2' => 'Checked in',
          '3' => 'Checked out',
          '4' => 'Charge entered'
        }[appointmentstatus]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
athena_health-1.0.0 lib/athena_health/appointment.rb
athena_health-0.9.9 lib/athena_health/appointment.rb
athena_health-0.9.8 lib/athena_health/appointment.rb
athena_health-0.9.7 lib/athena_health/appointment.rb
athena_health-0.9.6 lib/athena_health/appointment.rb
athena_health-0.9.5 lib/athena_health/appointment.rb