System detects errors when medication is self-administered