Learn R Programming

fhircrackr (version 2.3.0)

as_fhir: Coerce character vector to fhir_bundle_list

Description

Tries to convert a character vector containing xml strings representing FHIR bundles to an object of class fhir_bundle_list.

Usage

as_fhir(x)

Arguments

x

A character vector where each element is a string representing an xml FHIR bundle.

Examples

Run this code

#character vector containing fhir bundles
bundle_strings <- c(
"
 
 
  
    
       
	      
	         
	      
    
  
 
",
"
 
 
  
    
       
	      
	         
	      
    
  
 
"
)

#convert to FHIR bundle list
bundles <- as_fhir(bundle_strings)

Run the code above in your browser using DataLab