The varying of responses to a given intervention or treatment that occurs across patients or patient subgroups.