There is a device called the dialysis. This device flushes the waste from the body (In this case, poo). Dialysis are still used today for patients that are not physically able to go to the bathroom and do their 'business'.
Your question is a bit unrealistic. All babies should be born without a rectum. But if they do not have one (IF), then dialysis may be used.
It looks like it's called imperforate anus:
http://www.pedisurg.com/PtEduc/Imperforate_Anus.htm
Rectal means pertaining to the rectum
An AIDS baby is a derogatory term for a baby who was born with AIDS.
The word latus rectum came from Latin, latus means 'side' or line and rectum means 'straight'.
The medical term for preemie is premature infant, referring to a baby born before completing 37 weeks of gestation.
Birth
Proctitis is the medical term meaning inflammation of the rectum and anus
Proctology.
It`s a baby born premature not the full 9 month term.
This exam is called a proctoscopy if it is done using a proctocope. Both are examined at the same time.
flatulance
rectum
There's nothing set in stone. Normally after 37 weeks a baby is concidered full term but could still have some unexpected complications. Before 37 weeks doctors are generally prepared for a baby who is likely to have complications but often even a 35 week baby will be delivered without complications.