pathling_read_bundles | R Documentation |
Creates a data source from a directory containing FHIR bundles.
pathling_read_bundles(pc, path, resource_types, mime_type = MimeType$FHIR_JSON)
pc |
The PathlingContext object. |
path |
The URI of the directory containing the bundles. |
resource_types |
A sequence of resource type codes that should be extracted from the bundles. |
mime_type |
The MIME type of the bundles. Defaults to "application/fhir+json". |
A DataSource object that can be used to run queries against the data.
Pathling documentation - Reading Bundles
Other data source functions:
pathling_read_bulk()
,
pathling_read_datasets()
,
pathling_read_delta()
,
pathling_read_ndjson()
,
pathling_read_parquet()
,
pathling_read_tables()
## Not run:
data_source <- pc %>% pathling_read_bundles(pathling_examples('bundle-xml'),
c("Patient", "Observation"), MimeType$FHIR_XML)
data_source %>% ds_read('Observation') %>% sparklyr::sdf_nrow()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.