Skip to content

Reconstructs an omop_recipe from a JSON string or file previously created by recipe_export_json. Automatically detects whether the input is a file path or a raw JSON string. Nested filter groups, blocks, output options, population filters, variable filters, and metadata are preserved.

Usage

recipe_import_json(json)

Arguments

json

Character; a JSON string, or a file path to a JSON file.

Value

An omop_recipe object.

Examples

if (FALSE) { # \dontrun{
recipe <- recipe_import_json("my_recipe.json")
recipe <- recipe_import_json('{"version":"1","populations":{...}}')
} # }