Ejemplo n.º 1
0
 def __init__(self, domain, oid):
     self.oid = oid
     # Unused. We use SINGLE_EVENT_FORM_EVENT_INDEX in this project.
     # self.is_repeating = is_study_event_repeating(domain, oid)
     self.forms = defaultdict(lambda: defaultdict(list))  # a dict of forms containing a dict of item groups
     self.name = get_study_event_name(domain, oid)
     self.start_datetime = None
     self.end_datetime = None
Ejemplo n.º 2
0
 def __init__(self, domain, oid, case_id):
     self.oid = oid
     self.case_id = case_id
     self.is_repeating = is_study_event_repeating(domain, oid)
     self.forms = defaultdict(lambda: defaultdict(list))  # a dict of forms containing a dict of item groups
     self.name = get_study_event_name(domain, oid)
     self.start_datetime = None
     self.end_datetime = None