

@classmethod
def with_json_and_owner(cls, jsonobj, owner):
    ' Instantiates by forwarding to `with_json()`, then remembers the\n        "owner" of the instantiated elements. The "owner" is the resource\n        containing the receiver and is used to resolve contained resources.\n        \n        :param dict jsonobj: Decoded JSON dictionary\n        :param FHIRElement owner: The owning parent\n        :returns: An instance or a list of instances created from JSON data\n        '
    instance = cls.with_json(owner)
    if isinstance(instance, list):
        for inst in instance:
            inst._owner = owner
    else:
        instance._owner = owner
    return instance

dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/fhirabstractbase.py FHIRAbstractBase.with_json_and_owner/VarMisuse@25/177 `jsonobj`->`owner`