fhir_save: Save FHIR bundles as xml-files

View source: R/download_resources.R

fhir_saveR Documentation

Save FHIR bundles as xml-files

Description

Writes a list of FHIR bundles as numbered xml files into a directory.

Usage

fhir_save(bundles, directory)

Arguments

bundles

A list of xml objects representing the FHIR bundles.

directory

A character vector of length one containing the path to the folder to store the data in.

Examples

#unserialize example bundle
bundles <- fhir_unserialize(medication_bundles)

#save all bundles to temporary directory
fhir_save(bundles, directory = tempdir())

#save only two bundles (the second and the third) to temporary directory
fhir_save(bundles[c(2,3)], directory = tempdir())

fhircrackr documentation built on Feb. 16, 2023, 8:33 p.m.