You can certainly do this using a Slash Voice. You then edit it’s position in the properties panel. You may need to flip the notes of the other voice by pressing F.
To my knowledge, you won’t be able to enter the bar repeat sign above the staff without a workaround.