fhir_columns | R Documentation |
An object of class fhir_columns
is part of a fhir_table_description
in a fhir_design
and holds information on the elements
that should be extracted from the FHIR resources, as well as the column names of the resulting data.frame.
The elements to be extracted are indicated by XPath xpaths. If no column names are provided,
they are generated automatically and reflect the elements position in the resource.
fhir_columns(xpaths, colnames)
## S4 method for signature 'missing,missing'
fhir_columns()
## S4 method for signature 'NULL,missing'
fhir_columns(xpaths)
## S4 method for signature 'character,character'
fhir_columns(xpaths, colnames)
## S4 method for signature 'character,missing'
fhir_columns(xpaths)
## S4 method for signature 'list,missing'
fhir_columns(xpaths)
xpaths |
A (named) character vector or (named) list containing xpath xpaths, or a fhir_xpath_expression object. |
colnames |
The names of the columns to create. If no colnames are provided and the list or vector
in |
#provide colnames explicitly
fhir_columns(xpaths = c("name/given", "code/coding/code"),
colnames = c("name", "code"))
#colnames are taken from xpaths argument
fhir_columns(xpaths = c(name = "name/given", code = "code/coding/code"))
#colnames are taken from xpaths argument
fhir_columns(xpaths = list(name = "name/given", code = "code/coding/code"))
#colnames are generated automatically
fhir_columns(xpaths = c("name/given", "code/coding/code"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.