def METHOD_NAME(ds):
    """
    Get patient name, ID, gender and DOB
    :param ds: a dataset
    :return: dict_basic_info, a dictionary of PatientName, PatientID,
    PatientSex, PatientBirthDate.
    """
    dict_basic_info = {}
    dict_basic_info['name'] = str(ds.get("PatientName"))
    dict_basic_info['id'] = str(ds.get("PatientID"))
    dict_basic_info['gender'] = str(ds.get("PatientSex"))
    dict_basic_info['dob'] = str(ds.get("PatientBirthDate"))
    return dict_basic_info