#unserialize xml objects before doing anything else with them!
fhir_unserialize(bundles = medication_bundles)
#unserialize xml objects before doing anything else with them!
fhir_unserialize(bundles = patient_bundles)
Run the code above in your browser using DataLab