Severe defects are often found during pregnancy or soon after birth. Many congenital heart defects are not diagnosed until children are older. Treatment can include medicines, medical procedures and surgery.