(question, column_id=None, data_type=None, root_doc=False)
return {
        "type": "expression",
        "column_id": column_id or question['value'],
        "display_name": path[-1],
        "datatype": data_type or get_form_indicator_data_type(question['type']),
        "expression": expression
    }
Return a data source indicator configuration (a dict) for the given form
    question.
Return a data source indicator configuration (a dict) for the given form
    question.
Return a data source indicator configuration ( a dict ) for the given form question .
def make_form_question_indicator(question, column_id=None, data_type=None, root_doc=False):
    """
    Return a data source indicator configuration (a dict) for the given form
    question.
    """
    path = question['value'].split('/')
    expression = {
        "type": "property_path",
        'property_path': ['form'] + path[2:],
    }
    if root_doc:
        expression = {"type": "root_doc", "expression": expression}
    return {
        "type": "expression",
        "column_id": column_id or question['value'],
        "display_name": path[-1],
        "datatype": data_type or get_form_indicator_data_type(question['type']),
        "expression": expression
    }
def make_form_question_indicator ( question , column_id = None , data_type = None , root_doc = False ) : path = question [ 'value' ] . split ( '/' ) expression = { "type" : "property_path" , 'property_path' : [ 'form' ] + path [ 2 : ] , } if root_doc : expression = { "type" : "root_doc" , "expression" : expression } return { "type" : "expression" , "column_id" : column_id or question [ 'value' ] , "display_name" : path [ - 1 ] , "datatype" : data_type or get_form_indicator_data_type ( question [ 'type' ] ) , "expression" : expression }