def mk_moca(data_id, data):  # measurement group 14
    """
            transforms a d-moca.json form into the triples used by insertMeasurementGroup to
                store each measurement that is in the form
            :param data_id: unique id from the json form
            :param data: data array from the json form
            :return: The list of (typeid,valType,value) triples that are used by insertMeasurementGroup to add the measurements
            """
    return [(220, 2, data_id),
            (116, 7, data['dots']), (117, 7, data['cube']),
            (118, 7, data['contour']), (119, 7, data['numbers']),
            (120, 7, data['hands']), (121, 7, data['lion']),
            (122, 7, data['rhino']), (123, 7, data['camel']),
            (124, 7, data['numforward']), (125, 7, data['numbackward']),
            (126, 7, data['tap']), (127, 7, data['subtract']),
            (128, 7, data['lang1']), (129, 7, data['lang2']),
            (130, 7, data['fluency']), (131, 7, data['abstract1']),
            (132, 7, data['abstract2']), (133, 7, data['face']),
            (134, 7, data['velvet']), (135, 7, data['church']),
            (136, 7, data['daisy']), (137, 7, data['red']),
            (138, 7, data['mocadate']), (139, 7, data['mocamonth']),
            (140, 7, data['mocayear']), (141, 7, data['mocaday']),
            (142, 7, data['place']), (143, 7, data['city']),
            (144, 7, data['mocatotal'])]