making the drug the root and joining to the drugreferencemap