So I have a FHIR patient bundle json from the "$everything" operation: https://www.hl7.org/fhir/operation-patient-everything.html
I am now interested in using the Smart on FHIR Python Client Models to make working with the json file a lot easier. An example given is the following:
import json
import fhirclient.models.patient as p
with open('path/to/patient.json', 'r') as h:
pjs = json.load(h)
patient = p.Patient(pjs)
patient.name[0].given
# prints patient's given name array in the first `name` property
Would it be possible to do instantiate something with just a generic bundle object class to be able access different resources inside the bundle?