im_search: Returns list of observations matching the given phrase from...

Description Usage Arguments Note Examples

View source: R/search.r

Description

Returns list of observations matching the given phrase from Infermedica API

Usage

1
im_search(phrase, sex = NULL, type = NULL, max_results = 8)

Arguments

phrase

search terms/phrase

sex

male/female or NULL

type

character vector or NULL. If not NULL or a single string, should be a character vector composed of "symptom", "risk_factor", "lab_test"

max_results

limit the number of search results (default == 8)

Note

The package expects INFERMEDICA_APP_ID and INFERMEDICA_APP_KEY to be in the environment. The easiest way to do this is to add entries to ~/.Renviron and restart R.

Examples

1
im_search("bleeding", "male", type="symptom")

hrbrmstr/infermedica documentation built on May 3, 2019, 9:38 p.m.