Opioid is defined as a chemical such as opium, heroin, and other molecules with related structures that reduce pain and induce feelings of euphoria.