fhir_style {fhircrackr}R Documentation

Create fhir_style object

Description

[Deprecated] This function was used to create an object of class fhir_style in fhircrackr < 2.0.0. It is now deprecated, the information that used to be coded in fhir_style has been moved to the fhir_table_description.

Usage

fhir_style(sep = ":::", brackets = character(), rm_empty_cols = FALSE)

Arguments

sep

A character vector of length one to separate pasted multiple entries. Defaults to ":::"

brackets

A character vector of length two defining the brackets surrounding indices for multiple entries, e.g. c("<|", "|>"). If this is empty (i.e. character of length zero, the default) or 'NULL', no indices will be added to multiple entries. If it is a character vector of length one, it will be recycled to length two, i.e. "|" will become c("|", "|"). Empty strings ("") are not allowed.

rm_empty_cols

A logical vector of length one. Remove empty columns? Defaults to FALSE.

Details

A fhir_style object is part of a fhir_table_description which in turn is part of a fhir_design and ultimately used in fhir_crack(). A fhir_style object contains three elements:

sep: ':::'
brackets: '<|' '|>'
rm_empty_cols: FALSE

Value

A fhir_style object

Examples


#instead of this:

style <- fhir_style(sep           = ":::",
                    brackets      = c("<|", "|>"),
                    rm_empty_cols = TRUE)

table_description <- fhir_table_description(
                        resource = "Patient",
                        style = style)
#use this:
table_description <- fhir_table_description(
                        resource       = "Patient",
                        sep            = ":::",
                        brackets       = c("<|", "|>"),
                         rm_empty_cols = TRUE)


[Package fhircrackr version 2.3.0 Index]