produce 50 json FHIR files in a folder

make_test_json_set(target = paste0(tempdir(), "/jsontest"), reuse = TRUE)

Arguments

target

character(1) a path, defaults to `jsontest` under `tempdir()`; the contents of synthfhir.zip, in inst/zip of BiocFHIR, will be deposted there.

reuse

logical(1) if TRUE, just use what is there, if folder already exists

Value

a vector of paths to FHIR JSON, invisibly

Examples

z <- make_test_json_set()
z[1:3]
#> [1] "/tmp/RtmpH4hYoP/jsontest/Angel97_Swift555_c072e6ad-b03f-4eee-abe0-2dbc93bbadfe.json"      
#> [2] "/tmp/RtmpH4hYoP/jsontest/Audrie782_Metz686_f0893217-38a6-43d9-ab12-6fcc1fd5a8c5.json"     
#> [3] "/tmp/RtmpH4hYoP/jsontest/Bernetta267_DuBuque211_53b2b186-47c3-4aac-9356-06e3e0bd44f8.json"