fhir_save {fhircrackr}R 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())

[Package fhircrackr version 2.2.0 Index]