process a bundle of FHIR R4 JSON

process_fhir_bundle(json_file, schemas = FHIR_retention_schemas())

Arguments

json_file

character(1) path to text in JSON format

schemas

list of character vectors defining expected fields, defaults to FHIR_retention_schemas()

Value

instance of FHIR.bundle, extending list

Note

If one encounters the error "Element ... lacks field", the schemas argument can be modified by removing the noted field from the schema.

Examples

testf = system.file("json/Vince741_Rogahn59_6fa3d4ab-c0b6-424a-89d8-7d9105129296.json",
   package="BiocFHIR")
tbun = process_fhir_bundle(testf)
tbun
#> BiocFHIR FHIR.bundle instance.
#>   resource types are:
#>    AllergyIntolerance CarePlan ... Patient Procedure