def getDateStructureGeni(event):
    """
    Generates a Data structure to be introduced in Geni input
    """
    accuracy = event.get_accuracy()
    data_values = {}
    if event.get_year() or event.get_month() or event.get_day():
        if event.get_year():
            data_values['year'] = event.get_year()
        if event.get_month():
            data_values['month'] = event.get_month()
        if event.get_day():
            data_values['day'] = event.get_day()
        if accuracy == 'ABOUT':
            data_values['circa'] = True
        elif accuracy == 'BEFORE':
            data_values['range'] = 'before'
        elif accuracy == 'AFTER':
            data_values['range'] = 'after'
        elif accuracy == 'BETWEEN':
            data_values['range'] = 'between'
            if event.get_year_end():
                data_values['end_year'] = event.get_year_end()
            if event.get_month_end():
                data_values['end_month'] = event.get_month_end()
            if event.get_day_end():
                data_values['end_day'] = event.get_day_end()
    return data_values
