There are actually two types of hernia that develop in children or even in adults. One is the umbilical hernia and the other is inguinal hernia. The inguinal hernia is much more common in boys rather than in little girls. It is, however, less common than the umbilical hernia.
When the testes are descending into the scrotum, the wall may not close fully. In such a case, slowly the intestines will start to drop and it can fall down leading to a swelling in the scrotum. Your pediatrician will be able to feel it and it may cause no trouble initially, but the only cure for it is surgery. Depending on the severity of the swelling, you will be advised on how long you can wait before you decide to operate.
You will also be advised to do a sonography which will tell you the extent of the swelling. Since surgery is the only option it is better to get it done sooner, than to wait till the child experiences any discomfort and needs to be rushed for an emergency surgery for the same.
For this surgery, the child would be required to stay overnight at the hospital since he would need to run some blood tests and will need an intravenous saline a couple of hours before the surgery. He will be given general anaesthesia proper to the surgery and the actual time of the surgery will not last more than forty five minutes.
The child would still take at least two hours in the operation theatre before he can be stitched up and brought out. It could take up to two hours before the child comes out of anesthesia. He will feel normal and will be made to drink liquids and then semi solids to see if the anaesthesia has worn off, and that he is not vomiting.
After this proceudre, he will be made to pass urine, which will be measured and the doctors will check that he is able to pass stools without any doscomfort. If he can eat regular foods without vomiting and pass urine and stools normally, he will be free to go home.