It really is just like a medieval doctor bleeding his patient, observing that the patient is getting sicker, not better, and deciding that this calls for even more bleeding.
The person is smacked with a bamboo stick on his buttocks, sometimes on his back, depending on what the person did. The person is left with deep cuts and torn flesh and muscles and then treated by the same police who applied the punishment.