Learn R Programming

⚠️There's a newer version (2.3.0) of this package.Take me there.

fhircrackr (version 2.1.1)

Handling HL7 FHIR® Resources in R

Description

Useful tools for conveniently downloading FHIR resources in xml format and converting them to R data.frames. The package uses FHIR-search to download bundles from a FHIR server, provides functions to save and read xml-files containing such bundles and allows flattening the bundles to data.frames using XPath expressions. FHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR trademark does not constitute endorsement of this product by HL7.

Copy Link

Version

Install

install.packages('fhircrackr')

Monthly Downloads

549

Version

2.1.1

License

GPL-3

Maintainer

Julia Palm

Last Published

February 10th, 2023

Functions in fhircrackr (2.1.1)

fhir_build_bundle

Build a FHIR bundle
example_bundles1

Toy example bundles for multiple entries
fhir_build_resource

Build a single FHIR resource
fhir_authenticate

Create token for Authentication
transaction_bundle_example

Toy examples to POST/PUT on a server
fhir_bundle-class

An S4 class to represent FHIR bundles
fhir_bundle_list-class

S4 class to represent a list of FHIR bundles
medication_bundles

Exemplary FHIR bundles
fhir_body-class

An s4 class to represent a body for a POST to a FHIR server
fhir_body

Create fhir_body object
fhir_canonical_design

Retrieve design of last call to fhir_crack
fhir_capability_statement

Get capability statement
fhir_cast

Cast table with multiple entries This function divides multiple entries in a compact indexed table as produced by fhir_crack() into separate columns.
fhir_columns

Create fhir_columns object
fhir_common_columns

Find common columns
fhir_bundle_list

Create fhir_bundle_list object
fhir_bundle_serialized-class

An S4 class to represent a FHIR bundle in serialized form
fhir_get_resources_by_ids

Get Resources by their IDs
fhir_count_resource

Get Resources' Counts
fhir_next_bundle_url

Next Bundle's URL
fhir_bundle_xml-class

An S4 class to represent a FHIR bundle in xml form
fhir_crack

Flatten list of FHIR bundles
fhir_bundle_xml

Create fhir_bundle_xml object
fhir_load

Load bundles from xml-files
fhir_dt_list-class

List of data.tables as returned by fhir_crack()
fhir_columns-class

A S4 class to represent columns in a fhir_table_description
fhir_post

POST to a FHIR server
fhir_put

PUT to a FHIR server
fhir_request

fhir_request
fhir_design

Create a fhir_design object
fhir_recent_http_error

Return most recent http error from fhir_search()
fhir_df_list-class

List of data.frames as returned by fhir_crack()
fhir_get_resource_ids

Get Resources' IDs
fhir_load_design

Load design from xml
fhir_resource_serialized-class

An S4 class to represent a FHIR resource in serialized form
fhir_resource_type-class

A representation of a FHIR resource type
fhir_current_request

Return FHIR search request used in last call to fhir_search() or fhir_url()
fhir_design-class

A S4 class containing a design for fhir_crack()
fhir_melt

Melt multiple entries
fhir_save

Save FHIR bundles as xml-files
fhir_resource_type

Create fhir_resource_type object
fhir_save_design

Write design to xml
fhir_resource_xml-class

An S4 class to represent a FHIR resource in xml form
fhir_resource-class

An S4 class to represent FHIR resources
fhir_tree

Represent a wide cast table as a tree
fhir_unserialize

Unserialize a fhir_bundle, fhir_bundle_list or fhir_resource
fhir_sample_resources

Randomly sample resources from a FHIR server
fhir_sample_resources_by_ids

Download a random sample of resources from a vector of resource IDs.
fhir_resource_xml

Create fhir_resource_xml object
fhir_rm_div

Remove html elements
fhir_rm_indices

Remove indices from data.frame/data.table
fhir_xpath_expression-class

An S4 class for xpath_expressions Objects of this class are essentially character vectors, but can only be valid XPath (1.0) expressions. They are mostly used in the fhir_columns class.
fhir_xpath_expression

Create fhir_xpath_expression
fhir_rm_tag

Remove a certain xml tag
fhir_table_description-class

A S4 class describing the form of a table produced by fhir_crack()
fhir_search

Download FHIR search result
fhir_url-class

An S4 object to represent a URL for a FHIR server
fhir_url

Create FHIR URL
fhir_style-class

An S4 class to represent a design for cracking FHIR resources
fhir_serialize

Serialize a fhir_bundle, fhir_bundle_list or fhir_resource
fhir_style

Create fhir_style object
fhir_table_description

Create fhir_table_description object
paste_paths

Concatenate two paths
pastep

Concatenate paths