Writes the data from a data source to a directory of NDJSON files. Each resource type is written to one or more files named with the resource type, a partition number and an identifier of the write, for example "Patient.00000-<write id>.ndjson".
ds_write_ndjson(ds, path, save_mode = SaveMode$ERROR, file_name_mapper = NULL)A list with element file_infos, containing a list of files created.
Each file has fhir_resource_type and absolute_url.
Pathling documentation - Writing NDJSON
Other data sink functions:
ds_write_delta(),
ds_write_parquet(),
ds_write_tables()
if (FALSE) { # \dontrun{
data_source <- pc %>% pathling_read_ndjson(pathling_examples("ndjson"))
# Write the data to a directory of NDJSON files.
data_source %>% ds_write_ndjson(file.path(tempdir(), "ndjson"))
} # }