process a bundle of FHIR R4 JSON
process_fhir_bundle(json_file, schemas = FHIR_retention_schemas())
character(1) path to text in JSON format
list of character vectors defining expected fields, defaults to FHIR_retention_schemas()
instance of FHIR.bundle, extending list
If one encounters the error "Element ... lacks field", the schemas argument can be modified by removing the noted field from the schema.
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