View source: R/download_resources.R
as_fhir | R Documentation |
Tries to convert a character vector containing xml strings representing FHIR bundles to an object of class fhir_bundle_list.
as_fhir(x)
x |
A character vector where each element is a string representing an xml FHIR bundle. |
#character vector containing fhir bundles
bundle_strings <- c(
"<Bundle>
<type value='searchset'/>
<entry>
<resource>
<Patient>
<id value='id1'/>
<name>
<given value='Marie'/>
</name>
</Patient>
</resource>
</entry>
</Bundle>",
"<Bundle>
<type value='searchset'/>
<entry>
<resource>
<Patient>
<id value='id2'/>
<name>
<given value='Max'/>
</name>
</Patient>
</resource>
</entry>
</Bundle>"
)
#convert to FHIR bundle list
bundles <- as_fhir(bundle_strings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.