@property
    @memoized
    def referenced_case(self):
        from corehq.form_processor.backends.sql.dbaccessors import CaseAccessorSQL
        return CaseAccessorSQL.get_case(self.referenced_id)
For a 'forward' index this is the case that the the index points to.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/models.py/CommCareCaseIndexSQL.referenced_case