def CreatePatientDataVertexProperty(g, valList,type='object'):
    """

        Create a vertex property that holds heterogeneous types of data in a list

    :param g:
    :param valList:
    :return:
    """

    # Create new property to hold raw clinical values
    patientDataVertexProp = g.new_vertex_property(type)

    # Iterate thru each vertex and add raw clinical values to each node
    for ii in range(len(valList)):
        # curPatDataArray = patientDataArray()
        # curPatDataArray.dataValueList = valList[ii]
        # patientDataVertexProp[g.vertex(ii)] = curPatDataArray
        patientDataVertexProp[g.vertex(ii)] = valList[ii]

    return patientDataVertexProp