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 Primary sclerosing cholangitis and explain in detail?
Primary sclerosing cholangitis (PSC) is a long-term progressive disease of the liver and gallbladder characterized by inflammation and scarring of the bile ducts, which normally allow bile to drain from the gallbladder. Affected individuals may have no symptoms or may experience signs and symptoms of liver disease, such as yellow discoloration of the skin and eyes, itching, and abdominal pain.
The bile duct scarring that occurs in PSC narrows the ducts of the biliary tree and impedes the flow of bile to the intestines. Eventually, it can lead to cirrhosis of the liver and liver failure. PSC increases the risk of various cancers, including liver cancer, gallbladder carcinoma, colorectal cancer, and cholangiocarcinoma.  The underlying cause of PSC is unknown. Genetic susceptibility, immune system dysfunction, and abnormal composition of the gut flora may play a role. This is further suggested by the observation that around 75% of individuals with PSC also have inflammatory bowel disease (IBD), most often ulcerative colitis.No effective medical treatment for primary sclerosing cholangitis is known. Its most definitive treatment is a liver transplant, but it can recur after transplantation. Many people affected by PSC require a liver transplant.
PSC is a rare disease and most commonly affects people with IBD. About 3.0 to 7.5% of people with ulcerative colitis have PSC, and 80% of people with PSC have some form of IBD. Diagnosis usually occurs in people in their 30s or 40s. Individuals of Northern European ancestry are affected more often than people of Southern European or Asian descent. Men are affected more often than women. The disease was initially described in the mid-1800s, but was not fully characterized until the 1970s with the advent of improved medical-imaging techniques such as endoscopic retrograde cholangiopancreatography.

Signs and symptoms
Nearly half of people with PSC do not have symptoms, and are often incidentally discovered to have PSC due to abnormal liver function tests; however, a substantial proportion have debilitating signs and symptoms of the disease. Signs and symptoms of PSC may include severe itching and nonspecific fatigue. Yellowing of the skin and white portion of the eyes may also be seen. Enlargement of the liver and spleen are seen in roughly 40% of affected individuals. Abdominal pain affects about 20% of people with PSC.Multiple episodes of life-threatening acute cholangitis (infection within the bile ducts) can be seen due to impaired drainage of the bile ducts, which increases the risk of infection.
Dark urine due to excess conjugated bilirubin, which is water-soluble and excreted by the kidneys (i.e. choluria)
Malabsorption, especially of fat, and steatorrhea (fatty stool), due to an inadequate amount of bile reaching the small intestine, leading to decreased levels of the fat-soluble vitamins, A, D, E, and K.
Portal hypertension, a complication of cirrhosis, which can manifest with esophageal and parastomal varices as well as hepatic encephalopathy (mental status alteration/disturbance caused by liver dysfunction and shunting of blood away from the scarred liver; such that ammonia detoxification is reduced with concomitant encephalopathy) or ascites.

Cause
The exact cause of primary sclerosing cholangitis is  unknown, and its pathogenesis is improperly understood. Although PSC is thought to be caused by autoimmune disease, it does not demonstrate a clear response to immunosuppressants. Thus, many experts believe it to be a complex, multifactorial (including immune-mediated) disorder and perhaps one that encompasses several different hepatobiliary diseases.Data have provided novel insights suggesting:

an important association between the intestinal microbiota and PSC and
a process referred to as cellular senescence and the senescence-associated secretory phenotype in the pathogenesis of PSC.In addition, longstanding, well-recognized associations are seen between PSC and human leukocyte antigen alleles (A1, B8, and DR3).

Pathophysiology
PSC is characterized by inflammation of the bile ducts (cholangitis) with consequent stricturing (i.e., narrowing) and hardening (sclerosis) of these ducts due to scar formation, be it inside and/or outside the liver.  The resulting scarring of the bile ducts obstructs the flow of bile, which further perpetuates bile duct and liver injury.  Chronic impairment of bile flow due to blockage and dysfunctional bile transport (cholestasis) causes progressive biliary fibrosis and ultimately biliary cirrhosis and liver failure.The primary physiological function of bile is to assist in the breakdown and absorption of fat in the intestinal tract; a relative deficiency of bile can lead to fat malabsorption and deficiencies of fat-soluble vitamins (A, D, E, K).Liver enlargement is seen due to portal hypertension caused by compression of portal veins by the proximate sclerosed intrahepatic bile ducts, and leads to right upper quadrant abdominal pain.

Diagnosis
PSC is generally diagnosed on the basis of having at least two of three clinical criteria after secondary causes of sclerosing cholangitis have been ruled out:
serum alkaline phosphatase (ALP) > 1.5x the upper limit of normal for longer than 6 months
cholangiography demonstrating biliary strictures or irregularity consistent with PSC
liver biopsy consistent with PSC (if available)Historically, a cholangiogram would be obtained via endoscopic retrograde cholangiopancreatography (ERCP), which typically reveals "beading" (alternating strictures and dilation) of the bile ducts inside and/or outside the liver. Currently, the preferred option for diagnostic cholangiography, given its noninvasive yet highly accurate nature, is magnetic resonance cholangiopancreatography (MRCP), a magnetic resonance imaging technique.  MRCP has unique strengths, including high spatial resolution, and can even be used to visualize the biliary tract of small animal models of PSC.Most people with PSC have evidence of autoantibodies and abnormal immunoglobulin levels. For example, approximately 80% of people with PSC have perinuclear antineutrophil cytoplasmic antibodies (P-ANCA); however, this and other immunoglobulin findings are not specific to those with PSC and are of unclear clinical significance/consequence. Antinuclear antibodies and anti-smooth muscle antibody are found in 20-50% of PSC patients, and likewise are not specific for the disease,but may identify a subgroup of PSC patients who also have autoimmune hepatitis (i.e. PSC-AIH overlap syndrome).The differential diagnosis can include primary biliary cholangitis (formerly referred to as primary biliary cirrhosis), drug-induced cholestasis, cholangiocarcinoma, IgG4-related disease, post-liver transplantation nonanastomotic biliary strictures,  and HIV-associated cholangiopathy. Primary sclerosing cholangitis and primary biliary cholangitis are distinct entities and exhibit important differences, including the site of tissue damage within the liver, associations with IBD, which includes ulcerative colitis and Crohns disease, response to treatment, and risks of disease progression.

Classification
Primary sclerosing cholangitis is typically classified into three subgroups based on whether the small and/or large bile ducts are affected. The subgroups of PSC include:
Classic PSC
Small-duct PSC
PSC associated with autoimmune hepatitis

Management
No pharmacologic treatment has been approved by the U.S. Food and Drug Administration for PSC. Some experts recommend a trial of ursodeoxycholic acid (UDCA), a bile acid occurring naturally in small quantities in humans, as it has been shown to lower elevated liver enzyme numbers in patients with PSC and has proven effective in other cholestatic liver diseases. However, UDCA has yet to be shown to clearly lead to improved liver histology and survival. Guidelines from the American Association for the Study of Liver Diseases and the American College of Gastroenterology do not support the use of UDCA but guidelines from the European Association for the Study of the Liver do endorse the use of moderate doses (13-15 milligrams per kilogram) of UDCA for PSC.Supportive treatment for PSC symptoms is the cornerstone of management. These therapies are aimed at relieving symptoms such as itching with antipruritics (e.g. bile acid sequestrants such as cholestyramine); antibiotics to treat episodes of ascending cholangitis; and vitamin supplements, as people with PSC are often deficient in fat-soluble vitamins (A, D, E, and K).ERCP and specialized techniques may also be needed to help distinguish between a benign PSC stricture and a bile-duct cancer (cholangiocarcinoma).Liver transplantation is the only proven long-term treatment of PSC. Indications for transplantation include recurrent bacterial ascending cholangitis, decompensated cirrhosis, hepatocellular carcinoma, hilar cholangiocarcinoma, and complications of portal hypertension. Not all patients are candidates for liver transplantation, and some experience disease recurrence afterward. The reasons why some patients develop recurrent PSC remains largely obscure, but surprisingly, those without recurrence of disease (hence protected from recurrence) are characterized by an increased presence of the potentially pathogenic  Shigella species.

Prognosis
Estimated median survival from diagnosis until liver transplant or PSC-related death is 21.3 years. Various models have been developed to help predict survival, but their use is generally best suited for research and not clinical purposes. A serum alkaline phosphatase less than 1.5 times the upper limit of normal has been associated with better outcomes, but its use in predicting long-term outcomes is unclear. An IgA isotype autoantibody to the pancreatic GP2 protein (anti-GP2 IgA antibody) is the first verified prognostic biomarker in PSC. The role of anti-GP2 IgA in PSC was simultaneously investigated and reported by two research groups, and later confirmed by others. Association was demonstrated between anti-GP2 IgA and progressive liver fibrosis, cholangiocarcinoma development and shorter transplantation free survival in PSC patients.Other markers which may be measured and monitored are a complete blood count, serum liver enzymes, bilirubin levels (usually grossly elevated), kidney function, and electrolytes. Fecal fat measurement is occasionally ordered when symptoms of malabsorption (e.g., gross steatorrhea) are prominent.

Related diseases
The development of any of the cancers associated with PSC predicts a poor prognosis. Complications from PSC-associated cancers account for 40% of deaths from PSC. Primary sclerosing cholangitis is one of the major known risk factors for cholangiocarcinoma, a cancer of the biliary tree, for which the lifetime risk among patients with PSC is 10-15%. This represents a 400-fold greater risk of developing cholangiocarcinoma compared to the general population.  Surveillance for cholangiocarcinoma in patients with PSC is encouraged, with some experts recommending annual surveillance with a specialized imaging study and serum markers, although consensus regarding the modality and interval has yet to be established. Similarly, a screening colonoscopy is recommended in people who receive a new diagnosis of primary sclerosing cholangitis since their risk of colorectal cancer is 10 times higher than that of the general population.PSC is strongly associated with IBD, in particular ulcerative colitis (UC) and to a lesser extent Crohns disease. As many as 5% of patients with IBD are co-diagnosed with PSC, and approximately 70% of people with PSC have IBD. Of note, the presence of colitis appears to be associated with a greater risk of liver disease progression and bile duct cancer (cholangiocarcinoma) development, although this relationship remains poorly understood. Close monitoring of PSC patients is vital.
Various forms of gallbladder disease such as gallstones and gallbladder polyps are also common in those with PSC