def get_parent(request):
    """
    A helper method that returns the appropriate parent for the designated user type

    :param request: The request with user information
    :return: The parent that a template will extend
    """
    parent = 'core/landing/Patient.html'

    if request.user.groups.filter(name='Doctor').exists():
        parent = 'core/landing/Doctor.html'

    elif request.user.groups.filter(name='Nurse').exists():
        parent = 'core/landing/Nurse.html'

    elif request.user.groups.filter(name='Admin').exists():
        parent = 'core/landing/Admin.html'

    return parent