Search Drugs

Retrieves a list of drugs that match the parameters submitted.

Request

GET /clinical/v1/search/drug

Path Parameters


No parameters

Query Parameters


drugname string : required

The name of the drug to search for.


partial boolean : optional

Perform a partial search, allowing for searching based on a partial value of the drugname. Great for "search-as-you-type" scenarios. Default value is true.


fuzzy boolean : optional

Perform a fuzzy search, a type of query that compensates for typos and misspelled terms in the input string. Default value is true.


count numeric : optional

The maximum number of results to return. Default value is 50.


Example


curl -XGET 'https://platform.wellviasolutions.com/clinical/v1/search/drug' \
    -u 'Bearer:{your_token}'
GET https://platform.wellviasolutions.com/clinical/v1/search/drug?drugname=amox HTTP/1.1
using WellViaSDK.Clinical;

const string apiSubscriptionKey = "your_api_subscription_key";
var _clnClient = new WellViaClinicalServiceClient(subscriptionKey: apiSubscriptionKey);

var options = new DrugSearchOptions();
options.DrugName = "amox";
options.Count = 50;
options.PartialMatch = true;

var searchResults = await _clnClient.SearchDrugsAsync(options: options);

Response

A list of Drug Objects if valid parameters were provided.