WASHINGTON — Patients treated at Veterans Affairs hospitals and clinics will be able to use medical marijuana in the 14 states where it's legal, according to new federal guidelines.

The directive from the Veterans Affairs Department in the coming week is intended to clarify current policy that says veterans can be denied pain medication if they use illegal drugs. Veterans groups have complained for years that this could bar veterans from VA benefits if they were caught using medical marijuana.

The new guidance does not authorize VA doctors to begin prescribing medical marijuana, which is considered an illegal drug under federal law. But it will now make clear that in the 14 states where state and federal law are in conflict, VA clinics generally will allow the use of medical marijuana for veterans already taking it under other clinicians.

"For years, there have been veterans coming back from the Iraq war who needed medical marijuana and had to decide whether they were willing to cut down on their VA medications," said John Targowski, a legal adviser to the group Veterans for Medical Marijuana Access, which worked with the VA on the issue.

Targowski in an interview on Saturday said that confusion over the government's policy might have led some veterans to distrust their doctors or avoid the VA system.

Dr. Robert A. Petzel, the VA's undersecretary for health, sent a letter to Veterans for Medical Marijuana Access this month that spells out the department's policy. The guidelines will be distributed to the VA's 900 care facilities around the country in the next week.

Petzel makes clear that a VA doctor could reserve the right to modify a veteran's treatment plan if there were risks of a bad interaction with other drugs.

"If a veteran obtains and uses medical marijuana in a manner consistent with state law, testing positive for marijuana would not preclude the veteran from receiving opioids for pain management" in a VA facility, Petzel wrote. "The discretion to prescribe, or not prescribe, opioids in conjunction with medical marijuana, should be determined on clinical grounds."

Opioids are narcotic painkillers, and include morphine, oxycodone and methadone.

Under the previous policy, local VA clinics in some of the 14 states, such as Michigan, had opted to allow the use of medical marijuana because there is no rule explicitly prohibiting them from doing so.

According to the National Conference of State Legislatures, there are 14 states and the District of Columbia with medical marijuana laws. They are: Alaska, California, Colorado, Hawaii, Maine, Maryland, Michigan, Montana, Nevada, New Mexico, Oregon, Rhode Island, Vermont and Washington. New Jersey also recently passed a medical marijuana law, which is scheduled to be implemented in January.