It could be ventral to dorsal, anterior to posterior, or even rostral to caudal, depending on the orientation.
I believe the preceding answer is the most correct however, if you're looking for one medical term it could be anteroposterior but that means "relating to both the front and back" and not "front to back".
You can use Anterior/Posterior or Ventral/Dorsal
A posteroanterior
Posteroanterior means from back to front.
Anterior is the medical term meaning front or in front of.
Posterior (Back)Anterior (Front)term means pertaining to the back and to the front
Anterior means on the front side. Someone lying on their back is supine.
Dorsal is the medical term meaning back.
Dorsum is a medical term meaning back. For example the dorsum of the hand is commonly known as the back of the hand.
Dorsal means situated on the back or on the back part of an organ. In contrast, ventral means situated on the belly side.
Anteroposterior is the directional term used to describe front to back.
Anterior, the front. As opposed to posterior, behind
Posterior.
Dorsal
It's the area in front of the elbow