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 Quinine and explain in detail?
Quinine is a medication used to treat malaria and babesiosis. This includes the treatment of malaria due to Plasmodium falciparum that is resistant to chloroquine when artesunate is not available. While sometimes used for nocturnal leg cramps, quinine is not recommended for this purpose due to the risk of serious side effects. It can be taken by mouth or intravenously. Malaria resistance to quinine occurs in certain areas of the world. Quinine is also used as an ingredient in tonic water to impart a bitter taste.Common side effects include headache, ringing in the ears, vision issues, and sweating. More severe side effects include deafness, low blood platelets, and an irregular heartbeat. Use can make one more prone to sunburn. While it is unclear if use during pregnancy causes harm to the baby, treating malaria during pregnancy with quinine when appropriate is still recommended. Quinine is an alkaloid, a naturally occurring chemical compound. How it works as a medicine is not entirely clear.Quinine was first isolated in 1820 from the bark of a cinchona tree, which is native to Peru, and its molecular formula was determined by Strecker in 1854. The class of chemical compounds to which it belongs is thus called the cinchona alkaloids. Bark extracts had been used to treat malaria since at least 1632 and it was introduced to Spain as early as 1636 by Jesuit missionaries returning from the New World. It is on the World Health Organizations List of Essential Medicines. Treatment of malaria with quinine marks the first known use of a chemical compound to treat an infectious disease.

Uses
Medical
As of 2006, quinine is no longer recommended by the World Health Organization (WHO) as a first-line treatment for malaria, because there are other substances that are equally effective with fewer side effects. They recommend that it be used only when artemisinins are not available. Quinine is also used to treat lupus and arthritis.
Quinine was frequently prescribed as an off-label treatment for leg cramps at night, but this has become less common due to a warning from the US Food and Drug Administration (FDA) that such practice is associated with life-threatening side effects. Quinine can also act as a competitive inhibitor of monoamine oxidase (MAO), an enzyme that removes neurotransmitters from the brain. As an MAO inhibitor, it has potential to serve as a treatment for individuals with psychological disorders similar to antidepressants that inhibit MAO.

Available forms
Quinine is a basic amine and is usually provided as a salt. Various existing preparations include the hydrochloride, dihydrochloride, sulfate, bisulfate and gluconate. In the United States, quinine sulfate is commercially available in 324-mg tablets under the brand name Qualaquin.
All quinine salts may be given orally or intravenously (IV); quinine gluconate may also be given intramuscularly (IM) or rectally (PR). The main problem with the rectal route is that the dose can be expelled before it is completely absorbed; in practice, this is corrected by giving a further half dose. No injectable preparation of quinine is licensed in the US; quinidine is used instead.

Beverages
Quinine is a flavor component of tonic water and bitter lemon drink mixers. On the soda gun behind many bars, tonic water is designated by the letter "Q" representing quinine.Tonic water was initially marketed as a means of delivering quinine to consumers in order to offer anti-malarial protection. According to tradition, because of the bitter taste of anti-malarial quinine tonic, British colonials in India mixed it with gin to make it more palatable, thus creating the gin and tonic cocktail, which is still popular today. While it is possible to drink enough tonic water to temporarily achieve quinine levels that offer anti-malarial protection, this is not a sustainable long-term means of protection.In France, quinine is an ingredient of an apéritif known as quinquina, or "Cap Corse," and the wine-based apéritif Dubonnet. In Spain, quinine (also known as "Peruvian bark" for its origin from the native cinchona tree) is sometimes blended into sweet Malaga wine, which is then called "Malaga Quina". In Italy, the traditional flavoured wine Barolo Chinato is infused with quinine and local herbs, and is served as a digestif. In Scotland, the company A.G. Barr uses quinine as an ingredient in the carbonated and caffeinated beverage Irn-Bru. In Uruguay and Argentina, quinine is an ingredient of a PepsiCo tonic water named Paso de los Toros. In Denmark, it is used as an ingredient in the carbonated sports drink Faxe Kondi made by Royal Unibrew.
As a flavouring agent in drinks, quinine is limited to less than 83 parts per million in the United States, and 100 mg⁄l in the European Union.

Scientific
Quinine (and quinidine) are used as the chiral moiety for the ligands used in Sharpless asymmetric dihydroxylation as well as for numerous other chiral catalyst backbones. Because of its relatively constant and well-known fluorescence quantum yield, quinine is used in photochemistry as a common fluorescence standard.

Contraindications
Because of the narrow difference between its therapeutic and toxic effects, quinine is a common cause of drug-induced disorders, including thrombocytopenia and thrombotic microangiopathy. Even from minor levels occurring in common beverages, quinine can have severe adverse effects involving multiple organ systems, among which are immune system effects and fever, hypotension, hemolytic anemia, acute kidney injury, liver toxicity, and blindness. In people with atrial fibrillation, conduction defects, or heart block, quinine can cause heart arrhythmias, and should be avoided.Quinine can cause hemolysis in G6PD deficiency (an inherited deficiency), but this risk is small and the physician should not hesitate to use quinine in people with G6PD deficiency when there is no alternative.

Adverse effects
Quinine can cause unpredictable serious and life-threatening blood and cardiovascular reactions including low platelet count and hemolytic-uremic syndrome/thrombotic thrombocytopenic purpura (HUS/TTP), long QT syndrome and other serious cardiac arrhythmias including torsades de pointes, blackwater fever, disseminated intravascular coagulation, leukopenia, and neutropenia. Some people who have developed TTP due to quinine have gone on to develop kidney failure. It can also cause serious hypersensitivity reactions including anaphylactic shock, urticaria, serious skin rashes, including Stevens–Johnson syndrome and toxic epidermal necrolysis, angioedema, facial edema, bronchospasm, granulomatous hepatitis, and itchiness.The most common adverse effects involve a group of symptoms called cinchonism, which can include headache, vasodilation and sweating, nausea, tinnitus, hearing impairment, vertigo or dizziness, blurred vision, and disturbance in color perception. More severe cinchonism includes vomiting, diarrhea, abdominal pain, deafness, blindness, and disturbances in heart rhythms. Cinchonism is much less common when quinine is given by mouth, but oral quinine is not well tolerated (quinine is exceedingly bitter and many people will vomit after ingesting quinine tablets). Other drugs, such as Fansidar (sulfadoxine with pyrimethamine) or Malarone (proguanil with atovaquone), are often used when oral therapy is required. Quinine ethyl carbonate is tasteless and odourless, but is available commercially only in Japan. Blood glucose, electrolyte and cardiac monitoring are not necessary when quinine is given by mouth.
Quinine has diverse unwanted interactions with numerous prescription drugs, such as potentiating the anticoagulant effects of warfarin.

Mechanism of action
Quinine is used for its toxicity to the malarial pathogen, Plasmodium falciparum, by interfering with its ability to dissolve and metabolize hemoglobin. As with other quinoline antimalarial drugs, the precise mechanism of action of quinine has not been fully resolved, although in vitro studies indicate it inhibits nucleic acid and protein synthesis, and inhibits glycolysis in P. falciparum. The most widely accepted hypothesis of its action is based on the well-studied and closely related quinoline drug, chloroquine. This model involves the inhibition of hemozoin biocrystallization in the heme detoxification pathway, which facilitates the aggregation of cytotoxic heme. Free cytotoxic heme accumulates in the parasites, causing their deaths. Quinine may target the malaria purine nucleoside phosphorylase enzyme.

Chemistry
The UV absorption of quinine peaks around 350 nm (in UVA). Fluorescent emission peaks at around 460 nm (bright blue/cyan hue). Quinine is highly fluorescent (quantum yield ~0.58) in 0.1 M sulfuric acid solution.

Synthesis
Cinchona trees remain the only economically practical source of quinine. However, under wartime pressure during World War II, research towards its synthetic production was undertaken. A formal chemical synthesis was accomplished in 1944 by American chemists R.B. Woodward and W.E. Doering. Since then, several more efficient quinine total syntheses have been achieved, but none of them can compete in economic terms with isolation of the alkaloid from natural sources. The first synthetic organic dye, mauveine, was discovered by William Henry Perkin in 1856 while he was attempting to synthesize quinine.

Biosynthesis
In the first step of quinine biosynthesis, the enzyme strictosidine synthase catalyzes a stereoselective Pictet–Spengler reaction between tryptamine and secologanin to yield strictosidine. Suitable modification of strictosidine leads to an aldehyde. Hydrolysis and decarboxylation would initially remove one carbon from the iridoid portion and produce corynantheal. Then the tryptamine side-chain were cleaved adjacent to the nitrogen, and this nitrogen was then bonded to the acetaldehyde function to yield cinchonaminal. Ring opening in the indole heterocyclic ring could generate new amine and keto functions. The new quinoline heterocycle would then be formed by combining this amine with the aldehyde produced in the tryptamine side-chain cleavage, giving cinchonidinone. For the last step, hydroxylation and methylation gives quinine.

Catalysis
Quinine and other Cinchona alkaloids can be used as catalysts for stereoselective reactions in organic synthesis.: Table 3B Plate 560  For example, the quinine-catalyzed Michael addition of a malononitrile to α,β-enones gives a high degree of sterechemical control.

History
Quinine was used as a muscle relaxant by the Quechua people, who are indigenous to Peru, Bolivia and Ecuador, to halt shivering. The Quechua would mix the ground bark of cinchona trees with sweetened water to offset the barks bitter taste, thus producing something similar to tonic water.Spanish Jesuit missionaries were the first to bring cinchona to Europe.  The Spanish had observed the Quechuas use of cinchona and were aware of the medicinal properties of cinchona bark by the 1570s or earlier:  Nicolás Monardes (1571) and Juan Fragoso (1572) both described a tree, which was subsequently identified as the cinchona tree, whose bark was used to produce a drink to treat diarrhea. Quinine has been used in unextracted form by Europeans since at least the early 17th century.A popular story of how it was brought to Europe by the Countess of Chinchon was debunked by medical historian Alec Haggis around 1941. During the 17th century, malaria was endemic to the swamps and marshes surrounding the city of Rome. It had caused the deaths of several popes, many cardinals and countless common Roman citizens. Most of the Catholic priests trained in Rome had seen malaria patients and were familiar with the shivering brought on by the febrile phase of the disease.
The Jesuit Agostino Salumbrino (1564–1642), an apothecary by training who lived in Lima (now in present-day Peru), observed the Quechua using the bark of the cinchona tree to treat such shivering. While its effect in treating malaria (and malaria-induced shivering) was unrelated to its effect in controlling shivering from rigors, it was a successful medicine against malaria. At the first opportunity, Salumbrino sent a small quantity to Rome for testing as a malaria treatment. In the years that followed, cinchona bark, known as Jesuits bark or Peruvian bark, became one of the most valuable commodities shipped from Peru to Europe. When King Charles II was cured of malaria at the end of the 17th Century with quinine, it became popular in London. It remained the antimalarial drug of choice until the 1940s, when other drugs took over.The form of quinine most effective in treating malaria was found by Charles Marie de La Condamine in 1737. In 1820, French researchers Pierre Joseph Pelletier and Joseph Bienaimé Caventou first isolated quinine from the bark of a tree in the genus Cinchona – probably Cinchona pubescens – and subsequently named the substance. The name was derived from the original Quechua (Inca) word for the cinchona tree bark, quina or quina-quina, which means "bark of bark" or "holy bark". Prior to 1820, the bark was dried, ground to a fine powder, and mixed into a liquid (commonly wine) in order to be drunk. Large-scale use of quinine as a malaria prophylaxis started around 1850. In 1853 Paul Briquet published a brief history and discussion of the literature on "quinquina".Quinine played a significant role in the colonization of Africa by Europeans. The availability of quinine for treatment had been said to be the prime reason Africa ceased to be known as the "white mans grave". A historian said, "it was quinines efficacy that gave colonists fresh opportunities to swarm into the Gold Coast, Nigeria and other parts of west Africa".To maintain their monopoly on cinchona bark, Peru and surrounding countries began outlawing the export of cinchona seeds and saplings in the early 19th century. In 1865, Manuel Incra Mamani collected seeds from a plant particularly high in quinine and provided them to Charles Ledger. Ledger sent them to his brother, who sold them to the Dutch government. Mamani was arrested on a seed collecting trip in 1871, and beaten so severely, likely because of providing the seeds to foreigners, that he died soon afterwards.By the late 19th century the Dutch grew the plants in Indonesian plantations. Soon they became the main suppliers of the tree. In 1913 they set up the Kina Bureau, a cartel of cinchona producers charged with controlling price and production. By the 1930s Dutch plantations in Java were producing 22 million pounds of cinchona bark, or 97% of the worlds quinine production. U.S. attempts to prosecute the Kina Bureau proved unsuccessful.During World War II, Allied powers were cut off from their supply of quinine when Germany conquered the Netherlands, and Japan controlled the Philippines and Indonesia. The US had obtained four million cinchona seeds from the Philippines and began operating cinchona plantations in Costa Rica. Additionally, they began harvesting wild cinchona bark during the Cinchona Missions. Such supplies came too late. Tens of thousands of US troops in Africa and the South Pacific died of malaria due to the lack of quinine. Despite controlling the supply, the Japanese did not make effective use of quinine, and thousands of Japanese troops in the southwest Pacific died as a result.Quinine remained the antimalarial drug of choice until after World War II. Since then, other drugs that have fewer side effects, such as chloroquine, have largely replaced it.Bromo Quinine were brand name cold tablets containing quinine, manufactured by Grove Laboratories. They were first marketed in 1889 and available until at least the 1960s.Conducting research in central Missouri, Dr. John S. Sappington independently developed an anti-malaria pill from quinine. Sappington began importing cinchona bark from Peru in 1820. In 1832, using quinine derived from the cinchona bark, Sappington developed a pill to treat a variety of fevers, such as scarlet fever, yellow fever, and influenza in addition to malaria. These illnesses were widespread in the Missouri and Mississippi valleys. He manufactured and sold "Dr. Sappingtons Anti-Fever Pills" across Missouri. Demand became so great that within three years, Dr. Sappington founded a company known as Sappington and Sons to sell his pills nationwide.

Society and culture
Natural occurrence
The bark of Remijia contains 0.5–2% of quinine. The bark is cheaper than bark of Cinchona. As it has an intense taste, it is used for making tonic water.

Regulation in the US
From 1969, to 1992, the US Food and Drug Administration (FDA) received 157 reports of health problems related to quinine use, including 23 which had resulted in death. In 1994, the FDA banned the marketing of over-the-counter quinine as a treatment for nocturnal leg cramps. Pfizer Pharmaceuticals had been selling the brand name Legatrin for this purpose. Also sold as a Softgel (by SmithKlineBeecham) as Q-vel. Doctors may still prescribe quinine, but the FDA has ordered firms to stop marketing unapproved drug products containing quinine. The FDA is also cautioning consumers about off-label use of quinine to treat leg cramps. Quinine is approved for treatment of malaria, but was also commonly prescribed to treat leg cramps and similar conditions. Because malaria is life-threatening, the risks associated with quinine use are considered acceptable when used to treat that condition.Though Legatrin was banned by the FDA for the treatment of leg cramps, the drug manufacturer URL Mutual has branded a quinine-containing drug named Qualaquin. It is marketed as a treatment for malaria and is sold in the United States only by prescription. In 2004, the CDC reported only 1,347 confirmed cases of malaria in the United States.

Cutting agent
Quinine is sometimes detected as a cutting agent in street drugs such as cocaine and heroin.

Other animals
Quinine is used as a treatment for Cryptocaryon irritans (commonly referred to as white spot, crypto or marine ich) infection of marine aquarium fish.

References
Further reading
Schroeder-Lein G (2008). The encyclopedia of Civil War medicine. Armonk, NY: Sharpe, Inc.
Hobhouse, Henry (2005) [1986]. Seeds of Change: Six Plants That Transformed Mankind. Berkeley, CA: Counterpoint. ISBN 978-1-59376-049-6.
Stockwell HR (1982). "Aeromedical considerations of malaria prophylaxis with mefloquine hydrochloride". Aviation, Space, and Environmental Medicine. 3 (10): 1011–13. PMID 6983345.
Wolff RS, Wirtschafter D, Adkinson C (June 1997). "Ocular quinine toxicity treated with hyperbaric oxygen". Undersea & Hyperbaric Medicine. 24 (2): 131–4. PMID 9171472. Archived from the original on 11 August 2011. Retrieved 13 August 2008.
Slater L (2009). War and disease : biomedical research on malaria in the twentieth century. New Brunswick, NJ: Rutgers University Press.
Lloyd, Henry D. (June 1884). "Lords of Industry". The North American Review