modified diagnosis script to take into account primary care