def updateDF(df, fields, id_patient):
    """
    fields is a dictionary of column names and values.
    The function updates the row of id_patient with the values in fields.
    """
    for key in fields:
        df.loc[df["id_patient"] == id_patient, key] = fields[key][0]
    return df