n
This individual is no longer a medical reviewer in our network. The credentials and contact information reflected here may not be current.n Dr. Jeffrey Ditzell is an adult ADHD and general psychiatrist with a private practice in New York City. He has been the chief of an inpatient dual diagnosis unit, the lead attending in two psychiatric emergency rooms, and the lead physician of an assisted community treatment team. Additionally, Dr. Ditzell has served in the United States Army for more than 20 years, having attained the rank of lieutenant colonel.n Educationn Professional Accomplishmentsn n”},”avatar”:{“title”:””,”width”:500,”height”:500,”src”:”https://post.psychcentral.com/wp-content/uploads/2022/01/Jeffrey-Ditzell-New-Headshot-500×500-Bio.png”}}],”id”:”psy-348134″,”updateReason”:[],”editor”:”Jamie Smith”,”factCheckedBy”:””,”factCheckers”:[],”articleHistory”:{“2020-12-08”:{“updateReason”:[],”authors”:”Psych Central Staff”,”editor”:”David Bahia”},”2022-05-31″:{“updateReason”:[],”authors”:”Jamie Smith”,”editor”:”Jamie Smith”,”copyEditor”:”Delores Smith-Johnson”,”medicallyReviewedBy”:”Jeffrey Ditzell, DO”}},”articleDates”:{“factChecked”:{“date”:null,”display”:””},”medicallyReviewed”:{“date”:1653955200,”display”:”May 31, 2022″},”published”:{“date”:1607458076,”display”:”December 8, 2020″},”lastUpdates”:{“date”:1653955200,”display”:”May 31, 2022″},”modified”:{“date”:1659349846,”display”:”August 1, 2022″}},”type”:”healthfeature”,”language”:”en”},”cesData”:{“metaDescription”:”Mental health disorders are disorders that affect your thoughts and feelings. Types include depression, anxiety, bipolar disorder, schizophrenia, and more.”,”title”:”Mental Disorders: What Are the Types of Mental Health Conditions?”,”iab_tag_tier_1″:[],”iab_tag_tier_2″:[],”mpdTags”:[{“confidence”:0.9801111075748437,”type”:”topic_level_1″,”value”:”health”},{“confidence”:0.9798617796204232,”type”:”topic_level_2″,”value”:”neurology”},{“confidence”:0.9764562237880695,”type”:”topic_level_3″,”value”:”mental_health_disorders”},{“confidence”:0.803534961402632,”type”:”topic_level_4″,”value”:”ocd”},{“confidence”:0.7234540525357839,”type”:”entity”,”value”:”disorder”}]},”relatedStories”:false,”wellness”:false,”infiniteScroll”:true,”infScrollArticles”:[{“title”:[“Find a Therapist and Mental Health Support”],”text”:[“Take the first step in feeling better. You can get psychological help by finding a mental health counselor. Browse our online resources and find a…”],”link”:”/health/find-help”,”imageAlt”:”Find a Therapist and Mental Health Support”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2021/08/PC-Find_a_Therapist_and_Mental_Health_Support-732×549-Thumbnail-732×549.jpg”,”isNutrition”:false,”authors”:[{“id”:84,”name”:{“display”:”Jamie Elmer”,”first”:”Jamie”,”last”:”Elmer”},”userLogin”:”jelmer”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/jamie-elmer”,”email”:”jelmer@healthline.com”,”type”:{“value”:”expert”,”label”:”Expert”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Jamie Elmer is a copy editor and writer from California. She has a passion for mental health advocacy and a love for words that she’s always looking for ways to combine. You can find her and pics of her dog on Instagram.n”},”avatar”:{“title”:””,”width”:500,”height”:500,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2021/02/Jamie-Elmer-Bio-500×500-1.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“Do I Need Therapy? Quiz”],”text”:[“Do I need therapy? Psychotherapy is beneficial for those with mental health conditions or even everyday life challenges. Take the quiz to find out. “],”link”:”/quizzes/therapy-quiz”,”imageAlt”:”Do I Need Therapy? Quiz”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2021/07/mental-health-professional-therapist-sitting-office-732×549-thumbnail.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Kendra Kubala, PsyD”,”reviewerImage”:{“imageUrl”:””,”imageWidth”:-1,”imageHeight”:-1,”imageAlt”:””,”imageTitle”:””,”path”:””,”width”:-1,”height”:-1,”altText”:””,”title”:””}},”isNutrition”:false,”authors”:[{“id”:4945,”name”:{“display”:”Christina Ward”,”first”:”Christina”,”last”:”Ward”},”userLogin”:”cward”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/christina-ward”,”email”:”cward@healthline.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Christina Ward is an award-winning multimedia professional and passionate health and wellness advocate. Her content has reached millions and has been instrumental in helping users make informed healthcare decisions that positively impact their lives and their health.n”},”avatar”:{“title”:””,”width”:400,”height”:400,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2021/02/CWard-Profile-Pic-3.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“What Are Anxiety Disorders?”],”text”:[“Anxiety disorders are common types of mental health conditions. We explain the type of anxiety disorders, including phobias and generalized anxiety…”],”link”:”/anxiety/anxiety-disorders”,”imageAlt”:”What Are Anxiety Disorders?”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2021/01/Female_Car_Calm_732x549-thumbnail-732×549.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Timothy J. Legg, PhD, PsyD”,”reviewerImage”:{“path”:”https://post.psychcentral.com/wp-content/uploads/2018/09/TimothyLegg.png”,”width”:200,”height”:200,”altText”:””}},”isNutrition”:false,”authors”:[{“id”:899,”name”:{“display”:”Jamie Smith”,”first”:”Jamie”,”last”:”Smith”},”userLogin”:”asmith”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/jamie-smith”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Jamie is a writer, editor, and researcher with a PhD in psychology, with main interests including mental health advocacy, LGBTQIA+ advocacy, and trauma-informed practice. Jamie believes in the healing power of breaking down stigma and the importance of validating people’s lived experiences.n”},”avatar”:{“title”:””,”width”:500,”height”:500,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2021/02/MNT-Bio1-500×500-1.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“9 Tips To Improve Your Concentration”],”text”:[“If you’re seeking to boost your concentration, practicing mindfulness, chewing gum, and brain games are just a few techniques to try. Learn how they…”],”link”:”/health/how-to-improve-concentration”,”imageAlt”:”9 Tips To Improve Your Concentration”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2024/02/close-up-woman-blowing-bubble-chewing-gum-hoop-earrings-732×549-thumbnail.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Francis Kuehnle, MSN, RN-BC”,”reviewerImage”:{“path”:”https://post.psychcentral.com/wp-content/uploads/2022/01/Francis-Kuehnle-500×500-Bio.png”,”width”:200,”height”:200,”altText”:””}},”isNutrition”:false,”authors”:[{“id”:5038,”name”:{“display”:”Hope Gillette”,”first”:”Hope”,”last”:”Gillette”},”userLogin”:”hgillette”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/hope-gillette”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Hope Gillette is a freelance writer and published novelist. She’s passionate about providing accurate, empathetic mental health content for readers, and believes writing can help combat stigma and improve wellness outcomes. Hope’s early career focused on health disparities affecting marginalized groups, and she remains a firm advocate for health equity.n”},”avatar”:{“title”:””,”src”:””}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“How to Make Your Days Go By Faster”],”text”:[“Creating a schedule and managing stress are ways to make your days go by faster. Changing your perception of time can also improve your overall…”],”link”:”/health/how-to-make-days-go-by-faster”,”imageAlt”:”How to Make Your Days Go By Faster”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2023/12/times-flies-conceptual-clocks-falling-from-plank-732×549-thumbnail.jpg”,”isNutrition”:false,”authors”:[{“id”:5038,”name”:{“display”:”Hope Gillette”,”first”:”Hope”,”last”:”Gillette”},”userLogin”:”hgillette”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/hope-gillette”,”email”:”hobbercat21@yahoo.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Hope Gillette is a freelance writer and published novelist. She’s passionate about providing accurate, empathetic mental health content for readers, and believes writing can help combat stigma and improve wellness outcomes. Hope’s early career focused on health disparities affecting marginalized groups, and she remains a firm advocate for health equity.n”},”avatar”:{“title”:””,”src”:””}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“How to Purposefully Forget Something”],”text”:[“Experiencing unwanted and difficult memories can be challenging. But learning how to replace negative memories with positive ones may help you cope. “],”link”:”/health/how-to-forget-something”,”imageAlt”:”How to Purposefully Forget Something”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2023/09/hand-holding-photograph-print-on-fire-flame-burning-732×549-thumbnail.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Danielle Wade, LCSW”,”reviewerImage”:{“imageUrl”:””,”imageWidth”:-1,”imageHeight”:-1,”imageAlt”:””,”imageTitle”:””,”path”:””,”width”:-1,”height”:-1,”altText”:””,”title”:””}},”isNutrition”:false,”authors”:[{“id”:6570,”name”:{“display”:”Sarah Barkley”,”first”:”Sarah”,”last”:”Barkley”},”userLogin”:”sbarkley”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/sarah-barkley”,”email”:”sarahbarkleywrites@gmail.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Sarah Barkley is a lifestyle blogger and freelance writer from Michigan. She has a bachelor’s degree in literature from Baker College. With years of writing experience, she produces content covering many topics, from health and wellness to home and family and everything in between. You can read more of her work on her website and connect with her on LinkedIn.n”},”avatar”:{“title”:””,”width”:500,”height”:500,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2022/06/Sarah_Barkley_500x500.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“9 Brain Exercises to Sharpen Your Memory and Focus”],”text”:[“Engaging in brain exercises, like sudoku puzzles and learning new languages, enhances cognitive abilities and improves overall well-being.”],”link”:”/health/brain-exercises”,”imageAlt”:”9 Brain Exercises to Sharpen Your Memory and Focus”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2023/10/directly-above-overhead-hand-holding-pen-solving-sudoku-puzzle-732×549-thumbnail.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Tiffany Taft, PsyD”,”reviewerImage”:{“imageUrl”:””,”imageWidth”:-1,”imageHeight”:-1,”imageAlt”:””,”imageTitle”:””,”path”:””,”width”:-1,”height”:-1,”altText”:””,”title”:””}},”isNutrition”:false,”authors”:[{“id”:4529,”name”:{“display”:”Traci Pedersen”,”first”:”Traci”,”last”:”Pedersen”},”userLogin”:”tpedersen”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/traci-pedersen”,”email”:”tracilpedersen@gmail.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Traci Pedersen is a freelance author with more than 15 years’ experience writing on themes of psychology, science, and alternative health for a variety of publications. She also has written 14 science chapter books and numerous teacher resource books for the elementary classroom.n”},”avatar”:{“title”:””,”width”:400,”height”:400,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2021/04/Traci_Pedersen.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“Interpreting Dreams About Spiders”],”text”:[“There are many reasons why spider dreams may occur, like unresolved feelings or chronic stress. Learning how to interpret your dream may help you cope.”],”link”:”/health/dreams-about-spiders”,”imageAlt”:”Interpreting Dreams About Spiders”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2023/10/close-up-silhouette-of-spider-against-dusk-sky-732×549-thumbnail-732×549.jpg”,”medicallyReviewedBy”:{“reviewerName”:”Kendra Kubala, PsyD”,”reviewerImage”:{“imageUrl”:””,”imageWidth”:-1,”imageHeight”:-1,”imageAlt”:””,”imageTitle”:””,”path”:””,”width”:-1,”height”:-1,”altText”:””,”title”:””}},”isNutrition”:false,”authors”:[{“id”:6498,”name”:{“display”:”Saya Des Marais, MSW”,”first”:”Saya Des”,”last”:”Marais, MSW”},”userLogin”:”nmarais”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/saya-des-marais-msw”,”email”:”saya@mentalhealthcontentwriting.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Saya Des Marais is a former therapist turned mental health writer, behavior change expert, and Motivational Interviewing trainer. Her mission as a content writer is to help make dense mental health research easily accessible to the people who actually need it. She believes clinically accurate and empathetic mental health content can save lives. Her work has been featured on PsychCentral, GoodRx, and more. In her previous life as a therapist, Saya worked at community clinics, school districts, homeless shelters, and more. She now helps therapists, mental health brands, and digital health startups create research-backed, compassionate content for their consumers. You can learn more about her on her website or LinkedIn.n”},”avatar”:{“title”:””,”width”:500,”height”:500,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2022/10/Saya-Des-Marais-500×500-Bio.png”}}],”reviewedByHeader”:”Medically reviewed by”},{“title”:[“What Do Dreams About Tornadoes Symbolize?”],”text”:[“Tornado dreams are manifestations of the subconscious mind that may indicate various interpretations, such as personal fears or major life changes.”],”link”:”/health/dreams-about-tornadoes”,”imageAlt”:”What Do Dreams About Tornadoes Symbolize?”,”thumbnail”:”https://media.post.rvohealth.io/wp-content/uploads/sites/4/2023/10/tornado-storm-landscape-732×549-thumbnail-732×549.jpg”,”isNutrition”:false,”authors”:[{“id”:4529,”name”:{“display”:”Traci Pedersen”,”first”:”Traci”,”last”:”Pedersen”},”userLogin”:”tpedersen”,”links”:{“website”:””,”facebook”:””,”linkedin”:””,”twitter”:””,”instagram”:””,”tiktok”:””},”link”:”/authors/traci-pedersen”,”email”:”tracilpedersen@gmail.com”,”type”:{“value”:”author”,”label”:”Author”},”nid”:””,”specialties”:[],”guestTitle”:””,”bio”:{“text”:” Traci Pedersen is a freelance author with more than 15 years’ experience writing on themes of psychology, science, and alternative health for a variety of publications. She also has written 14 science chapter books and numerous teacher resource books for the elementary classroom.n”},”avatar”:{“title”:””,”width”:400,”height”:400,”src”:”https://post.psychcentral.com/wp-content/uploads/sites/4/2021/04/Traci_Pedersen.png”}}],”reviewedByHeader”:”Medically reviewed by”}],”hidePlacements”:[],”userPreloadDrivers”:{“headerNewsletter”:{“_driverPath”:”/conditions/conditions-index”,”_contentIndex”:”page”,”driverId”:”063e7843-a84d-45c1-b6c1-4fa93ce800d2″,”siteId”:”cd8947b1-cecc-4ef9-8192-9c49190be1fd”,”site”:”psy”,”status”:”on”,”deleted”:false,”overridePredictiveRPM”:false,”created”:”2022-12-19T15:56:21.000Z”,”updated”:”2022-12-19T15:56:21.000Z”,”createdBy”:”liallison@redventures.com”,”updatedBy”:”liallison@redventures.com”,”isTest”:false,”id”:”57c2781b-fa20-43ee-99ca-99ecf09cb04e”,”name”:”lifecycle_header_psy_newsletter”,”color”:”#FFC50D”,”image”:”https://images-prod.healthline.com/hlcmsresource/images/newsletter/Psych_Central-Newsletter-700×1076-Desktop.jpg”,”lists”:[“Master”,”PC Weekly”],”source”:”header_overlay”,”adTagIds”:[“5bfa54a0-cb61-11ea-841d-230b5918b98d”],”driverType”:”headerNewsletter”,”verticalId”:”9a936b90-9c88-11eb-b675-07de6d70d3cf”,”imageMobile”:”https://images-prod.healthline.com/hlcmsresource/images/newsletter/Psych_Central-Newsletter-800×400-Mobile.jpg”,”campaignName”:”lifecycle_header_psy_newsletter_39689″,”driverTypeId”:”1ed6a315-4241-4254-92ae-17d0570ee038″,”imageDesktop”:”https://images-prod.healthline.com/hlcmsresource/images/newsletter/Psych_Central-Newsletter-700×1076-Desktop.jpg”,”verticalName”:”Newsletter”,”titleOverride”:”Get our weekly newsletter”,”newsletterMeta”:true,”trackingNumber”:39689,”articlePlacement”:”headerNewsletter”,”descriptionModal”:”Evidence-based guidance, up-to-date resources, and first-hand accounts to help you in your mental health journey.”,”driverPlacementId”:”d5b8e667-55c1-4a6d-b05d-728a1733109b”,”secondaryNewsletters”:[],”secondarySubscriptionSubhead”:”Other newsletters you won’t want to miss:”,”productId”:”lifecycle_header_psy_newsletter_39689″,”_uuid”:”m26630489-2d5b-4fbf-9717-2a1c6e1f8652mpd_headerNewsletter_063e7843-a84d-45c1-b6c1-4fa93ce800d2″,”cpm”:4.118148947220338e+307}}}})})() ]]>n
n

Mental health disorders are patterns of symptoms — psychological, behavioral, or both — that cause distress and can have negative effects on your personal, social, or work life.
Mental health disorders are characterized by issues regarding mood, thoughts, and behavior. They may also be referred to as psychological disorders, mental illnesses, and mental health conditions.
According to the National Institute of Mental Health, mental illness affects around 1 in 5 adults (52.9 million) in the United States.
Depressive disorders and anxiety disorders are among the most common mental health disorders. The rates are higher in females, young adults, and adults identifying as more than two races.
Mental health professionals in the United States diagnose mental health conditions using a handbook of symptoms called the Diagnostic and Statistical Manual of Mental Disorders, 5th edition (DSM-5), which also offers a list of diagnostic codes. Please keep in mind that only an experienced mental health professional can make a diagnosis.
Most mental health conditions are treatable, often through talk therapy (psychotherapy), medication, or both.
While not a comprehensive list of all mental health diagnoses, you can learn more about different mental health disorders, their symptoms, and treatments by browsing the list below.
Anxiety disorders are defined by disproportionately high levels of fear, anxiety, and avoidance in response to certain objects or situations. Panic attacks are common in anxiety disorders, but they can occur in other disorders, too.
Mood disorders are mental health conditions that affect your mood. Depressive disorders involve sad, empty, or irritable moods along with physical and thought (cognitive) changes that affect your ability to function. Bipolar disorders involve extreme mood shifts, such as between the highs of mania and the lows of depression.
Alcohol and substance use disorders involve changes in brain chemistry that create a dependence on the substance you’re using. People with these conditions may experience dependence, withdrawal symptoms, and impairments in their personal or work lives that are related to substance use.
Schizophrenia spectrum disorders are defined by challenges in one or more of these five areas: delusions, hallucinations, disorganized thought or speech, abnormal movements such as catatonia, and negative symptoms, such as a lack of motivation, pleasure, or emotional expression.
Obsessive-compulsive disorder (OCD) and OCD spectrum disorders involve elements of thoughts (obsessions) and behaviors (compulsions). The disorders in this group share some characteristics but are different in many ways.
Some experts believe the conditions should be considered independent disorders rather than OCD spectrum disorders.
Feeding and eating disorders are defined by disrupted eating patterns that involve a change in how much you eat or how much food your body absorbs. For a diagnosis to be made, these eating patterns will have significant effects on your body or your personal, social, work, or school life.
Trauma or stressor-related disorders are disorders where having experienced trauma or extreme stress is an essential part of the diagnosis. Stress-related disorders have close links with anxiety disorders, obsessive-compulsive disorders, and dissociative disorders.
Dissociative disorders involve a disruption to the typical states of awareness, impairing your consciousness, memory, identity, emotions, and perceptions of yourself and your surroundings. Often, they develop due to a stressful or traumatic situation.
Neurodevelopmental disorders begin early in child development, often before a child starts grade school. These disorders are defined by developmental issues that affect your personal, social, school, or work life.
Personality disorders are a group of 10 disorders that involve a persistent pattern of thoughts, feelings, and behaviors that are very different from cultural expectations and can lead to significant stress and disruption to your life.
Sexual dysfunctions are defined as significant problems with your ability to experience sexual arousal or sexual pleasure. Some people have several of these disorders at the same time.
Sleep disorders affect the quality and amount of sleep you get. The symptoms usually involve distress during the daytime and can interfere with your ability to function in day-to-day life.
Neurocognitive disorders involve a decline in your cognitive (thinking) abilities. By definition, neurocognitive disorders aren’t present at birth or at an early developmental stage, but rather represent a loss of previously acquired functions or skills.
Childhood mental health disorders, often labeled as developmental disorders or learning disorders, most often arise and are diagnosed when the child is of school age. Adults may also relate to some of the symptoms of these disorders, but typically their symptoms need to have first appeared at some point in childhood.
Other mental health disorders, conditions, and symptoms include the following:
Last medically reviewed on May 31, 2022
© 2024 Psych Central, a Healthline Media Company. All rights reserved. Our website services, content, and products are for informational purposes only. Psych Central does not provide medical advice, diagnosis, or treatment. See additional information. { if (event.listenerId === listenerId) { cb(__gpp.d.events[i], true); } }); } else if (cmd === ‘removeEventListener’) { let success = false; const returnValue = { eventName: ‘listenerRemoved’, listenerId: param, data: success, }; __gpp.d.events.forEach((event, i) => { if (event.listenerId === param) { __gpp.d.events.splice(i, 1); success = true; cb(returnValue, true); } }); cb(returnValue, false); } else if (cmd === ‘hasSection’) { if (param !== ‘uspv1’) { cb({data: false, success: true}); } cb({data: true, success: true}); } else if (cmd === ‘getSection’) { if (param === ‘uspv1’) { cb(__gpp.d.pingReturn.parsedSections[param], true); } cb(false); } else if (cmd === ‘getField’) { const pSplit = param.split(‘.’); if (__gpp.d.pingReturn.parsedSections[pSplit[0]][pSplit[1]]) { cb(__gpp.d.pingReturn.parsedSections[pSplit[0]][pSplit[1]], true); } cb(false); } } __gpp.d = {“events”:[],”pingReturn”:{“gppVersion”:1.1,”cmpStatus”:”loaded”,”cmpDisplayStatus”:”visible”,”signalStatus”:”ready”,”supportedAPIs”:[“6:uspv1″],”cmpId”:227,”sectionList”:[“6:uspv1″],”applicableSections”:[6],”gppString”:”DBABTA~1YNY”,”parsedSections”:{“uspv1”:{“version”:1,”uspString”:”1YNY”}}}}; /* Cohesion Configs */ function tagular(…args) { tagular.q.push(args); } tagular.q = []; function preamp(…args) { preamp.q.push(args); } preamp.q = []; function cohesion(…args) { cohesion.q.push(args); } cohesion.q = []; const tagularConfigs = {“apiVersion”:”v2/t”,”writeKey”:”wk_1hYmqsRCbwXB0ndTQdgXxNR6252″,”sourceKey”:”src_1hYmqunTHJvIJ8xGurFf1jMyi5f”,”domainWhitelist”:[“www.psychcentral.com”,”act.psychcentral.com”,”frontend-stage.psychcentral.com”,”act-stage.psychcentral.com”,”activation.psychcentral.com”,”activation-stage.psychcentral.com”],”cookieDomain”:”psychcentral.com”,”multiparty”:true,”reinforce”:”https://psychcentral.com/navi”,”experimentalFeatures”:{“flocEnabled”:true}}; if (HL.i.enabled) { /* Only suppress some tagular events for infinite scroll */ Object.assign(tagularConfigs, { beamHook(event) { /* Executed every time beam is called and passed the event */ /* eslint-disable-next-line no-underscore-dangle */ window._Tagular.config.suppressBeam = event[‘@type’] === ‘redventures.usertracking.v3.PageScrolled’; } }) } const preampConfigs = HL.ga.contentType === ‘brand-page’ ? false : { …{“siteId”:”2u5JyWysh6JYz1Ov7qLSfe”}, hooks: { /* Runs before Preamp requests a new decision */ beforeRun(cohesionConfig, done) { /* Adds k1 to custom Preamp values */ /* Allows Preamp experiences to be created based on the current K1 */ cohesionConfig.custom = { …cohesionConfig.custom, k1: HL.ga.k1, }; done(); }, beforePlacement(placement, done) { const interval = setInterval(() => { if (window.afterMPD) { /* Defer preamp rendering until we have injected all MPDs as those */ /* need to be in the DOM for Preamp to inject into. */ afterMPD(done); clearInterval(interval); } },500) }, } }; /* eslint-disable-next-line no-underscore-dangle */ window._Cohesion = { k: ‘cohesion’, tagular: tagularConfigs, preamp: preampConfigs }; window._Tagular = { k: ‘tagular’ }; window._Preamp = { k: ‘preamp’, start: new Date(), docReady: true }; window._Fuse = { k: ‘fuse’, docReady: false }; window.tagular = tagular; window.preamp = preamp; window.fuse = () => {}; window.cohesion = cohesion; ]]>
