ECLINICALWORKS
Search medication catalog
Search the medication catalog with doses.
POSThttps://preview.ontross.com/api/integrations/ecw/search-medication-catalog
Request Fields
input.searchText
string
requiredKeyword matched against the allergy, medication, or surgery catalog.
Example
"Example"auth_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
items
array
Matching drug catalog entries with available dose variants.
items[].name
string
Drug display label returned by the catalog search.
Example
"Jane Doe"items[].itemId
string
eCW catalog item behind this order or ICD-10 row.
Example
"511681"items[].drugNameId
string
Catalog key for the drug name eCW matched.
Example
"23534"items[].ndcCode
string
NDC code for this drug or dose.
Example
"00069-1530-41"items[].doses
array
Strength and formulation variants available for this drug.
items[].doses[].strength
string
Medication strength as the catalog spells it, paired with name.
Example
"Example text."items[].doses[].formulation
string
Dose form, needed unless name and strength match one dose.
Example
"Example"items[].doses[].ndcCode
string
NDC code for this drug or dose.
Example
"00069-1530-41"items[].doses[].itemId
string
eCW catalog item behind this order or ICD-10 row.
Example
"0"items[].doses[].take
string
How much to take for this medication dose.
Example
"Example text."items[].doses[].route
string
Administration route for this medication dose.
Example
"Example"items[].doses[].frequency
string
Default dosing frequency eCW lists for this dose.
Example
"Once a day"Code
curl --request POST \
--url https://preview.ontross.com/api/integrations/ecw/search-medication-catalog \
--header 'X-API-Key: REPLACE_KEY_VALUE' \
--header 'content-type: application/json' \
--data '{"input":{"searchText":"Example"},"auth_id":"auth_uuid_here"}'Request BODY
{
"input": {
"searchText": "Example"
},
"auth_id": "auth_uuid_here"
}Response BODY
{
"id": "string",
"workflow_id": "string",
"auth_id": "string",
"status": "string",
"input": {},
"output": {
"items": [
{
"name": "Jane Doe",
"itemId": "511681",
"drugNameId": "23534",
"ndcCode": "00069-1530-41",
"doses": [
{
"strength": "Example text.",
"formulation": "Example",
"ndcCode": "00069-1530-41",
"itemId": "0",
"take": "Example text.",
"route": "Example",
"frequency": "Once a day"
}
]
}
]
},
"files": null,
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z"
}