A cancer patient verbally abused 999 switchboard staff and then exposed himself to paramedics after demanding morphine.