Tross
Demo dataBook a demo
EZDERM

List encounter pharmacies

List active patient favorite pharmacies.

POSThttps://preview.ontross.com/api/integrations/ezderm/list-encounter-pharmacies
Request Fields
input.patient_id
string
required
Patient UUID, resolved from a medical record number by list-patients.
Example
"3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93"
input.encounter_id
string
required
Encounter the request acts on, returned by create-encounter.
Example
"d26f8a40-3b17-4c95-ae82-608c7f0db541"
input.facility_id
string
Clinic from list-facilities, which EZDerm also calls practiceId and clinicId.
Example
"a1d93f57-62b8-4e14-9c70-38fb5d2ea150"
auth_id
string
required
Saved connection to run this operation through, from the Authentication page. It decides which practice and login the call uses.
Example
"00000000-0000-4000-8000-000000000000"
Output Fields
pharmacies
array
The patient's favorite pharmacies, active only, in EZDerm's order.
pharmacies[].id
string
Favorite store identifier accepted when choosing a prescription destination.
Example
"4c19be73-80d5-4a62-9f18-73ea5b0c26d1"
pharmacies[].name
string
Store label returned in the patient's favorites.
Example
"Maple Grove Community Pharmacy"
pharmacies[].ncpdp_id
string
Pharmacy's NCPDP store number for eRx routing, sometimes empty.
Example
"9876543"
pharmacies[].service_levels
array
eRx capabilities the pharmacy advertises, split from a comma list.
selected_pharmacy
object
A patient-favorite pharmacy that EZDerm can receive a NewRx message.
selected_pharmacy.id
string
Favorite store identifier accepted when choosing a prescription destination.
Example
"4c19be73-80d5-4a62-9f18-73ea5b0c26d1"
selected_pharmacy.name
string
Store label returned in the patient's favorites.
Example
"Maple Grove Community Pharmacy"
selected_pharmacy.ncpdp_id
string
Pharmacy's NCPDP store number for eRx routing, sometimes empty.
Example
"9876543"
selected_pharmacy.service_levels
array
eRx capabilities the pharmacy advertises, split from a comma list.
Code
curl --request POST \
  --url https://preview.ontross.com/api/integrations/ezderm/list-encounter-pharmacies \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"input":{"patient_id":"3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93","encounter_id":"d26f8a40-3b17-4c95-ae82-608c7f0db541","facility_id":"a1d93f57-62b8-4e14-9c70-38fb5d2ea150"},"auth_id":"auth_uuid_here"}'
Request BODY
{
  "input": {
    "patient_id": "3f7a2c18-9b04-4e51-ae6d-5c21f0a7bd93",
    "encounter_id": "d26f8a40-3b17-4c95-ae82-608c7f0db541",
    "facility_id": "a1d93f57-62b8-4e14-9c70-38fb5d2ea150"
  },
  "auth_id": "auth_uuid_here"
}
Response BODY
{
  "id": "string",
  "workflow_id": "string",
  "auth_id": "string",
  "status": "string",
  "input": {},
  "output": {
    "pharmacies": [
      {
        "id": "4c19be73-80d5-4a62-9f18-73ea5b0c26d1",
        "name": "Maple Grove Community Pharmacy",
        "ncpdp_id": "9876543",
        "service_levels": [
          "string"
        ]
      }
    ],
    "selected_pharmacy": {
      "id": "4c19be73-80d5-4a62-9f18-73ea5b0c26d1",
      "name": "Maple Grove Community Pharmacy",
      "ncpdp_id": "9876543",
      "service_levels": [
        "string"
      ]
    }
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}