The Pharmacy Object

The Pharmacy API exposes all supported pharmacies in Elation. You can only use pharmacies returned by this API as patient's preferred pharmacies.

Object Definition (JSON Schema)

{
  "id": "http://elationhealth.com/schemas/api/v2.0/pharmacy",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "appointment": {
    "type": "object",
    "properties": {
      "ncpdpid": {
        "type": "string",
        "maxLength": 21
      },
      "store_name": {
        "type": "string",
        "maxLength": 105
      },
      "address_line1": {
        "type": "string",
        "maxLength": 105
      },
      "address_line2": {
        "type": "string",
        "maxLength": 105
      },
      "city": {
        "type": "string",
        "maxLength": 105
      },
      "state": {
        "type": "string",
        "maxLength": 2
      },
      "zip": {
        "type": "string",
        "maxLength": 10
      },
      "phone_primary": {
        "type": "string",
        "maxLength": 10
      },
      "fax": {
        "type": "string",
        "maxLength": 10
      },
      "npi": {
        "type": "string",
        "maxLength": 10
      },
      "active_start_time": {
        "type": "string",
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
      },
      "active_end_time": {
        "type": "string",
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
      },
      "specialty_types": {
        "type": "string",
        "maxLength": 300
      }
    },
    "additionalProperties": false
  }
}

Sample Object

{
  "ncpdpid": "5920334",
  "store_name": "Wal-Mart Pharmacy 351",
  "address_line1": "25800 KUYKENDAHL RD",
  "address_line2": "",
  "city": "TOMBALL",
  "state": "TX",
  "zip": "77375",
  "phone_primary": "8327618483",
  "fax": "8327618497",
  "npi": "1326599754",
  "active_start_time": "2017-02-21T01:43:03Z",
  "active_end_time": "2099-12-31T08:00:00Z",
  "specialty_types": "Retail"
}