Sha256: 3fb91c0c4db4bd328acb988daa64110773eb308fe6138343166321650c07142c

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

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
    attribute :scheduledby,                String
    attribute :templateappointmentid,      Integer
    attribute :encounterstatus,            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.6 lib/athena_health/appointment.rb
athena_health-1.0.5 lib/athena_health/appointment.rb
athena_health-1.0.4 lib/athena_health/appointment.rb
athena_health-1.0.3 lib/athena_health/appointment.rb
athena_health-1.0.2 lib/athena_health/appointment.rb
athena_health-1.0.1 lib/athena_health/appointment.rb