You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Congenital pulmonary airway malformation and explain in detail?
Congenital pulmonary airway malformation (CPAM), formerly known as congenital cystic adenomatoid malformation (CCAM), is a congenital disorder of the lung similar to bronchopulmonary sequestration. In CPAM, usually an entire lobe of lung is replaced by a non-working cystic piece of abnormal lung tissue. This abnormal tissue will never function as normal lung tissue. The underlying cause for CPAM is unknown. It occurs in approximately 1 in every 30,000 pregnancies.In most cases the outcome of a fetus with CPAM is very good. In rare cases, the cystic mass grows so large as to limit the growth of the surrounding lung and cause pressure against the heart. In these situations, the CPAM can be life-threatening for the fetus. CPAM can be separated into five types, based on clinical and pathologic features. CPAM type 1 is the most common, with large cysts and a good prognosis.  CPAM type 2 (with medium-sized cysts) often has a poor prognosis, owing to its frequent association with other significant anomalies. Other types are rare.

Signs and symptoms
Three quarters of affected patients are asymptomatic. However, 25% develop cyanosis, pneumothorax, and show signs of increased breathing difficulty (tachypnoea and intercostal retractions).At examination, they may show hyper-resonance at percussion, diminished vesicular murmur and an asymmetrical thorax.

Cause
The cause of CPAM is unknown.

Diagnosis
CPAMs are often identified during routine prenatal ultrasonography. Identifying characteristics on the sonogram include: an echogenic (bright) mass appearing in the chest of the fetus, displacement of the heart from its normal position, a flat or everted (pushed downward) diaphragm, or the absence of visible lung tissue.CPAMs are classified into three different types based largely on their gross appearance.  Type I has a large (>2 cm) multiloculated cysts.  Type II has smaller uniform cysts.  Type III is not grossly cystic, referred to as the "adenomatoid" type.  Microscopically, the lesions are not true cysts, but communicate with the surrounding parenchyma. Some lesions have an abnormal connection to a blood vessel from an aorta and are referred to as "hybrid lesions."

Imaging
The earliest point at which a CPAM can be detected is by prenatal ultrasound. The classic description is of an echogenic lung mass that gradually disappears over subsequent ultrasounds. The disappearance is due to the malformation becoming filled with fluid over the course of the gestation, allowing the ultrasound waves to penetrate it more easily and rendering it invisible on sonographic imaging. When a CPAM is rapidly growing, either solid or with a dominant cyst, they have a higher incidence of developing venous outflow obstruction, cardiac failure and ultimately hydrops fetalis. If hydrops is not present, the fetus has a 95% chance of survival. When hydrops is present, risk of fetal demise is much greater without in utero surgery to correct the pathophysiology. The greatest period of growth is during the end of the second trimester, between 20–26 weeks.A measure of mass volume divided by head circumference, termed cystic adenomatoid malformation volume ratio (CVR) has been developed to predict the risk of hydrops. The lung mass volume is determined using the formula (length × width × anteroposterior diameter ÷ 2), divided by head circumference. With a CVR greater than 1.6 being considered high risk. Fetuses with a CVR less than 1.6 and without a dominant cyst have less than a 3% risk of hydrops. After delivery, if the patient is symptomatic, resection is mandated. If the infant is asymptomatic, the need for resection is a subject of debate, though it is usually recommended. Development of recurrent infections, rhabdomyosarcoma, adenocarcinomas in situ within the lung malformation have been reported.

Treatment
In most cases, a fetus with CPAM is closely monitored during pregnancy and the CPAM is removed via surgery after birth. Most babies with a CPAM are born without complication and are monitored during the first few months.  Many patients have surgery, typically before their first birthday, because of the risk of recurrent lung infections associated with CPAMs.  Some pediatric surgeons can safely remove these lesions using very tiny incisions using minimally invasive surgical techniques (thoracoscopy)