(self, item, form, case_id)
return item_group, study_event
Return the current item group and study event. Opens a new item group if necessary.

        Item groups are analogous to CommCare question groups. Like question groups, they can repeat.
Return the current item group and study event. Opens a new item group if necessary.
Return the current item group and study event . Opens a new item group if necessary .
def get_item_group(self, item, form, case_id):
        """
        Return the current item group and study event. Opens a new item group if necessary.

        Item groups are analogous to CommCare question groups. Like question groups, they can repeat.
        """
        study_event = self.get_study_event(item, form, case_id)
        oc_form = study_event.forms[item.form_oid]
        if not oc_form[item.item_group_oid]:
            oc_form[item.item_group_oid].append(ItemGroup(self._domain_name, item.item_group_oid))
        item_group = oc_form[item.item_group_oid][-1]
        return item_group, study_event
def get_item_group ( self , item , form , case_id ) : study_event = self . get_study_event ( item , form , case_id ) oc_form = study_event . forms [ item . form_oid ] if not oc_form [ item . item_group_oid ] : oc_form [ item . item_group_oid ] . append ( ItemGroup ( self . _domain_name , item . item_group_oid ) ) item_group = oc_form [ item . item_group_oid ] [ - 1 ] return item_group , study_event