I think he's asking about
right-click self-casting, in which case the syntax would be:
Code:
/cast [button:2, @player] [] Flash Heal
This means "if clicked with the right button, cast Flash Heal on the player; otherwise, cast Flash Heal like normal".