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
cephalocaudal.
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
The medical term for facing forward on the front is "anterior."
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.
The medical term you are looking for is "posterior." This term refers to the back side of the body or something positioned behind a particular structure.
Anteroposterior is the directional term used to describe front to back.
Anterior, the front. As opposed to posterior, behind
Posterior.
Dorsal