A woman who survived a cardiac arrest later found to have been caused by a medical dye was fatally given the same substance again just weeks later.