

def owningResource(self):
    ' Walks the owner hierarchy and returns the next parent that is a\n        `DomainResource` instance.\n        '
    owner = self._owner
    while ((owner is not None) and (not hasattr(owner, 'contained'))):
        owner = owner._owner
    return owner

dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/fhirabstractbase.py FHIRAbstractBase.owningResource/original