#example bundles are serialized, unserialize like this:
bundles <- fhir_unserialize(medication_bundles)
#Serialize like this:
bundles_for_saving <- fhir_serialize(bundles)
#works also on single bundles
fhir_serialize(bundles[[1]])
Run the code above in your browser using DataLab