Learn R Programming

fhircrackr (version 0.2.1)

fhir_capability_statement: Get capability statement

Description

Get the capability statement of a FHIR server.

Usage

fhir_capability_statement(
  url = "https://hapi.fhir.org/baseR4",
  username = NULL,
  password = NULL,
  sep = " ",
  remove_empty_columns = TRUE,
  brackets = NULL,
  verbose = 2,
  add_indices
)

Arguments

url

The URL of the FHIR server endpoint.

username

A string containing the username for basic authentication. Defaults to NULL, meaning no authentication.

password

A string containing the password for basic authentication. Defaults to NULL, meaning no authentication.

sep

A string to separate pasted multiple entries

remove_empty_columns

Logical scalar. Remove empty columns?

brackets

A character vector of length two defining the brackets surrounding indices for multiple entries, e.g. c( "<", ">"). If NULL, no indices will be added to multiple entries. NULL means brackets is looked up in design, if it is NULL there too, no indices are added.

verbose

An integer Scalar. If 0, nothings is printed, if 1, only finishing message is printed, if > 1, downloading/extraction progress will be printed. Defaults to 2.

add_indices

Deprecated. This argument was used to control adding of indices for multiple entries. This is now done via the brackets argument. If brackets is NULL, no indices are added, if brackets is not NULL, indices are added to multiple entries.

Value

A list of data frames containing the information from the statement

Examples

Run this code
# NOT RUN {
cap <- fhir_capability_statement("https://hapi.fhir.org/baseR4")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab