Tross
Demo dataBook a demo
ECLINICALWORKS

Search allergy

Search the allergen and drug catalog.

POSThttps://preview.ontross.com/api/integrations/ecw/search-allergy
Request Fields
input.searchText
string
Keyword matched against the allergy, medication, or surgery catalog.
Example
"example"
Default
""
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
emsWithClassic
boolean
Raw eCW flag about the allergy search mode used.
Example
false
encData
object
Wrapper eCW returns, holding the search rows in Items.
encData.Items
array
Raw allergy search rows eCW returned inside encData.
Code
curl --request POST \
  --url https://preview.ontross.com/api/integrations/ecw/search-allergy \
  --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": {
    "emsWithClassic": false,
    "encData": {
      "Items": [
        {}
      ]
    }
  },
  "files": null,
  "created_at": "2019-08-24T14:15:22Z",
  "started_at": "2019-08-24T14:15:22Z",
  "completed_at": "2019-08-24T14:15:22Z"
}