Description Usage Arguments Details Note Examples
Meant to be used in a "pipe" and will build the JSON array for POSTing to the Infermedica API automagically in the background. Chain multiple calls together to add additional evidence components.
1 | im_add_evidence(diag_obj, id, choice = c("present", "absent", "unknown"))
|
diag_obj |
diagnosis request object started with |
id |
a symptom |
TODO: Add support for observed_at
, extras
and evaluated_at
The package expects INFERMEDICA_APP_ID
and INFERMEDICA_API_KEY
to
be in the environment. The easiest way to do this is to add entries to
~/.Renviron
and restart R.
1 2 3 4 | im_start_diagnosis() %>%
im_add_patient_info(29, "male") %>%
im_add_evidence("s_21", "present") %>%
im_get_diagnosis()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.