The chief historical examples are rhubarb, senna, santonin and logwood for urine; iron preparations, bismuth preparations and charcoal for darkening the faeces. There are two different processes: a substance absorbed and subsequently excreted can colour a secretion, while material remaining in the intestinal lumen can colour the stools without demonstrating systemic drug absorption.
Colour alone does not identify either the drug or a disease. A medicinal pigment can resemble blood or a bile pigment; pH, timing after administration and appropriate chemical or microscopic examination distinguish possibilities. Conversely, a history of taking a colouring medicine does not prove that an observed specimen contains no blood. These examples describe pharmacological and historical observations, not results from an unseen specimen.