As the state’s shortage of primary care doctors grows, people are waiting longer for medical care, according to a new survey by the Massachusetts Medical Society. “The shortage is getting more severe,” said Dr. Mario Motta, the medical society’s president. The state’s health care dilemma can serve as a valuable lesson for a nation whose residents are locked in a frenzied debate about health care reform, he added.