Mid-level practitioners (at least Nurse Practitioners) can get a DEA registration and legally prescribe Tramadol.  Most drugs used for opiate withdrawal (except methadone) are used off-label, so that isn't really that much of an issue.