Healthcare vendors can prescribe this sort of medication, although the dosage may really need to be altered—that's why the necessity for compounding.
The Drug Enforcement Administration (DEA) has oversight https://thesocialvibes.com/story2882428/the-greatest-guide-to-compounding-pharmacy