Class: ChangeHealthcare::Pharmacy

Inherits:
BaseApiObject show all
Defined in:
lib/change_healthcare/pharmacy.rb

Overview

Class Method Summary collapse

Methods inherited from BaseApiObject

configuration, #initialize

Constructor Details

This class inherits a constructor from ChangeHealthcare::BaseApiObject

Class Method Details

.attributesObject



3
4
5
6
7
8
9
10
11
# File 'lib/change_healthcare/pharmacy.rb', line 3

def self.attributes
  [
    :address_1, :address_2, :city, :email, :fax, :is_active, :is_electronic,
    :is_epcs_capable, :name, :npi, :pharmacy_id, :pharmacy_type, :phone,
    :ppi_level3_id, :script_version, :service_levels, :state,
    :supports_newrx, :supports_refreq, :supports_rxcancel, :supports_rxchange,
    :supports_rxfill, :zip
  ]
end

.chc_object_nameObject



15
16
17
# File 'lib/change_healthcare/pharmacy.rb', line 15

def self.chc_object_name
  "pharmacy"
end

.get(params = {}) ⇒ Object



19
20
21
22
# File 'lib/change_healthcare/pharmacy.rb', line 19

def self.get(params={})
  resp = call_api(__method__.to_s, params, false)
  response_to_list(resp)
end

.search(params = {}) ⇒ Object

cli-cert.emdeon.com/api/cert/pharmacy.html#search params = { address_1: “811 Pendleton St, Suite 10” }



26
27
28
29
# File 'lib/change_healthcare/pharmacy.rb', line 26

def self.search(params={})
  resp = call_api(__method__.to_s, params, false)
  response_to_list(resp)
end