ECLINICALWORKS
Fetch providers
List schedulable providers and resources.
POSThttps://api.ontross.com/api/integrations/ecw/fetch-providers
Request Fields
input.active_only
boolean
Omit providers eCW marks inactive. Off by default, so the full directory is returned.
Example
falseDefault
falseauth_id
string
requiredSaved 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
count
integer
Number of providers returned.
Example
1providers
array
Clinicians in the practice's doctor directory.
providers[].id
string
Provider id used by the scheduling feeds, e.g. in fetch-appointments-by-range.
Example
"9001"providers[].name
string
Display name as eCW stores it, typically Last, First.
Example
"Example, Jordan"providers[].first_name
string
Given name, split from the display name.
Example
"Jordan"providers[].last_name
string
Family name, split from the display name.
Example
"Example"providers[].npi
string
National Provider Identifier.
Example
"1234567890"providers[].credentials
string
Credentials as recorded on the provider record.
Example
"M.D."providers[].specialty
string
Primary specialty.
Example
"Internal Medicine"providers[].username
string
eCW login name for the provider.
Example
"jexample"providers[].provider_code
string
Short provider code eCW displays on the schedule.
Example
"JE"providers[].sex
string
Sex recorded on the provider record.
Example
"Female"providers[].languages
string
Languages recorded on the provider record.
Example
"English"providers[].primary_location_id
string
Facility id of the provider's primary location.
Example
"2"providers[].active
boolean
False when eCW marks the provider inactive.
Example
trueresources
array
Schedulable resources: bookable calendar entries including clinicians outside the doctor directory, rooms and equipment.
resources[].id
string
Resource id used when booking against the calendar.
Example
"9124"resources[].name
string
Display name of the resource.
Example
"Assistant"resources[].resource_type
string
eCW's classification for the resource.
Example
"1"resources[].resource_code
string
Short code eCW displays for the resource.
Example
"AS"resources[].location_id
string
Facility id the resource belongs to.
Example
"2"resources[].default_appointment_provider
string
Provider the resource defaults to on booking.
Example
"9001"resources[].timezone
string
Timezone eCW records for the resource.
Example
"CDT"resources[].status
string
State flag eCW reports for the resource, passed through unchanged.
Example
"1"Code
curl --request POST \
--url https://api.ontross.com/api/integrations/ecw/fetch-providers \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"active_only":false},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"active_only": false
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"count": 1,
"providers": [
{
"id": "9001",
"name": "Example, Jordan",
"first_name": "Jordan",
"last_name": "Example",
"npi": "1234567890",
"credentials": "M.D.",
"specialty": "Internal Medicine",
"username": "jexample",
"provider_code": "JE",
"sex": "Female",
"languages": "English",
"primary_location_id": "2",
"active": true
}
],
"resources": [
{
"id": "9124",
"name": "Assistant",
"resource_type": "1",
"resource_code": "AS",
"location_id": "2",
"default_appointment_provider": "9001",
"timezone": "CDT",
"status": "1"
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}