The length of time opioids remain in your bloodstream is calculated by a variety of variables, including the type of drug, the length of time the drug had been consumed, history of opioid usage, medical history of the user, weight, and gender. Accordingly, different tests can be used to detect opioid in the system.
https://recoverypartnernetwork.com/drug/opioid/opioid-use-disorder