Class: AthenaHealth::Client

Constant Summary

Constants included from Endpoints::Subscriptions

Endpoints::Subscriptions::SUBSCRIPTION_TYPES

Instance Method Summary collapse

Methods included from Endpoints::CustomFields

#all_custom_fields

Methods included from Endpoints::Claims

#find_claim

Methods included from Endpoints::Configurations

#all_allergies, #all_facilities, #all_insurances, #all_medications, #all_order_types

Methods included from Endpoints::Encounters

#create_encounter_diagnoses, #create_encounter_order_lab, #create_order_group, #encounter_order, #encounter_orders, #encounter_summary, #find_encounter

Methods included from Endpoints::InsurancePackages

#common_insurance_packages, #top_insurance_packages

Methods included from Endpoints::Providers

#all_providers, #find_provider

Methods included from Endpoints::Appointments

#all_appointment_types, #all_patient_appointment_reasons, #appointment_insurances, #appointment_notes, #appointment_reminders, #book_appointment, #booked_appointments, #cancel_appointment, #cancel_check_in, #check_in, #create_appointment_note, #create_appointment_reminder, #create_appointment_slot, #create_appointment_waitlist, #delete_appointment_reminder, #find_appointment, #find_appointment_reminder, #find_appointment_type, #multipledepartment_booked_appointments, #open_appointment_slots, #reschedule_appointment, #start_check_in

Methods included from Endpoints::Patients

#add_patient_medication, #add_patient_preferred_pharmacy, #all_patients, #create_patient, #create_patient_case, #create_patient_document, #create_patient_insurance, #create_patient_problem, #delete_patient, #delete_patient_insurance, #find_bestmatch_patients, #find_patient, #find_patient_problems, #patient_allergies, #patient_analytes, #patient_appointments, #patient_default_laboratory, #patient_default_pharmacy, #patient_documents, #patient_encounters, #patient_insurances, #patient_lab_result_document, #patient_lab_results, #patient_medical_history, #patient_medications, #patient_preferred_pharmacies, #patient_prescriptions, #patient_social_history, #patient_social_history_templates, #record_payment, #set_patient_default_laboratory, #set_patient_default_pharmacy, #set_patient_social_history_templates, #update_patient, #update_patient_allergies, #update_patient_insurance, #update_patient_insurance_card_image, #update_patient_medical_history, #update_patient_medications, #update_patient_photo, #update_patient_social_history, #verify_patient_privacy_information

Methods included from Endpoints::Departments

#all_departments, #find_department

Methods included from Endpoints::Practices

#all_practices, #find_practice

Constructor Details

#initialize(production: false, client_id:, secret:, token: nil) ⇒ Client

Returns a new instance of Client.



3
4
5
6
7
8
9
10
# File 'lib/athena_health/client.rb', line 3

def initialize(production: false, client_id:, secret:, token: nil)
  @api = AthenaHealth::Connection.new(
    production: production,
    client_id: client_id,
    secret: secret,
    token: token,
  )
end