

@property
def baby_name(self):
    case = CommCareCase.get(self.case['_id'])
    baby_case = [c for c in case.get_subcases().all() if (case.type == 'baby')]
    if baby_case:
        return baby_case[0].name
    else:
        return '---'

dataset/ETHPy150Open dimagi/commcare-hq/custom/apps/crs_reports/reports.py HNBCReportDisplay.baby_name/VarMisuse@45/59 `c`->`case`