 It is also used as a dye in the manufacturing of capsules.In obstetric surgery, indigo carmine solutions are sometimes employed to detect amniotic fluid leaks.In urologic surgery, intravenous injection of indigo carmine is often used to highlight portions of the urinary tract.