Effects of a nursing pain programme on patient outcomes