Give a detailed overview of sexual dysfunctions, their etiological basis, psychological basis, presentation and a detailed management. Make it conceptual and easy to understand. Include relevant examples. Refer from standard textbooks, journals. Take aspects of management from Indian Psychiatric Society Clinical Practice Guidelines as well.

Reading File
Finding Sources
Searching PubMed

"sexual dysfunction" AND management

Searching the Web

Indian Psychiatric Society Clinical Practice Guidelines sexual dysfunction

Reading File
Reading Web Page

https://pmc.ncbi.nlm.nih.gov/articles/PMC5310110

Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
Finding Sources
Reading File
Reading File

Sexual Dysfunctions: A Comprehensive Overview

Sources: Kaplan & Sadock's Comprehensive Textbook of Psychiatry (10th ed.), Kaplan & Sadock's Synopsis of Psychiatry (12th ed.), Smith & Tanagho's General Urology (19th ed.), Textbook of Family Medicine (9th ed.), IPS Clinical Practice Guidelines for Management of Sexual Dysfunction (Avasthi et al., 2017, Indian J Psychiatry Supplement), and EAU Guidelines on Sexual and Reproductive Health (2021, PMID 34183196).

1. Conceptual Foundation: What Is Sexual Dysfunction?

Sexual dysfunction is not simply a "failure to perform." It is a clinically significant disturbance in an individual's ability to respond sexually or to experience sexual pleasure, causing marked personal distress and/or interpersonal difficulty for at least 6 months. This distress criterion is critical - a person who is perfectly content with reduced sexual interest does not have a sexual dysfunction by DSM-5 standards.
A useful conceptual frame: think of human sexual response as a pipeline with several stages - desire → arousal → orgasm/ejaculation → resolution. Sexual dysfunctions represent blockages or disruptions at different points in this pipeline, and they can be caused by organic disease, psychological factors, or (most commonly in clinical practice) both working together.

The Sexual Response Cycle (Historical Models)

Masters & Johnson's model (1966): Excitement → Plateau → Orgasm → Resolution This was the first laboratory-based model, establishing that sexual response involves vascular engorgement and myotonia.
Kaplan's Triphasic Model (1974): Added Desire as a distinct phase before arousal - a key insight for psychiatry because desire is primarily a central, psychologically mediated phenomenon. This model maps directly onto DSM-5 diagnostic categories.

2. Classification (DSM-5 and ICD)

DSM-5 uses gender-specific categories with a minimum 6-month duration requirement. Compare to ICD-10 which uses gender-neutral codes:
PhaseMaleFemale
Desire/ArousalMale Hypoactive Sexual Desire Disorder (MHSDD)Female Sexual Interest/Arousal Disorder (FSIAD)
Arousal/ErectionErectile Disorder (ED)(incorporated into FSIAD)
OrgasmDelayed Ejaculation (DE)Female Orgasmic Disorder (FOD)
EjaculationPremature (Early) Ejaculation (PE)-
Pain/Penetration-Genitopelvic Pain/Penetration Disorder (GPPPD)
Substance-inducedSubstance/Medication-Induced Sexual DysfunctionSame
Specifiers across all categories:
  • Lifelong vs. Acquired - has it always been there, or did it develop after normal functioning?
  • Generalized vs. Situational - present in all contexts, or only with a specific partner/situation?
  • Severity - mild, moderate, or severe (based on degree of distress)
Example: A man who has never been able to maintain an erection from the time he became sexually active = Lifelong Erectile Disorder. A man who develops ED after starting an antihypertensive = Acquired Erectile Disorder (medication-induced, situational).
ICD-11 notably has a separate chapter for sexual health and uses parallel gender-specific categories similar to DSM-5.

3. Etiological Basis: The Biopsychosocial Model

Sexual dysfunction almost never has a single cause. The IPS CPG emphasizes establishing whether the etiology is primarily organic, psychological, or mixed - because the treatment pathway diverges at that point.

3a. Biological/Organic Factors

Neurobiology of Sexual Response

The balance between excitation and inhibition systems governs sexual function:
  • Excitatory neurotransmitters: Dopamine, norepinephrine, nitric oxide (NO), oxytocin, vasopressin, melanocortins (MC4 receptor)
  • Inhibitory neurotransmitters: Serotonin, prolactin, endocannabinoids, opioids
This explains why SSRIs (which increase serotonin) consistently impair sexual function, while dopamine-enhancing agents (bupropion) tend to spare or improve it. - Kaplan & Sadock's Comprehensive Textbook of Psychiatry, p.10354

Key Organic Causes

Vascular Disease (most common organic cause of ED) The pathophysiology of ED parallels that of coronary artery disease - both share endothelial dysfunction, inflammation, and low testosterone as a common substrate. NO is released from penile endothelium and parasympathetic nerve terminals, relaxing cavernosal smooth muscle, allowing blood engorgement. Atherosclerosis, hypertension, and diabetes all impair this mechanism.
Clinical pearl: ED in a young man with no other apparent cause should trigger a cardiovascular workup. ED often precedes symptomatic coronary artery disease by 3-5 years - it is an early warning sign of systemic endothelial dysfunction.
Hormonal Factors
  • Low testosterone: Reduces desire in both sexes, impairs erectile function in men
  • Hyperprolactinemia: Suppresses GnRH → lowers testosterone/estrogen → affects all phases. Common cause in patients on antipsychotics (dopamine blockade raises prolactin)
  • Estrogen deficiency (peri/postmenopause, surgical menopause, postpartum): Causes vaginal atrophy, inadequate lubrication, reduced clitoral blood flow, dyspareunia
  • Thyroid dysfunction: Both hypo- and hyperthyroidism affect libido and orgasm
  • Hormonal contraceptives: OCP raises sex hormone-binding globulin (SHBG), which binds and lowers free testosterone, potentially reducing desire
Neurological Conditions Multiple sclerosis, spinal cord injury, Parkinson's disease, stroke, temporal lobe epilepsy, and diabetic autonomic neuropathy all impair the neural arc necessary for arousal and orgasm. Radical prostatectomy and other pelvic surgeries carry high risk for nerve injury causing ED.
Systemic Illnesses Diabetes (vascular + neuropathic + hormonal), chronic renal failure, liver disease, cardiovascular disease, and rheumatological conditions all contribute.
Medications (a very common and underappreciated cause)
Drug ClassEffect
SSRIs/SNRIsImpair all phases; sertraline, paroxetine, fluoxetine have highest rates (70-80%)
AntipsychoticsVia hyperprolactinemia; also sedation
Antihypertensives (beta-blockers, thiazides)ED, decreased desire
Antiandrogens (spironolactone, finasteride)Decreased desire, ED
OpioidsDecreased desire, ED (via hypogonadism)
TobaccoLinear dose-response increase in ED
AlcoholModerate use may reduce ED; heavy use increases it and impairs orgasm
- Kaplan & Sadock's Comprehensive Textbook of Psychiatry, p.10355-10356

3b. Psychological Basis

This is where psychiatry makes its unique contribution. Sexual dysfunction is self-perpetuating: a single episode of failure creates anxiety → anxiety impairs function → further failure → deepening anxiety. This vicious cycle is the hallmark of psychogenic sexual dysfunction.

Key Psychological Mechanisms

1. Performance Anxiety ("Spectatoring") First described by Masters & Johnson. The person "steps outside" the sexual experience and becomes a spectator or judge of their own performance rather than a participant experiencing pleasure. The moment the mind shifts to "Am I hard enough? Am I taking too long?" the sympathetic nervous system activates, directly counteracting the parasympathetic-mediated arousal response.
Example: A man has one episode of ED after a stressful day at work. He is so worried it will happen again that the next time he attempts sex, he monitors himself constantly. The anxious observation itself prevents arousal - confirming his fear and worsening the cycle.
2. Depression and Anxiety Depression reduces sexual desire by depleting dopaminergic tone. Anxiety activates the sympathetic nervous system, which physiologically opposes erection and lubrication. The bidirectionality is important: sexual dysfunction causes distress, and distress causes sexual dysfunction.
3. Relationship Conflict and Communication Failures Loss of desire is often an expression of unexpressed hostility toward a partner, or a sign of a deteriorating relationship. Studies show a threefold increase in male sexual dysfunction when the female partner has a sexual dysfunction, and vice versa - illustrating the dyadic/relational nature of these disorders.
4. Psychodynamic Factors
  • Unconscious fear of sex (rooted in early experiences, guilt, religious prohibitions)
  • Fear of intimacy or vulnerability
  • Ambivalence about parenthood (e.g., delayed ejaculation in men whose partner is trying to conceive)
  • Past sexual trauma, abuse, rape - especially important in women with GPPPD/vaginismus
5. Cultural and Religious Factors (especially relevant in India) The IPS CPG specifically highlights cultural factors: rigid conservative upbringing, religious prohibitions on sexual pleasure, guilt about masturbation, inadequate sexual education, and internalized shame all contribute. India-specific concerns include Dhat syndrome - a culture-bound syndrome where men attribute various symptoms to semen loss, which is associated with high rates of comorbid sexual dysfunction, anxiety, and depression.
6. Cognitive Distortions Unrealistic expectations (often from pornography), negative body image, catastrophizing about sexual "failure," and over-generalization ("I always fail") perpetuate dysfunction.
- Kaplan & Sadock's Synopsis of Psychiatry, p.1565-1566; IPS CPG 2017

4. Individual Disorders: Presentation and Specific Etiologies

4a. Male Hypoactive Sexual Desire Disorder (MHSDD)

Presentation: Persistently deficient or absent sexual thoughts, fantasies, and desire for sexual activity for ≥6 months, causing marked distress. The man rarely initiates sex and shows little response to a partner's initiation. Important to distinguish from simply reduced activity due to illness or unavailability of a partner - fantasies and erotic thoughts may still be present in such cases.
Epidemiology: Prevalence is bimodal - young men (16-44 years, ~2%) and older men (66-74 years, ~40%).
Etiological basis: Testosterone deficiency, hyperprolactinemia (antipsychotic-induced or pituitary tumour), depression, relationship dissatisfaction, and chronic stress. Prolonged sexual abstinence can itself suppress desire.
Psychological basis: The defense of inhibition - desire is unconsciously suppressed to protect against feared consequences of sex (e.g., fear of intimacy, fear of disease, grief reaction, sexual trauma). Depression is a very common comorbidity.

4b. Female Sexual Interest/Arousal Disorder (FSIAD)

Presentation: Absent or reduced interest in sex AND/OR absent/reduced arousal (at least 3 of 6 criteria for ≥6 months): reduced interest, reduced erotic thoughts, reduced initiation or receptiveness, reduced excitement/pleasure during sex, absent or reduced genital/non-genital sensations, absent or reduced response to erotic cues. This DSM-5 category merged the previous HSDD and FSAD because in women, desire and arousal are more tightly linked than in men.
Epidemiology: Most common sexual dysfunction in women; prevalence 17-50%. HSDD (with distress) in ~10% of women.
Key psychological basis: Women's sexual desire is more responsive than spontaneous - women often experience desire in response to arousal cues, not independently of them. This is why partner factors, relationship quality, and context matter so much. A woman with a history of sexual trauma, body image issues, or depression is at particularly high risk.
Organic basis: Post-menopausal estrogen deficiency, oral contraceptives raising SHBG, depression, SSRIs, antipsychotics.

4c. Erectile Disorder (ED)

Presentation: Difficulty obtaining and/or maintaining an adequate erection during partnered sexual activity, or marked decrease in erectile rigidity, for ≥6 months.
Epidemiology: Most common male sexual dysfunction. Prevalence 18.4% in US men >20 years; 52% combined prevalence in Massachusetts Male Aging Study; 39% at age 40, 67% at age 70.
Distinguishing psychogenic from organic ED:
FeaturePsychogenicOrganic
OnsetSuddenGradual, insidious
Morning/nocturnal erectionsPreservedAbsent/reduced
Masturbatory erectionsPreservedImpaired
SituationalityOften situationalUsually global
Age/comorbiditiesYounger, fewer comorbiditiesOlder, vascular risk factors
Organic basis: Vasculogenic (most common - arterial insufficiency, venous leakage), neurogenic, endocrine (hypogonadism, hyperprolactinemia), systemic illness, medications, surgery.
Psychological basis: Performance anxiety with spectatoring, depression, relationship conflict, fear of intimacy, prior traumatic sexual experience. Mixed etiology is extremely common - organic disease creates the first episode, psychological anxiety perpetuates it.

4d. Premature (Early) Ejaculation (PE)

Presentation: Ejaculation that occurs within approximately 1 minute of vaginal penetration in the majority of sexual encounters, before the individual wishes it. The three criteria are: (1) brief ejaculatory latency, (2) loss of control over timing, and (3) psychological distress in patient and/or partner. Subtypes: global vs situational, lifelong vs acquired.
Epidemiology: Most common male sexual complaint globally - ~30% of men report it. Comorbid in ~1/3 of men with ED.
Etiological basis:
  • Organic (less common): Urethritis, thyroid dysfunction (hyperthyroidism is a reversible cause)
  • Psychological (most common): Conditioned rapid ejaculation (early sexual experiences in high-anxiety contexts - rushed encounters, fear of discovery), performance anxiety, relationship issues
  • Many cases represent a normal biological variation in ejaculatory latency rather than pathology

4e. Delayed Ejaculation (DE)

Presentation: Marked delay in, or inability to achieve, ejaculation during partnered sexual activity, despite adequate desire, arousal, and stimulation. Often (paradoxically) able to ejaculate with masturbation but not intravaginally.
Etiological basis: SSRIs (very common cause), other antidepressants, antipsychotics, excessive alcohol, spinal cord injury, diabetes (autonomic neuropathy), pelvic surgery.
Psychological basis: Performance anxiety drawing attention away from erotic cues; psychosexual development issues; ambivalence about the partner or about conception; idiosyncratic masturbatory styles that cannot be replicated with a partner (Perelman's "autosexual orientation" concept - masturbating to specific fantasies that one cannot achieve with a partner).

4f. Female Orgasmic Disorder (FOD)

Presentation: Marked delay in, marked infrequency of, or absence of orgasm during sexual activity, or markedly reduced intensity of orgasmic sensations, for ≥6 months.
Etiological basis: SSRIs (very common drug-induced cause), spinal cord injury, pelvic surgery, menopause. Also, simple inadequate stimulation is very common - many women require direct clitoral stimulation that is not provided in standard coital activity.
Psychological basis: Anxiety, fear of losing control, religious/moral guilt about sexual pleasure, negative body image, prior sexual trauma. Women who have difficulty "letting go" psychologically often have difficulty with orgasm.

4g. Genitopelvic Pain/Penetration Disorder (GPPPD)

Presentation: This DSM-5 category merged the former vaginismus and dyspareunia. Criteria include one or more of: difficulty with vaginal penetration, vulvovaginal/pelvic pain during intercourse, fear/anxiety about pain in anticipation of penetration, and tensing/tightening of pelvic floor muscles.
Vaginismus as a concept: Involuntary spasm of the outer-third pelvic floor muscles upon any attempt at penetration (including speculum examination and tampon use). The spasm is often accompanied by anticipatory anxiety and avoidance behavior - a conditioned response.
Etiological basis:
  • Organic dyspareunia: Endometriosis, vulvodynia, atrophic vaginitis, pelvic inflammatory disease, urethritis, surgical scarring
  • Vaginismus: Predominantly psychological - prior sexual trauma, rape, conservative upbringing with sex perceived as painful/sinful, negative first sexual experience
  • A vicious cycle exists: initial pain → fear → muscle spasm → more pain → avoidance

5. Assessment: The IPS-Recommended Framework

The IPS CPG (Avasthi et al., 2017) recommends a structured biopsychosocial assessment:

Step-by-Step IPS Assessment Framework

Step 1 - Detailed Psychosexual History
  • Onset (lifelong vs acquired), course, frequency, severity of dysfunction
  • Sexual development history, early sexual experiences, trauma
  • Relationship quality, communication patterns, partner's sexual function
  • Partner factors (this is essential - sexual dysfunction is often relational)
Step 2 - Medical and Surgical History
  • Cardiovascular disease, diabetes, neurological conditions, endocrine disorders
  • Medications (ask specifically about antidepressants, antipsychotics, antihypertensives)
  • Substance use (tobacco, alcohol, drugs)
Step 3 - Establish Etiological Basis
  • Is this organic, psychological, or mixed?
  • Organic clue: gradual onset, global (not situational), absent morning erections, clear medical comorbidity
  • Psychological clue: sudden onset, situational, preserved masturbatory function, identifiable psychosocial stressor
Step 4 - Screen for Comorbid Psychiatric Disorders
  • Depression, anxiety disorders, personality disorders
  • Treat the primary psychiatric disorder first before managing the sexual dysfunction as a standalone issue
Step 5 - Assess Motivation and Psychological Sophistication
  • Low motivation → start with pharmacotherapy while motivating toward psychotherapy
  • High motivation and insight → combined pharmacotherapy + psychotherapy from the outset
Validated Tools:
  • IIEF-5 (International Index of Erectile Function - 5 item): screening for ED
  • DSDS (Decreased Sexual Desire Screener): for HSDD in women
  • SKAQ (Sex Knowledge and Attitude Questionnaire in Hindi): standardized for North Indian population (Avasthi et al., 1992)
Physical Examination:
  • Cardiovascular, neurological, and genital examination
  • In women: pelvic examination for atrophy, tenderness, anatomical abnormalities
Laboratory Tests (IPS/ISSM recommendations):
  • Fasting glucose/HbA1c, lipid profile, testosterone (total), prolactin
  • Thyroid function tests
  • Specific tests as indicated (e.g., Doppler ultrasound of penile vasculature for suspected vasculogenic ED)

6. Management: A Detailed Framework

The IPS CPG provides a clear algorithmic approach that integrates both pharmacological and non-pharmacological management.

6a. General Principles (IPS CPG)

  1. Patient-centered framework - agree on treatment goals with the patient/couple at the outset
  2. Treat the primary illness first - if depression is causing low libido, treating depression often resolves the sexual issue
  3. Couple as the unit of treatment - involve the partner whenever possible; sexual dysfunction is a dyadic problem
  4. Biopsychosocial approach - address organic, psychological, and relational factors together
  5. Refer organically-driven cases to endocrinologist, urologist, or gynaecologist as appropriate, while maintaining liaison

IPS Management Algorithm (simplified)

Detailed history + physical exam + basic investigations
        ↓
Is the dysfunction due to poor sexual knowledge?
    YES → Sex Education; Reassess
        ↓
Ascertain type + probable etiology
        ↓
    Organic         Mixed/Psychogenic
       ↓                    ↓
  Refer to          Comorbid psychiatric disorder?
  specialist               ↓
                    YES → Treat comorbidity first
                    NO  → Assess motivation
                              ↓
                    Low motivation → Pharmacotherapy first
                    High motivation → Combined Pharm + Psychotherapy

6b. Non-Pharmacological Management

Sex Education and Psychoeducation

The simplest and often most powerful intervention. Many presentations in India (and globally) stem from sexual ignorance - misconceptions about normal anatomy, the sexual response cycle, what is "normal" frequency, masturbation myths, Dhat syndrome-related beliefs. Correcting these with accurate, non-judgmental information is therapeutic in itself.

Sensate Focus (Masters & Johnson)

The cornerstone technique of sex therapy. It is a graduated program of physical closeness that temporarily bans sexual intercourse, removing performance pressure:
  • Phase 1: Non-genital touching for sensory pleasure only. No pressure to "achieve" anything. Each partner takes turns touching and receiving, focusing purely on physical sensation (tactile, visual, olfactory, auditory).
  • Phase 2: Genital touching introduced, still without intercourse or pressure for orgasm.
  • Phase 3: Gradual reintroduction of intercourse when both partners feel comfortable.
The power of sensate focus lies in breaking the spectatoring cycle - by removing the goal of orgasm/erection, the person can actually be present in their body, which allows natural arousal to return.

Cognitive Behavioral Therapy (CBT)

Identifies and challenges dysfunctional beliefs:
  • "I need an erection to satisfy my partner" → Challenge
  • "Having a small penis means I'm inadequate" → Challenge
  • "Sex should always be spontaneous and perfect" → Challenge
Combined with behavioral components (homework exercises, graduated exposure for GPPPD).

Couples/Relational Therapy

When relationship conflict underlies the dysfunction - poor communication, unexpressed resentment, power imbalances. Skills training in communication of sexual preferences is a key component.

Mindfulness-Based Therapy

Particularly effective for Female Sexual Arousal Disorder and women with a history of sexual trauma. Mindfulness-based cognitive therapy (MBCT) shifts attention from evaluative thought ("Am I responding?") to present-moment body sensation. It has shown significant benefit in female sexual distress.

Psychodynamic Psychotherapy

For cases with deep-rooted unconscious conflicts - traumatic sexual histories, unresolved grief, severe intimacy fears. Less suitable for acute, situational problems but valuable for lifelong, generalized cases.

Directed Masturbation (for FOD)

A graded self-stimulation program that teaches a woman how her body responds to stimulation before introducing a partner. Has the most consistent evidence for primary female orgasmic disorder. Often combined with vibrator use.

Squeeze Technique (for PE)

The penis is stimulated to just before orgasm, then pressure is applied at the coronal ridge for ~30 seconds to inhibit ejaculation. This trains ejaculatory control over multiple sessions. The Stop-Start technique (Semans) is a variation involving simply stopping stimulation.

Vaginal Dilators (for GPPPD/Vaginismus)

Graded silicone dilators of increasing size, used progressively with relaxation exercises and pelvic floor biofeedback, to desensitize the conditioned fear/spasm response. Pelvic floor physiotherapy is an important adjunct. Recent meta-analyses (PMID 41148166) confirm combined approaches (dilators + CBT + pelvic floor PT) are superior to single modalities.

6c. Pharmacological Management

Erectile Disorder

First-line: PDE-5 Inhibitors These are the cornerstone of pharmacological ED treatment. NO from penile endothelium increases cGMP, which relaxes cavernosal smooth muscle. PDE-5 breaks down cGMP; PDE-5 inhibitors block this breakdown, prolonging and enhancing erections.
DrugDoseOnsetDurationNotes
Sildenafil (Viagra)25-100 mg PRN30-60 min4-6 hAffected by fatty meals
Tadalafil (Cialis)10-20 mg PRN; 2.5-5 mg daily30-60 min36 hCan be taken daily
Vardenafil5-20 mg PRN30 min4-5 h-
Avanafil50-200 mg PRN15-30 min6-12 hFastest onset
Contraindications: Organic nitrates (risk of severe hypotension), uncontrolled cardiovascular disease.
Second-line:
  • Intracavernosal alprostadil (prostaglandin E1) injection - directly relaxes smooth muscle
  • Intraurethral alprostadil (MUSE pellet)
  • Vacuum erection devices (VED) - non-pharmacological mechanical option
Third-line:
  • Penile implant surgery (inflatable or malleable prosthesis) - when all other treatments fail
Hormone replacement: Testosterone therapy in hypogonadal men (monitoring for polycythemia, prostate safety). Cabergoline (dopamine agonist) for hyperprolactinemia.

Premature Ejaculation

First-line: Oral SSRIs (daily dosing) SSRIs delay ejaculation through central serotonergic inhibition of the ejaculatory reflex:
  • Paroxetine 10-40 mg/day: most effective SSRI for PE
  • Sertraline 50-200 mg/day
  • Fluoxetine 20-40 mg/day; Citalopram 20-40 mg/day; Escitalopram 10-20 mg/day
  • Full effect takes 2-3 weeks
Dapoxetine (short-acting SSRI): The only SSRI specifically approved for PE in many countries. Taken 1-3 hours before sex (30-60 mg on-demand). More convenient for men who don't want daily medication.
Topical anesthetics: Lidocaine-prilocaine spray (EMLA), applied 20-30 minutes before sex, reduces penile sensitivity. Evidence supports improvement in ejaculatory latency, control, and satisfaction.
Tramadol (off-label, third-line): Has opioid + serotonergic + noradrenergic mechanisms. Risk of dependence limits use.
Clomipramine 12.5-50 mg/day: TCA option if SSRIs fail.
For PE + comorbid ED: start with PDE-5 inhibitor first (treating ED often improves ejaculatory control), then add SSRI if PE persists.
- Kaplan & Sadock's Comprehensive Textbook of Psychiatry, p.10364

Female Hypoactive Sexual Desire Disorder

Flibanserin (Addyi) - FDA approved 2015 for premenopausal women:
  • Mechanism: 5-HT1A agonist + 5-HT2A antagonist → reduces serotonin, increases dopamine and norepinephrine in prefrontal cortex (i.e., shifts the excitation-inhibition balance)
  • Dose: 100 mg nightly
  • Side effects: Dizziness, sedation, fatigue
  • Alcohol interaction: Separate by ≥2 hours
Bremelanotide (Vyleesi) - FDA approved 2019 for premenopausal women:
  • Mechanism: Melanocortin-4 receptor agonist (MC4R modulates sexual arousal centrally)
  • Formulation: Subcutaneous autoinjector, 45 minutes before sex
  • Limit: Once per day, ≤8 times/month
  • Side effects: Nausea (most common), transient hypertension
  • Avoid in hypertension/cardiovascular disease
Off-label: Transdermal testosterone (for postmenopausal women with HSDD - evidence shows improvement across all sexual domains). Bupropion SR (shown to improve arousal, orgasm, satisfaction in premenopausal women).

Genitopelvic Pain/Penetration Disorder

  • Topical estrogen cream/ring/tablet for atrophic vaginitis (postmenopausal dyspareunia) - locally applied with minimal systemic absorption
  • Ospemifene - oral selective estrogen receptor modulator for moderate-severe dyspareunia in postmenopausal women
  • Topical lidocaine for vulvodynia/vestibulodynia
  • Botulinum toxin A injection into pelvic floor muscles - evidence emerging for refractory vaginismus
  • Pelvic floor physical therapy - graded exercises, biofeedback

6d. Managing Psychotropic-Induced Sexual Dysfunction

This is a critical practical issue in psychiatry. SSRIs cause sexual dysfunction in 70-80% of patients, which is a leading cause of non-adherence. Strategies (IPS CPG + Kaplan & Sadock):
  1. Wait and watch - some tolerance develops
  2. Dose reduction if clinically feasible
  3. Add-on agents: Bupropion (most common add-on), buspirone, sildenafil (evidence in both men and women on SSRIs), amantadine, cyproheptadine
  4. "Drug holiday" for short half-life SSRIs (e.g., paroxetine) - brief planned discontinuation before anticipated sexual activity (risky: discontinuation symptoms, relapse)
  5. Switch to a non-offending agent: Bupropion, mirtazapine, vortioxetine (low-dose), vilazodone, moclobemide - these have little to no impact on sexual function
  6. For antipsychotic-induced sexual dysfunction: consider switching to aripiprazole or quetiapine (lower prolactin-raising potential) or adding aripiprazole to reduce prolactin
- Kaplan & Sadock's Comprehensive Textbook, p.10348-10349

7. Special Considerations in the Indian Context (IPS CPG)

The IPS CPG (Avasthi et al., 2017, available here) makes several India-specific points:
  • Dhat syndrome is a culture-bound syndrome with high comorbidity with sexual dysfunction. Management involves psychoeducation to correct the belief that semen loss causes weakness/disease, plus treating comorbid anxiety/depression.
  • Lack of sexual education is a major contributing factor - sex education and psychoeducation are first-line before any pharmacotherapy.
  • Screening tools in Indian languages (SKAQ in Hindi) are validated and should be used.
  • Single male patients (unmarried men presenting with sexual concerns): a specific manual exists (Avasthi & Gupta, 2002) for their standardized management.
  • Referral network: The psychiatrist must coordinate with urologists, endocrinologists, and gynaecologists, especially for organic or mixed cases.
  • Motivation assessment is a formal step - starting with pharmacotherapy to build confidence is appropriate for patients with low motivation for psychotherapy, using this as an entry point to later engage them in behavioural approaches.

8. Summary Table: Dysfunction by Dysfunction

DysfunctionKey PresentationMain EtiologyFirst-line Management
MHSDDLow desire, absent fantasiesTestosterone deficiency, depression, relationship issuesTreat comorbidity; testosterone if deficient; couple therapy
FSIADLow interest + arousalPost-menopause, OCP, depression, traumaPsychotherapy, mindfulness; flibanserin/bremelanotide if HSDD
Erectile DisorderFailure to obtain/maintain erectionVasculogenic > neurogenic > endocrinePDE-5 inhibitors; address CVD risk factors; sensate focus
Premature EjaculationEjaculation within ~1 minutePsychogenic (mainly); thyroid dysfunctionSSRIs (paroxetine); dapoxetine on-demand; squeeze technique
Delayed EjaculationCannot ejaculate with partnerSSRIs, antipsychotics, psychogenicSwitch/reduce offending drug; stop-start technique; psychotherapy
FODAbsent/delayed/reduced orgasmSSRIs, inadequate stimulation, traumaDirected masturbation; reduce/switch SSRI; psychoeducation
GPPPD/VaginismusPain, spasm, fear of penetrationAtrophy, trauma, conditioned anxietyDilators + CBT + pelvic floor PT; topical estrogen

9. Prognosis and Key Points

  • Sexual dysfunctions are common, treatable, and significantly impact quality of life. They are underdiagnosed because patients and clinicians are both reluctant to discuss them.
  • The biopsychosocial model is non-negotiable. Even organically-driven dysfunction develops psychological consequences that require psychological treatment.
  • Involve the partner. Sexual dysfunction is rarely purely an individual problem - the relationship is the unit of treatment.
  • Medication review is essential. Many presentations are iatrogenic (SSRIs, antipsychotics, antihypertensives) and can be addressed by dose adjustment or switching.
  • ED is a cardiovascular risk marker. Young men with unexplained ED need a cardiovascular workup.
  • Context matters enormously in India. Cultural beliefs, sexual misinformation, Dhat syndrome, and the absence of sex education make psychoeducation an especially high-yield intervention.

References:

Create a quick-reference PDF guide for diagnostic criteria and first-line management of each dysfunction

Reading File
Running Command

ls -la /tmp/workspace/ 2>/dev/null || echo "workspace empty or missing"

Running Command

mkdir -p /tmp/workspace/sexual-dysfunction-guide

Writing File

~/sexual-dysfunction-guide/build_guide.py

"""
Quick-Reference PDF Guide: Sexual Dysfunctions
Diagnostic Criteria & First-Line Management
Uses reportlab for a clean, clinical-style layout.
"""

from reportlab.lib.pagesizes import A4
from reportlab.lib import colors
from reportlab.lib.units import mm, cm
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_JUSTIFY
from reportlab.platypus import (
    SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
    HRFlowable, KeepTogether, PageBreak
)
from reportlab.platypus.flowables import BalancedColumns
from reportlab.lib.colors import HexColor, white, black
import os

OUTPUT_PATH = "/tmp/workspace/sexual-dysfunction-guide/Sexual_Dysfunction_Quick_Reference.pdf"

# ── Colour palette ──────────────────────────────────────────────────────────
C_NAVY      = HexColor("#1A2E4A")   # header background
C_TEAL      = HexColor("#1B7A8A")   # section headers
C_LIGHT_BLUE= HexColor("#D6EAF0")   # table row alt
C_MINT      = HexColor("#E8F5F2")   # management cell bg
C_AMBER     = HexColor("#FFF3CD")   # DSM criteria cell bg
C_ORANGE    = HexColor("#E07B39")   # accent strip
C_GREY_LIGHT= HexColor("#F4F6F8")
C_GREY      = HexColor("#7F8C8D")
C_RED_SOFT  = HexColor("#F9EBEA")
C_GREEN_SOFT= HexColor("#EAF7F0")

# ── Document setup ───────────────────────────────────────────────────────────
doc = SimpleDocTemplate(
    OUTPUT_PATH,
    pagesize=A4,
    leftMargin=15*mm,
    rightMargin=15*mm,
    topMargin=18*mm,
    bottomMargin=18*mm,
    title="Sexual Dysfunctions – Quick Reference Guide",
    author="Orris Medical Reference",
    subject="Psychiatry – Sexual Dysfunctions"
)

W = A4[0] - 30*mm  # usable page width

# ── Styles ───────────────────────────────────────────────────────────────────
styles = getSampleStyleSheet()

def S(name, **kw):
    return ParagraphStyle(name, **kw)

sTitle    = S("sTitle",    fontName="Helvetica-Bold",   fontSize=20, textColor=white,       alignment=TA_CENTER, spaceAfter=2)
sSubtitle = S("sSubtitle", fontName="Helvetica",        fontSize=10, textColor=HexColor("#BDC8D8"), alignment=TA_CENTER)
sSectionH = S("sSectionH", fontName="Helvetica-Bold",   fontSize=12, textColor=white,       spaceBefore=6, spaceAfter=3)
sDxHead   = S("sDxHead",   fontName="Helvetica-Bold",   fontSize=10, textColor=C_NAVY,      spaceBefore=4, spaceAfter=2)
sBody     = S("sBody",     fontName="Helvetica",        fontSize=8.5,leading=12,            textColor=HexColor("#2C3E50"), spaceAfter=2)
sBold     = S("sBold",     fontName="Helvetica-Bold",   fontSize=8.5,leading=12,            textColor=C_NAVY)
sBullet   = S("sBullet",   fontName="Helvetica",        fontSize=8,  leading=11,            textColor=HexColor("#2C3E50"), leftIndent=8, bulletIndent=0)
sSmall    = S("sSmall",    fontName="Helvetica-Oblique",fontSize=7.5,textColor=C_GREY,      spaceAfter=1)
sLabel    = S("sLabel",    fontName="Helvetica-Bold",   fontSize=7.5,textColor=C_TEAL,      spaceAfter=1)
sFooter   = S("sFooter",   fontName="Helvetica-Oblique",fontSize=7,  textColor=C_GREY,      alignment=TA_CENTER)
sWarning  = S("sWarning",  fontName="Helvetica-Bold",   fontSize=8,  textColor=HexColor("#8B0000"))
sTableHdr = S("sTableHdr", fontName="Helvetica-Bold",   fontSize=8,  textColor=white,       alignment=TA_CENTER)
sTableCell= S("sTableCell",fontName="Helvetica",        fontSize=8,  leading=10,            textColor=HexColor("#2C3E50"))
sTableBold= S("sTableBold",fontName="Helvetica-Bold",   fontSize=8,  leading=10,            textColor=C_NAVY)

def P(text, style=sBody):
    return Paragraph(text, style)

def B(text):
    return P(text, sBold)

def bullet(items, style=sBullet):
    return [P(f"• {i}", style) for i in items]

def HR(color=C_TEAL, thickness=0.8):
    return HRFlowable(width="100%", thickness=thickness, color=color, spaceAfter=4, spaceBefore=2)

def spacer(h=4):
    return Spacer(1, h*mm)

# ── Page header/footer callbacks ─────────────────────────────────────────────
def on_page(canvas, doc):
    canvas.saveState()
    # Footer
    canvas.setFont("Helvetica-Oblique", 7)
    canvas.setFillColor(C_GREY)
    canvas.drawString(15*mm, 10*mm, "Quick-Reference Guide | Sexual Dysfunctions | DSM-5 / IPS CPG 2017")
    canvas.drawRightString(A4[0]-15*mm, 10*mm, f"Page {doc.page}")
    # Thin top rule on pages > 1
    if doc.page > 1:
        canvas.setStrokeColor(C_TEAL)
        canvas.setLineWidth(0.5)
        canvas.line(15*mm, A4[1]-13*mm, A4[0]-15*mm, A4[1]-13*mm)
    canvas.restoreState()

# ═══════════════════════════════════════════════════════════════════════════════
# CONTENT BUILDER
# ═══════════════════════════════════════════════════════════════════════════════

story = []

# ── COVER HEADER BLOCK ────────────────────────────────────────────────────────
cover_data = [[
    P("SEXUAL DYSFUNCTIONS", sTitle),
]]
cover_table = Table([[P("SEXUAL DYSFUNCTIONS", sTitle)]], colWidths=[W])
cover_table.setStyle(TableStyle([
    ("BACKGROUND",  (0,0), (-1,-1), C_NAVY),
    ("ROWPADDING",  (0,0), (-1,-1), 10),
    ("TOPPADDING",  (0,0), (-1,-1), 14),
    ("BOTTOMPADDING",(0,0),(-1,-1),6),
    ("ROUNDEDCORNERS",[4]),
]))
story.append(cover_table)

subtitle_data = [[P("Quick-Reference Guide  |  Diagnostic Criteria & First-Line Management", sSubtitle)]]
sub_table = Table(subtitle_data, colWidths=[W])
sub_table.setStyle(TableStyle([
    ("BACKGROUND",  (0,0),(-1,-1), C_TEAL),
    ("ROWPADDING",  (0,0),(-1,-1), 5),
]))
story.append(sub_table)
story.append(spacer(3))

# Source line
story.append(P("Based on: DSM-5 | ICD-10/11 | Kaplan & Sadock's Comprehensive Textbook of Psychiatry (10th ed.) | IPS Clinical Practice Guidelines 2017 (Avasthi et al.)", sSmall))
story.append(HR(C_ORANGE, 1.2))
story.append(spacer(2))

# ── CLASSIFICATION TABLE ───────────────────────────────────────────────────────
def section_header(text):
    t = Table([[P(f"  {text}", sSectionH)]], colWidths=[W])
    t.setStyle(TableStyle([
        ("BACKGROUND",  (0,0),(-1,-1), C_TEAL),
        ("ROWPADDING",  (0,0),(-1,-1), 5),
        ("ROUNDEDCORNERS",[3]),
    ]))
    return t

story.append(section_header("CLASSIFICATION  (DSM-5)"))
story.append(spacer(2))

cls_headers = ["Phase", "Male", "Female", "Both Sexes"]
cls_data = [
    [P(h, sTableHdr) for h in cls_headers],
    [P("Desire / Interest", sTableBold), P("Male HSDD (MHSDD)", sTableCell),
     P("Female Sexual Interest/Arousal Disorder (FSIAD)", sTableCell), P("—", sTableCell)],
    [P("Arousal / Erection", sTableBold), P("Erectile Disorder (ED)", sTableCell),
     P("(merged into FSIAD in DSM-5)", sTableCell), P("—", sTableCell)],
    [P("Orgasm", sTableBold), P("Delayed Ejaculation (DE)", sTableCell),
     P("Female Orgasmic Disorder (FOD)", sTableCell), P("—", sTableCell)],
    [P("Ejaculation", sTableBold), P("Premature Ejaculation (PE)", sTableCell),
     P("—", sTableCell), P("—", sTableCell)],
    [P("Pain / Penetration", sTableBold), P("—", sTableCell),
     P("Genitopelvic Pain/Penetration Disorder (GPPPD)", sTableCell), P("—", sTableCell)],
    [P("Substance/Med-induced", sTableBold), P("Any phase", sTableCell),
     P("Any phase", sTableCell), P("Substance/Medication-\nInduced SD", sTableCell)],
]
cls_col = [28*mm, 43*mm, 68*mm, 36*mm]
cls_table = Table(cls_data, colWidths=cls_col)
cls_table.setStyle(TableStyle([
    ("BACKGROUND",   (0,0),  (-1,0),  C_NAVY),
    ("BACKGROUND",   (0,1),  (-1,1),  C_LIGHT_BLUE),
    ("BACKGROUND",   (0,2),  (-1,2),  white),
    ("BACKGROUND",   (0,3),  (-1,3),  C_LIGHT_BLUE),
    ("BACKGROUND",   (0,4),  (-1,4),  white),
    ("BACKGROUND",   (0,5),  (-1,5),  C_LIGHT_BLUE),
    ("BACKGROUND",   (0,6),  (-1,6),  white),
    ("GRID",         (0,0),  (-1,-1), 0.5, HexColor("#BBCDD8")),
    ("ROWPADDING",   (0,0),  (-1,-1), 5),
    ("VALIGN",       (0,0),  (-1,-1), "MIDDLE"),
    ("FONTSIZE",     (0,0),  (-1,-1), 8),
]))
story.append(cls_table)
story.append(spacer(2))
story.append(P("Specifiers (all disorders): <b>Lifelong vs. Acquired</b> | <b>Generalized vs. Situational</b> | Severity: Mild / Moderate / Severe | Duration: ≥ 6 months | Distress criterion required", sSmall))
story.append(spacer(4))

# ═══════════════════════════════════════════════════════════════════════════════
# DYSFUNCTION CARDS
# ═══════════════════════════════════════════════════════════════════════════════

def card(
    number, name, code_dsm, code_icd,
    dx_criteria,        # list of strings
    key_features,       # list of strings
    etiology_org,       # list of strings
    etiology_psy,       # list of strings
    first_line_pharm,   # list of (drug, detail) tuples
    first_line_nonpharm,# list of strings
    red_flags=None,     # list of strings or None
    note=None
):
    """Build a KeepTogether card for one dysfunction."""
    elements = []

    # ── Card title bar
    title_row = [[
        P(f"  {number}. {name}", S("ct", fontName="Helvetica-Bold", fontSize=11,
          textColor=white, leading=14)),
        P(f"DSM-5: {code_dsm}  |  ICD-10: {code_icd}",
          S("cc", fontName="Helvetica", fontSize=8, textColor=HexColor("#CCE0E8"),
            alignment=4)),  # RIGHT
    ]]
    title_t = Table(title_row, colWidths=[W*0.62, W*0.38])
    title_t.setStyle(TableStyle([
        ("BACKGROUND", (0,0),(-1,-1), C_NAVY),
        ("ROWPADDING", (0,0),(-1,-1), 6),
        ("TOPPADDING", (0,0),(-1,-1), 8),
        ("BOTTOMPADDING",(0,0),(-1,-1), 8),
        ("VALIGN",     (0,0),(-1,-1), "MIDDLE"),
    ]))
    elements.append(title_t)

    # ── Two-column body: left = DX, right = Management
    # LEFT column content
    left = []
    left.append(P("<b><font color='#1B7A8A'>▸ DIAGNOSTIC CRITERIA (DSM-5)</font></b>", sBody))
    left.append(spacer(1))
    for c in dx_criteria:
        left.append(P(f"<font color='#1A2E4A'>◆</font>  {c}", sBullet))
    left.append(spacer(2))

    left.append(P("<b><font color='#1B7A8A'>▸ KEY CLINICAL FEATURES</font></b>", sBody))
    for f in key_features:
        left.append(P(f"• {f}", sBullet))
    left.append(spacer(2))

    left.append(P("<b><font color='#1B7A8A'>▸ ETIOLOGY</font></b>", sBody))
    left.append(P("<u>Organic:</u>", sLabel))
    for e in etiology_org:
        left.append(P(f"• {e}", sBullet))
    left.append(P("<u>Psychological:</u>", sLabel))
    for e in etiology_psy:
        left.append(P(f"• {e}", sBullet))

    # RIGHT column content
    right = []
    right.append(P("<b><font color='#1B7A8A'>▸ FIRST-LINE PHARMACOTHERAPY</font></b>", sBody))
    right.append(spacer(1))
    for drug, detail in first_line_pharm:
        right.append(P(f"<b>{drug}</b>", sBullet))
        right.append(P(f"  {detail}", S("ind", fontName="Helvetica", fontSize=7.5,
                         leading=10, textColor=C_GREY, leftIndent=14)))
    right.append(spacer(2))

    right.append(P("<b><font color='#1B7A8A'>▸ FIRST-LINE NON-PHARMACOLOGICAL</font></b>", sBody))
    right.append(spacer(1))
    for n in first_line_nonpharm:
        right.append(P(f"• {n}", sBullet))

    if red_flags:
        right.append(spacer(2))
        rf_items = "  ".join([f"⚠ {r}" for r in red_flags])
        right.append(P(f"<b><font color='#C0392B'>RED FLAGS:</font></b> {rf_items}", sWarning))

    if note:
        right.append(spacer(1))
        right.append(P(f"<i>{note}</i>", sSmall))

    # Wrap in left/right tables to equalise padding
    def col_wrap(content, bg):
        t = Table([[c] for c in content],
                  colWidths=[W*0.46 - 6*mm])
        t.setStyle(TableStyle([
            ("BACKGROUND",    (0,0),(-1,-1), bg),
            ("LEFTPADDING",   (0,0),(-1,-1), 5),
            ("RIGHTPADDING",  (0,0),(-1,-1), 5),
            ("TOPPADDING",    (0,0),(-1,-1), 2),
            ("BOTTOMPADDING", (0,0),(-1,-1), 2),
        ]))
        return t

    body_row = [[col_wrap(left, C_AMBER), col_wrap(right, C_MINT)]]
    body_t = Table(body_row, colWidths=[W*0.48, W*0.52])
    body_t.setStyle(TableStyle([
        ("VALIGN",       (0,0),(-1,-1), "TOP"),
        ("LEFTPADDING",  (0,0),(-1,-1), 3),
        ("RIGHTPADDING", (0,0),(-1,-1), 3),
        ("TOPPADDING",   (0,0),(-1,-1), 5),
        ("BOTTOMPADDING",(0,0),(-1,-1), 5),
        ("BOX",          (0,0),(-1,-1), 0.5, HexColor("#BBCDD8")),
        ("LINEABOVE",    (0,0),(-1,0),  1.5, C_TEAL),
    ]))
    elements.append(body_t)
    elements.append(spacer(3))

    return KeepTogether(elements)


# ─────────────────────────────────────────────────────────────────────────────
# CARD 1: Male HSDD
# ─────────────────────────────────────────────────────────────────────────────
story.append(section_header("SEXUAL DYSFUNCTIONS — INDIVIDUAL DISORDER CARDS"))
story.append(spacer(2))

story.append(card(
    number="1",
    name="Male Hypoactive Sexual Desire Disorder (MHSDD)",
    code_dsm="302.71 (F52.0)",
    code_icd="F52.0",
    dx_criteria=[
        "Persistently/recurrently deficient or absent sexual/erotic thoughts, fantasies, and desire for sexual activity",
        "Duration ≥ 6 months",
        "Causes marked distress in individual",
        "Not due to another disorder, medical condition, substance, or relationship problem alone",
    ],
    key_features=[
        "Rarely initiates sex; minimal response to partner's initiation",
        "May still have erections with masturbation (desire absent, function intact)",
        "Often comorbid with depression; bimodal prevalence (young & elderly men)",
        "Distinguish from reduced activity due to partner unavailability (fantasies preserved)",
    ],
    etiology_org=[
        "Testosterone deficiency (hypogonadism)",
        "Hyperprolactinemia (pituitary tumour, antipsychotics)",
        "Thyroid dysfunction, chronic illness, medications (opioids, antidepressants)",
    ],
    etiology_psy=[
        "Depression (dopamine depletion)",
        "Relationship conflict / unexpressed hostility toward partner",
        "History of trauma; fear of intimacy; prolonged abstinence",
        "Comorbid anxiety disorder",
    ],
    first_line_pharm=[
        ("Treat primary disorder first",
         "Treat depression (avoid SSRIs if possible; prefer bupropion) or anxiety"),
        ("Testosterone replacement",
         "Only if biochemically confirmed hypogonadism (total T < threshold); monitor PSA, Hct"),
        ("Cabergoline",
         "If hyperprolactinemia confirmed; dopamine agonist normalises prolactin"),
        ("Bupropion SR (off-label)",
         "Dopamine/norepinephrine reuptake inhibitor; improves desire & arousal"),
    ],
    first_line_nonpharm=[
        "Psychoeducation: address misconceptions, normalise sexual response",
        "Sex education (especially in Indian context – first-line per IPS CPG)",
        "Couples therapy: address relationship dissatisfaction",
        "CBT: challenge avoidance, negative cognitions, low self-esteem",
        "Sensate focus exercises to rebuild sexual connection",
    ],
    red_flags=["New-onset low desire: screen for prolactinoma (check prolactin + MRI)", "Concurrent depression needs independent treatment"],
    note="IPS CPG: Always assess for cultural factors, Dhat beliefs, and sexual knowledge gaps before pharmacotherapy."
))

# ─────────────────────────────────────────────────────────────────────────────
# CARD 2: FSIAD
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="2",
    name="Female Sexual Interest/Arousal Disorder (FSIAD)",
    code_dsm="302.72 (F52.22)",
    code_icd="F52.0 / F52.2",
    dx_criteria=[
        "≥3 of 6 symptoms for ≥6 months: (1) reduced interest in sex; (2) reduced erotic thoughts/fantasies; (3) reduced initiation/receptiveness; (4) absent/reduced excitement or pleasure during sex; (5) absent/reduced interest in response to erotic cues; (6) absent/reduced genital or non-genital sensations during sex",
        "Causes marked distress",
        "Not better explained by another disorder, medical condition, medication, or severe relationship distress",
    ],
    key_features=[
        "Merges prior HSDD and FSAD (DSM-5): recognises that female desire is often responsive, not spontaneous",
        "Most common female sexual dysfunction; prevalence 17–50%",
        "HSDD with distress ~10% of women; peaks in middle years",
        "Depression positively associated; partner's sexual function highly correlated",
    ],
    etiology_org=[
        "Oestrogen deficiency: peri/post-menopause, surgical menopause, postpartum, lactation",
        "Oral contraceptives: raise SHBG → lower free testosterone",
        "SSRIs/SNRIs (70–80% incidence of sexual side effects)",
        "Antipsychotics (hyperprolactinemia), antihypertensives",
        "Diabetes, vascular disease (impair vaginal engorgement)",
    ],
    etiology_psy=[
        "Depression and anxiety (most common psychological contributors)",
        "Negative body image; history of sexual trauma or abuse",
        "Relationship dissatisfaction, poor communication",
        "Inadequate sexual stimulation (often miscategorised as disorder)",
        "Cultural guilt, religious prohibitions on female sexual pleasure",
    ],
    first_line_pharm=[
        ("Flibanserin 100 mg nocte",
         "5-HT1A agonist / 5-HT2A antagonist; FDA-approved for premenopausal HSDD; separate alcohol by ≥2 h"),
        ("Bremelanotide 1.75 mg SC",
         "MC4 agonist; inject 45 min pre-sex; ≤8×/month; caution in hypertension; main SE: nausea"),
        ("Transdermal testosterone (off-label)",
         "Postmenopausal HSDD; shown to improve all sexual domains; monitor for androgenic SE"),
        ("Bupropion SR (off-label)",
         "Improves arousal, orgasm, and satisfaction in premenopausal women"),
        ("Topical oestrogen (if hypoestrogenic)",
         "Vaginal cream/ring/tablet for atrophy-driven symptoms; minimal systemic absorption"),
    ],
    first_line_nonpharm=[
        "Psychoeducation about responsive vs spontaneous desire in women",
        "Mindfulness-Based Cognitive Therapy (MBCT) – especially post-trauma",
        "Sensate focus (graded touching exercises, removes performance pressure)",
        "Couples therapy: communication skills, partner involvement",
        "CBT for trauma-related cognitions, body image, guilt",
        "Review and switch medications causing sexual side effects",
    ],
    note="IPS CPG: Inadequate stimulation is very common. Rule this out before diagnosing a disorder."
))

# ─────────────────────────────────────────────────────────────────────────────
# CARD 3: Erectile Disorder
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="3",
    name="Erectile Disorder (ED)",
    code_dsm="302.72 (F52.21)",
    code_icd="F52.2",
    dx_criteria=[
        "≥1 of 3 symptoms on almost all/all (75–100%) occasions, ≥6 months: (1) marked difficulty obtaining an erection; (2) marked difficulty maintaining an erection until completion of activity; (3) marked decrease in erectile rigidity",
        "Causes marked distress",
        "Not better explained by non-sexual mental disorder, severe relationship distress, or other significant stressors, medical condition, or substances",
    ],
    key_features=[
        "Most common male sexual dysfunction; prevalence 52% (Massachusetts Male Aging Study)",
        "Psychogenic: sudden onset, situational, morning erections preserved, younger age",
        "Organic: insidious onset, global (not situational), morning erections absent, cardiovascular risk factors",
        "ED in young men = early cardiovascular sentinel event (often precedes CAD by 3–5 years)",
        "Mixed etiology is very common in clinical practice",
    ],
    etiology_org=[
        "Vasculogenic (most common): atherosclerosis, hypertension, diabetes → endothelial dysfunction",
        "Neurogenic: MS, Parkinson's, spinal cord injury, radical prostatectomy, DM neuropathy",
        "Endocrine: hypogonadism, hyperprolactinemia, thyroid dysfunction",
        "Medications: antihypertensives (thiazides, β-blockers), antidepressants, antipsychotics, opioids",
        "Lifestyle: tobacco (linear dose-response), heavy alcohol, obesity, OSA",
    ],
    etiology_psy=[
        "Performance anxiety with spectatoring (commonest psychological mechanism)",
        "Depression (dopamine depletion) and anxiety (sympathetic override of parasympathetic arousal)",
        "Relationship conflict; fear of intimacy; prior traumatic sexual experience",
        "First organic episode → psychological anxiety → self-perpetuating cycle",
    ],
    first_line_pharm=[
        ("PDE-5 Inhibitors (first-line)",
         "Block PDE-5 enzyme → ↑cGMP → cavernosal smooth muscle relaxation → erection"),
        ("  Sildenafil 25–100 mg PRN",
         "Take 30–60 min before; affected by fatty meals; duration 4–6 h"),
        ("  Tadalafil 10–20 mg PRN / 2.5–5 mg daily",
         "Duration 36 h ('weekend pill'); daily dosing available; not food-affected"),
        ("  Vardenafil 5–20 mg PRN",
         "Onset 30 min; duration 4–5 h"),
        ("  Avanafil 50–200 mg PRN",
         "Fastest onset 15–30 min; duration 6–12 h"),
        ("CI: Organic nitrates (risk of severe hypotension)",
         "Absolute contraindication with any nitrate preparation"),
        ("Testosterone (if hypogonadal)",
         "Restores androgen milieu; PDE-5I often still needed concurrently"),
    ],
    first_line_nonpharm=[
        "Modify cardiovascular risk factors: weight loss, exercise, Mediterranean diet, quit smoking",
        "Review and switch offending medications (e.g., change antihypertensive class)",
        "CPAP for obstructive sleep apnoea (improves erectile function)",
        "Sensate focus: removes spectatoring, rebuilds sexual confidence",
        "CBT for performance anxiety; psychoeducation for couple",
        "Vacuum Erection Device (VED): second-line mechanical option",
        "Penile implant (inflatable prosthesis): third-line surgical option",
    ],
    red_flags=["Absent morning erections in young man: urgent endocrine + vascular workup", "New-onset ED + chest pain: cardiovascular evaluation before PDE-5I"],
    note="IPS CPG: For organic ED, refer to urologist/endocrinologist. Maintain psychiatric liaison for mixed etiology."
))

story.append(PageBreak())

# ─────────────────────────────────────────────────────────────────────────────
# CARD 4: Premature Ejaculation
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="4",
    name="Premature (Early) Ejaculation (PE)",
    code_dsm="302.75 (F52.4)",
    code_icd="F52.4",
    dx_criteria=[
        "Ejaculation within approximately 1 minute of vaginal penetration and before the person wishes it",
        "Present on almost all/all (75–100%) occasions, ≥6 months",
        "Causes marked distress",
        "Not better explained by non-sexual mental disorder, relationship distress, or medical condition/substance",
        "Three core criteria: (1) brief latency; (2) loss of control; (3) distress to patient/partner",
    ],
    key_features=[
        "Most common male sexual complaint globally (~30%); comorbid in ~1/3 of men with ED",
        "Subtypes: lifelong vs acquired; global vs situational",
        "Many cases represent normal biological variation — psychoeducation and reassurance are highly effective",
        "Lifelong PE: consistent since first sexual experience; likely neurobiological serotonin threshold",
        "Acquired PE: often secondary to ED, thyroid disease, prostatitis, or relationship distress",
    ],
    etiology_org=[
        "Thyroid dysfunction (hyperthyroidism: reversible cause — always check TSH)",
        "Urethritis / prostatitis (acquired PE)",
        "Comorbid ED (anxiety about erection hastens ejaculation)",
        "Penile hypersensitivity (proposed in lifelong PE)",
    ],
    etiology_psy=[
        "Conditioned response: early sexual experiences in high-anxiety/rushed contexts",
        "Performance anxiety; fear of detection; inadequate sexual education",
        "Relationship stress; poor communication with partner",
        "Anxiety disorders (especially generalised anxiety)",
    ],
    first_line_pharm=[
        ("SSRIs — daily (first-line)",
         "Central serotonergic inhibition of ejaculatory reflex; full effect in 2–3 weeks"),
        ("  Paroxetine 10–40 mg/day",
         "Most effective SSRI for PE; delayed ejaculation is a known side effect utilised therapeutically"),
        ("  Sertraline 50–200 mg/day",
         "Well tolerated; alternative first-line"),
        ("  Fluoxetine 20–40 mg/day / Escitalopram 10–20 mg/day",
         "Other options; long half-life of fluoxetine is an advantage"),
        ("Dapoxetine 30–60 mg on-demand",
         "Short-acting SSRI; take 1–3 h before sex; only SSRI specifically approved for PE in many countries"),
        ("Topical lidocaine–prilocaine (EMLA spray/cream)",
         "Apply 20–30 min pre-sex; reduces penile sensitivity; improves latency and control"),
        ("Clomipramine 12.5–50 mg/day",
         "TCA alternative if SSRIs fail; 5-HT reuptake inhibition"),
        ("Tramadol (third-line, off-label)",
         "Opioid + serotonergic mechanisms; risk of dependence — use with caution"),
    ],
    first_line_nonpharm=[
        "Psychoeducation and reassurance (many cases resolve with education alone)",
        "Squeeze technique: stimulate to near-ejaculation, apply pressure at coronal ridge for 30 sec",
        "Stop-Start technique (Semans): pause all stimulation at near-ejaculation; repeat 3× then allow orgasm",
        "Sensate focus: reduces performance anxiety, improves ejaculatory awareness",
        "Couples therapy: PE is a dyadic problem; partner involvement improves outcomes",
        "If PE + ED: treat ED first with PDE-5I; PE may resolve",
    ],
    note="If PE is acquired + associated with hyperthyroidism: treating thyroid disorder resolves PE."
))

# ─────────────────────────────────────────────────────────────────────────────
# CARD 5: Delayed Ejaculation
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="5",
    name="Delayed Ejaculation (DE)",
    code_dsm="302.74 (F52.32)",
    code_icd="F52.3",
    dx_criteria=[
        "Either (1) marked delay in ejaculation OR (2) marked infrequency/absence of ejaculation, on almost all/all occasions, ≥6 months",
        "Causes marked distress",
        "Not better explained by another disorder, medication, medical condition, or inadequate stimulation",
    ],
    key_features=[
        "Least common male ejaculatory disorder; incidence rising with SSRI use",
        "Classic pattern: can ejaculate with masturbation, cannot intravaginally (situational subtype)",
        "Lifelong DE: often psychosexual — idiosyncratic masturbatory style, rarely attainable with partner",
        "Acquired DE: usually medication-induced (SSRIs, antipsychotics, opioids)",
        "Anejaculation: complete inability to ejaculate (severe form)",
    ],
    etiology_org=[
        "SSRIs / SNRIs (very common cause)",
        "Antipsychotics (alpha-1 blockade impairs emission)",
        "Opioids, excessive alcohol",
        "Spinal cord injury, pelvic surgery, diabetic autonomic neuropathy",
        "Hypogonadism, hypothyroidism",
    ],
    etiology_psy=[
        "Performance anxiety drawing attention away from erotic stimulation",
        "Idiosyncratic masturbatory style (specific fantasy/technique not replicable with partner)",
        "Ambivalence about parenthood (partner trying to conceive)",
        "Fear of loss of control; hostility toward partner",
        "Psychosexual developmental conflicts",
    ],
    first_line_pharm=[
        ("Reduce/withdraw offending drug",
         "If SSRI/antipsychotic is cause: lower dose, switch to non-serotonergic agent (bupropion, mirtazapine)"),
        ("Bupropion (if switching antidepressant)",
         "Dopamine/NE reuptake inhibitor; not associated with ejaculatory delay"),
        ("Cyproheptadine 4–12 mg PRN",
         "5-HT2 antagonist; taken 1–2 h before sex to reverse SSRI-induced DE (short-term)"),
        ("Amantadine 100–200 mg PRN",
         "Dopamine agonist properties; off-label for drug-induced DE"),
        ("Cabergoline / testosterone",
         "If hyperprolactinemia or hypogonadism respectively confirmed"),
    ],
    first_line_nonpharm=[
        "Psychoeducation: explain mechanism, normalise the experience",
        "Graduated extravaginal ejaculation → progressively closer to vaginal entry (bridging technique)",
        "Partner-assisted stimulation to point of near-ejaculation before penetration",
        "Address idiosyncratic masturbatory style: vary technique, reduce frequency before sex",
        "Psychodynamic/CBT therapy for ambivalence, partner hostility, or trauma",
        "Stop-start technique adapted for DE: focus on erotic sensations rather than on achieving orgasm",
    ],
    note="Many DE cases improve when the offending medication is changed. Always review drug list first."
))

story.append(PageBreak())

# ─────────────────────────────────────────────────────────────────────────────
# CARD 6: Female Orgasmic Disorder
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="6",
    name="Female Orgasmic Disorder (FOD)",
    code_dsm="302.73 (F52.31)",
    code_icd="F52.3",
    dx_criteria=[
        "≥1 of 3 on almost all/all (75–100%) occasions, ≥6 months: (1) marked delay in orgasm; (2) marked infrequency or absence of orgasm; (3) markedly reduced intensity of orgasmic sensations",
        "Causes marked distress",
        "Not better explained by another disorder, medical condition, medications, or inadequate stimulation",
    ],
    key_features=[
        "Primary (lifelong) FOD: has never experienced orgasm by any means",
        "Secondary (acquired) FOD: previously orgasmic; most commonly drug-induced",
        "Situational FOD: orgasmic with masturbation but not with partner (very common, often normal)",
        "Many women require direct clitoral stimulation not provided by coital activity alone",
        "SSRIs are the commonest acquired cause — always take detailed drug history",
    ],
    etiology_org=[
        "SSRIs/SNRIs: most common drug cause (70–80% rate)",
        "Antipsychotics, benzodiazepines",
        "Spinal cord injury, pelvic surgery, MS",
        "Menopause (reduced vaginal blood flow, atrophy)",
        "Diabetes (autonomic neuropathy)",
    ],
    etiology_psy=[
        "Anxiety and fear of 'losing control'",
        "Religious/moral guilt about sexual pleasure",
        "Negative body image and self-consciousness",
        "History of sexual trauma or abuse",
        "Inadequate sexual knowledge or stimulation technique",
        "Partner communication failure",
    ],
    first_line_pharm=[
        ("Switch/reduce SSRI if causative",
         "Switch to bupropion, mirtazapine, vilazodone, or vortioxetine (lower sexual SE profile)"),
        ("Bupropion SR (off-label)",
         "Improves orgasm frequency and intensity; useful add-on or substitute"),
        ("Sildenafil (off-label)",
         "PDE-5I increases clitoral blood flow; evidence for SSRI-induced anorgasmia in women"),
        ("Bremelanotide (off-label)",
         "MC4 receptor agonist; may facilitate orgasm by enhancing arousal"),
        ("EROS device",
         "FDA-approved medical device; small vacuum pump over clitoris increases blood flow → orgasm aid"),
    ],
    first_line_nonpharm=[
        "Directed masturbation program (most evidence-based approach for primary FOD)",
        "Psychoeducation: anatomy (clitoral role), normal variation in orgasmic response",
        "Sensate focus: graduated touching, removes orgasm as goal",
        "Vibrator use: most effective tool for women with primary anorgasmia",
        "CBT: address guilt, shame, trauma-related beliefs, fear of losing control",
        "Communication skills training with partner",
    ],
    note="Situational FOD (orgasmic alone, not with partner) is very common and not always pathological — assess distress carefully."
))

# ─────────────────────────────────────────────────────────────────────────────
# CARD 7: GPPPD (Vaginismus / Dyspareunia)
# ─────────────────────────────────────────────────────────────────────────────
story.append(card(
    number="7",
    name="Genitopelvic Pain/Penetration Disorder (GPPPD)",
    code_dsm="302.76 (F52.6)",
    code_icd="F52.5 / N94.1 / N94.2",
    dx_criteria=[
        "Persistent/recurrent difficulties with ≥1 of 4, ≥6 months:",
        "(1) Difficulty with vaginal penetration during intercourse",
        "(2) Marked vulvovaginal/pelvic pain during intercourse or penetration attempts",
        "(3) Marked fear/anxiety about vulvovaginal/pelvic pain in anticipation of, during, or as a result of vaginal penetration",
        "(4) Marked tensing/tightening of pelvic floor muscles during attempted vaginal penetration",
        "Causes marked distress",
    ],
    key_features=[
        "Merges vaginismus + dyspareunia from DSM-IV (they co-occur and share pathophysiology)",
        "Vaginismus component: involuntary pelvic floor spasm — often a conditioned reflex",
        "Vicious cycle: pain → fear → muscle spasm → more pain → avoidance → worsening anxiety",
        "May prevent pelvic examination and tampon use (not only intercourse)",
        "Dyspareunia: pain localised (superficial = vestibular; deep = endometriosis, PID)",
        "Always rule out organic pelvic pathology before diagnosing psychogenic",
    ],
    etiology_org=[
        "Postmenopausal/surgical menopause: vaginal atrophy, inadequate lubrication",
        "Endometriosis, pelvic inflammatory disease",
        "Vulvodynia / vestibulodynia (chronic vulvar pain without identifiable lesion)",
        "Pelvic adhesions, ovarian cysts, uterine fibroids",
        "Urogenital infections, STIs",
        "Anatomical abnormalities, post-surgical scarring",
    ],
    etiology_psy=[
        "History of sexual trauma, rape, childhood sexual abuse (strongest association with vaginismus)",
        "Conservative upbringing: sex perceived as sinful, dirty, or inevitably painful",
        "Negative first sexual experience",
        "Relationship conflict, fear of pregnancy, fear of intimacy",
        "Conditioned anxiety response (classical conditioning of pain/spasm)",
        "Partner pressure, guilt, performance anxiety",
    ],
    first_line_pharm=[
        ("Topical oestrogen (vaginal cream/ring/tablet)",
         "Postmenopausal atrophic dyspareunia; minimal systemic absorption; highly effective"),
        ("Ospemifene 60 mg daily (oral SERM)",
         "Moderate-severe dyspareunia in postmenopausal women; alternative to topical oestrogen"),
        ("Topical lidocaine 2–4% gel",
         "Vulvodynia/vestibulodynia; apply 20 min before sex; reduces superficial pain"),
        ("Botulinum toxin A injection (specialist)",
         "Refractory vaginismus; injection into levator ani/bulbocavernosus muscles under GA"),
        ("Amitriptyline / gabapentin (low dose)",
         "Neuropathic component of vestibulodynia/vulvodynia; specialist-initiated"),
    ],
    first_line_nonpharm=[
        "Vaginal dilators: graduated sizes (1→5); self-inserted with relaxation; most evidence-based non-pharm Rx",
        "Pelvic floor physiotherapy: biofeedback, myofascial release, Kegel training",
        "CBT: desensitisation of fear/avoidance, cognitive restructuring of pain catastrophising",
        "Sensate focus: ban on penetration; graduated non-genital → genital touching",
        "Systematic desensitisation: paired relaxation with hierarchical exposure to penetration cues",
        "Couples therapy: partner education, communication, guilt-free rebuilding of intimacy",
        "Treat identifiable organic cause (endometriosis → gynaecology referral; atrophy → topical oestrogen)",
    ],
    red_flags=["Deep dyspareunia: refer to gynaecology to exclude endometriosis / PID / ovarian pathology", "Vaginismus preventing pelvic exam: gentle examination under relaxation; avoid forced examination"],
    note="IPS CPG: Vaginismus has excellent prognosis with combined dilator + psychotherapy. Early intervention prevents chronicity."
))

story.append(PageBreak())

# ═══════════════════════════════════════════════════════════════════════════════
# IPS CPG MANAGEMENT ALGORITHM
# ═══════════════════════════════════════════════════════════════════════════════
story.append(section_header("IPS CPG 2017 — MANAGEMENT ALGORITHM (Avasthi et al.)"))
story.append(spacer(2))

algo_text = [
    P("<b>Step 1.</b> Detailed psychosexual history + physical examination + basic investigations (FBS/HbA1c, lipids, testosterone, prolactin, TFTs)", sBody),
    spacer(1),
    P("<b>Step 2.</b> Assess sexual knowledge: Is dysfunction due to poor sexual knowledge or poor relationship quality?", sBody),
    P("    → <b>YES</b>: Sex Education first → Reassess", sBody),
    spacer(1),
    P("<b>Step 3.</b> Ascertain type of dysfunction and probable etiology", sBody),
    spacer(1),
]

algo_table_data = [
    [P("ORGANIC ETIOLOGY", sTableHdr), P("MIXED / PSYCHOGENIC ETIOLOGY", sTableHdr)],
    [
        P("• Refer to relevant specialist (endocrinologist, urologist, gynaecologist)\n• Maintain psychiatric liaison\n• Treat organic cause\n• Identify any additional psychological component", sTableCell),
        P("• Screen for comorbid psychiatric disorder (depression, anxiety)\n  → If present: treat primary disorder first\n• Assess motivation and psychological sophistication\n  → Low motivation: start pharmacotherapy; gradually engage in psychotherapy\n  → High motivation: combined pharmacotherapy + psychotherapy from outset", sTableCell),
    ],
]
algo_t = Table(algo_table_data, colWidths=[W*0.48, W*0.52])
algo_t.setStyle(TableStyle([
    ("BACKGROUND",   (0,0),(0,0), C_TEAL),
    ("BACKGROUND",   (1,0),(1,0), C_NAVY),
    ("BACKGROUND",   (0,1),(0,1), C_RED_SOFT),
    ("BACKGROUND",   (1,1),(1,1), C_GREEN_SOFT),
    ("GRID",         (0,0),(-1,-1), 0.5, HexColor("#BBCDD8")),
    ("VALIGN",       (0,0),(-1,-1), "TOP"),
    ("ROWPADDING",   (0,0),(-1,-1), 7),
    ("FONTSIZE",     (0,0),(-1,-1), 8),
]))
story.append(algo_t)
story.append(spacer(2))

story.append(P("<b>Step 4. Treatment Selection:</b> Explain all available modalities → patient/couple chooses → agree on treatment goals before starting", sBody))
story.append(spacer(1))

tx_cols = [
    [P("<b><font color='#1B7A8A'>GENERAL MEASURES</font></b>", sBody)],
    [P("• Sex education and psychoeducation", sBullet)],
    [P("• Relaxation exercises", sBullet)],
    [P("• Lifestyle modification (exercise, diet, substance cessation)", sBullet)],
    [P("• Screening questionnaires: IIEF-5 (ED), DSDS (female HSDD), SKAQ (Hindi — North Indian)", sBullet)],
]

story.append(P("<b>General Measures (apply to all patients):</b>", sBody))
for row in tx_cols[1:]:
    story.append(row[0])

story.append(spacer(2))
story.append(P("<b>Specific Measures:</b>", sBody))

spec_data = [
    [P("NON-PHARMACOLOGICAL", sTableHdr), P("PHARMACOLOGICAL", sTableHdr)],
    [
        P("Psychodynamic therapy\nCBT (individual)\nCouples / relational therapy\nMasters & Johnson Dual-Sex Therapy\nSensate focus exercises\nSystematic desensitisation\nDirected masturbation (FOD)\nSqueeze/Stop-Start technique (PE)\nVaginal dilators (GPPPD)\nMindfulness-Based Therapy (FSIAD, FOD)\nPelvic floor physiotherapy (GPPPD)\nSex communication skills training", sTableCell),
        P("Erectile Disorder: PDE-5 inhibitors (sildenafil, tadalafil, vardenafil, avanafil)\nPE: SSRIs (paroxetine, sertraline), dapoxetine, topical anaesthetics\nFemale HSDD: flibanserin, bremelanotide, off-label testosterone\nDE: switch/reduce offending drug, cyproheptadine, bupropion\nFOD: switch SSRI, bupropion, sildenafil off-label\nGPPPD: topical oestrogen, ospemifene, topical lidocaine, botox (specialist)\nAll: treat underlying endocrine/vascular cause", sTableCell),
    ],
]
spec_t = Table(spec_data, colWidths=[W*0.46, W*0.54])
spec_t.setStyle(TableStyle([
    ("BACKGROUND",   (0,0),(-1,0), C_NAVY),
    ("BACKGROUND",   (0,1),(0,1), C_MINT),
    ("BACKGROUND",   (1,1),(1,1), C_AMBER),
    ("GRID",         (0,0),(-1,-1), 0.5, HexColor("#BBCDD8")),
    ("VALIGN",       (0,0),(-1,-1), "TOP"),
    ("ROWPADDING",   (0,0),(-1,-1), 7),
    ("FONTSIZE",     (0,0),(-1,-1), 8),
]))
story.append(spec_t)
story.append(spacer(3))

# ═══════════════════════════════════════════════════════════════════════════════
# DRUG-INDUCED SD MANAGEMENT
# ═══════════════════════════════════════════════════════════════════════════════
story.append(section_header("MANAGING PSYCHOTROPIC-INDUCED SEXUAL DYSFUNCTION"))
story.append(spacer(2))

drug_data = [
    [P("STRATEGY", sTableHdr), P("DETAILS", sTableHdr), P("NOTES", sTableHdr)],
    [P("1. Wait & watch", sTableBold), P("Some tolerance develops over 4–8 weeks", sTableCell), P("Only for mild cases", sTableCell)],
    [P("2. Dose reduction", sTableBold), P("Lowest effective dose minimises sexual SE", sTableCell), P("Must balance psychiatric stability", sTableCell)],
    [P("3. Add-on agents", sTableBold), P("Bupropion (most evidence); sildenafil (men AND women); buspirone; amantadine", sTableCell), P("Sildenafil RCT evidence in women on SSRIs", sTableCell)],
    [P("4. Drug holiday", sTableBold), P("Brief planned discontinuation before sex (only short half-life agents: paroxetine)", sTableCell), P("Risk: discontinuation SE, relapse — use cautiously", sTableCell)],
    [P("5. Switch to non-offending agent", sTableBold), P("Bupropion / mirtazapine / vilazodone / vortioxetine (low dose) / moclobemide", sTableCell), P("Most effective long-term strategy", sTableCell)],
    [P("Antipsychotic-induced:", sTableBold), P("Switch to aripiprazole or quetiapine (lower prolactin effect); or add aripiprazole to reduce hyperprolactinemia", sTableCell), P("Prolactin level guides decision", sTableCell)],
]

drug_t = Table(drug_data, colWidths=[W*0.22, W*0.48, W*0.30])
drug_t.setStyle(TableStyle([
    ("BACKGROUND",   (0,0),(-1,0), C_NAVY),
    ("BACKGROUND",   (0,1),(-1,1), C_GREY_LIGHT),
    ("BACKGROUND",   (0,2),(-1,2), white),
    ("BACKGROUND",   (0,3),(-1,3), C_GREY_LIGHT),
    ("BACKGROUND",   (0,4),(-1,4), white),
    ("BACKGROUND",   (0,5),(-1,5), C_GREY_LIGHT),
    ("BACKGROUND",   (0,6),(-1,6), C_RED_SOFT),
    ("GRID",         (0,0),(-1,-1), 0.5, HexColor("#BBCDD8")),
    ("ROWPADDING",   (0,0),(-1,-1), 5),
    ("VALIGN",       (0,0),(-1,-1), "MIDDLE"),
    ("FONTSIZE",     (0,0),(-1,-1), 8),
]))
story.append(drug_t)
story.append(spacer(2))

antidepressant_note = (
    "<b>SSRI Sexual SE rates:</b> Sertraline, venlafaxine, citalopram, paroxetine, fluoxetine → 70–80% | "
    "Imipramine, phenelzine, duloxetine, fluvoxamine → 25–45% | "
    "<b>No significant difference from placebo:</b> Bupropion, vilazodone, vortioxetine"
)
story.append(P(antidepressant_note, sSmall))

story.append(spacer(4))

# ═══════════════════════════════════════════════════════════════════════════════
# QUICK-REFERENCE SUMMARY TABLE
# ═══════════════════════════════════════════════════════════════════════════════
story.append(section_header("AT-A-GLANCE SUMMARY"))
story.append(spacer(2))

sum_data = [
    [P(h, sTableHdr) for h in ["Dysfunction", "Duration", "Prevalence", "Key Organic Cause", "Key Psychological Cause", "First-Line Pharm", "First-Line Non-Pharm"]],
    [P("MHSDD", sTableBold), P("≥6 mo", sTableCell), P("2% (young); 40% (>65 yr)", sTableCell), P("Low T, hyperprolactin", sTableCell), P("Depression, relationship conflict", sTableCell), P("Testosterone (if deficient); bupropion", sTableCell), P("Sex education; couples therapy", sTableCell)],
    [P("FSIAD", sTableBold), P("≥6 mo", sTableCell), P("17–50%", sTableCell), P("Estrogen deficiency; OCP; SSRIs", sTableCell), P("Depression; trauma; inadequate stimulation", sTableCell), P("Flibanserin; bremelanotide", sTableCell), P("Mindfulness; sensate focus", sTableCell)],
    [P("ED", sTableBold), P("≥6 mo", sTableCell), P("52% (all ages)", sTableCell), P("Vasculogenic (most common)", sTableCell), P("Performance anxiety; spectatoring", sTableCell), P("PDE-5 inhibitors (sildenafil, tadalafil)", sTableCell), P("CVD risk factor modification; sensate focus", sTableCell)],
    [P("PE", sTableBold), P("≥6 mo", sTableCell), P("~30% men", sTableCell), P("Hyperthyroidism; urethritis", sTableCell), P("Conditioned anxiety; rushed early sex", sTableCell), P("Paroxetine/SSRIs daily; dapoxetine PRN; topical EMLA", sTableCell), P("Squeeze/stop-start technique", sTableCell)],
    [P("DE", sTableBold), P("≥6 mo", sTableCell), P("Increasing (SSRI era)", sTableCell), P("SSRIs; pelvic surgery; DM neuropathy", sTableCell), P("Idiosyncratic masturbation; ambivalence", sTableCell), P("Switch to bupropion; cyproheptadine PRN", sTableCell), P("Extravaginal bridging; psychotherapy", sTableCell)],
    [P("FOD", sTableBold), P("≥6 mo", sTableCell), P("5–10%", sTableCell), P("SSRIs; pelvic surgery; menopause", sTableCell), P("Guilt; fear of losing control; trauma", sTableCell), P("Switch SSRI; bupropion; sildenafil off-label", sTableCell), P("Directed masturbation; vibrator; CBT", sTableCell)],
    [P("GPPPD", sTableBold), P("≥6 mo", sTableCell), P("Variable", sTableCell), P("Vaginal atrophy; endometriosis; vulvodynia", sTableCell), P("Trauma; conditioned pain fear; guilt", sTableCell), P("Topical estrogen; ospemifene; topical lidocaine", sTableCell), P("Vaginal dilators; pelvic floor PT; CBT", sTableCell)],
]

col_w = [W*0.09, W*0.06, W*0.10, W*0.15, W*0.17, W*0.23, W*0.20]
sum_t = Table(sum_data, colWidths=col_w)
sum_t.setStyle(TableStyle([
    ("BACKGROUND",   (0,0),(-1,0), C_NAVY),
    ("BACKGROUND",   (0,1),(-1,1), C_LIGHT_BLUE),
    ("BACKGROUND",   (0,2),(-1,2), white),
    ("BACKGROUND",   (0,3),(-1,3), C_LIGHT_BLUE),
    ("BACKGROUND",   (0,4),(-1,4), white),
    ("BACKGROUND",   (0,5),(-1,5), C_LIGHT_BLUE),
    ("BACKGROUND",   (0,6),(-1,6), white),
    ("BACKGROUND",   (0,7),(-1,7), C_LIGHT_BLUE),
    ("GRID",         (0,0),(-1,-1), 0.5, HexColor("#BBCDD8")),
    ("ROWPADDING",   (0,0),(-1,-1), 4),
    ("VALIGN",       (0,0),(-1,-1), "TOP"),
    ("FONTSIZE",     (0,0),(-1,-1), 7.5),
]))
story.append(sum_t)
story.append(spacer(3))

# ─────────────────────────────────────────────────────────────────────────────
# REFERENCES FOOTER
# ─────────────────────────────────────────────────────────────────────────────
story.append(HR(C_ORANGE, 1.5))
story.append(spacer(1))
refs = [
    "1. Kaplan & Sadock's Comprehensive Textbook of Psychiatry, 10th ed. — Chapter 33.17c (Ponce Martinez, El Haddad, Clayton). Wolters Kluwer.",
    "2. Kaplan & Sadock's Synopsis of Psychiatry, 12th ed. — Chapter 16. Wolters Kluwer.",
    "3. Avasthi A, Grover S, Sathyanarayana Rao TS. Clinical Practice Guidelines for Management of Sexual Dysfunction. Indian J Psychiatry. 2017;59(Suppl 1):S91–S115.",
    "4. Salonia A et al. EAU Guidelines on Sexual and Reproductive Health: Male Sexual Dysfunction 2021. Eur Urol. 2021;80(3):333–357. [PMID 34183196]",
    "5. Sathyanarayana Rao TS et al. IPS CPG for Sexual Disorders in Elderly. Indian J Psychiatry. 2018;60(Suppl 3):S398–S402.",
    "6. Zulfikaroglu E. Vaginismus treatment: systematic review and meta-analysis. J Sex Med. 2026. [PMID 41148166]",
]
for r in refs:
    story.append(P(r, sFooter))

# ─────────────────────────────────────────────────────────────────────────────
# BUILD
# ─────────────────────────────────────────────────────────────────────────────
doc.build(story, onFirstPage=on_page, onLaterPages=on_page)
print(f"PDF created: {OUTPUT_PATH}")
print(f"Size: {os.path.getsize(OUTPUT_PATH):,} bytes")
Running Command

cd /tmp/workspace/sexual-dysfunction-guide && python build_guide.py 2>&1

The PDF built cleanly. Here's your download link:

Sexual Dysfunction Quick Reference

PDF Document · PDF


What's inside (4 pages, A4):
Page 1
  • Title header and source attribution
  • DSM-5 Classification table (all dysfunctions by phase, gender, ICD codes)
  • Cards 1-3: MHSDD, FSIAD, Erectile Disorder - each with diagnostic criteria, key clinical features, organic and psychological etiology, first-line pharmacotherapy, and first-line non-pharmacological management
Page 2
  • Cards 4-5: Premature Ejaculation and Delayed Ejaculation
Page 3
  • Cards 6-7: Female Orgasmic Disorder and GPPPD (Vaginismus/Dyspareunia)
  • IPS CPG 2017 Management Algorithm in tabular format (organic vs psychogenic pathways)
Page 4
  • Psychotropic-Induced Sexual Dysfunction: 6-strategy management table with SSRI SE rate comparison
  • At-a-Glance Summary: all 7 dysfunctions in one table (duration, prevalence, key causes, first-line pharm and non-pharm)
  • References (Kaplan & Sadock, IPS CPG 2017, EAU Guidelines)
Each dysfunction card uses a two-column layout: amber background for diagnostic criteria/etiology | mint background for management, with red flags highlighted in red where clinically important.

explain male and female sexual cycles in simple terms which can be easily remembered and explained as a part of sex education. Also a detailed overview of management of Dhat syndrome

Finding Sources
Finding Sources
Searching the Web

Dhat syndrome management treatment IPS guidelines India 2024

Reading File
Finding Sources
Finding Sources
Searching PubMed

"Dhat syndrome" AND treatment

Reading File
Reading File
Reading Web Page

https://pmc.ncbi.nlm.nih.gov/articles/PMC5310110

Reading File
Finding Sources
Loading Image
I have everything needed - the diagram, detailed textbook content, and IPS CPG data. Here is the full response.

Part 1: The Sexual Response Cycle — Simply Explained

Sources: Kaplan & Sadock's Comprehensive Textbook of Psychiatry (10th ed.), Textbook of Family Medicine (9th ed.), Campbell Walsh Wein Urology, Medical Physiology (Boron & Boulpaep)

The Big Picture First

Think of sexual response like building and releasing pressure - like a water balloon being filled and then released. The body and mind work together to build up tension (excitement → plateau), release it (orgasm), and then return to rest (resolution). This is the same basic process in both men and women, though the timeline and details differ.
Kaplan added one more step at the very beginning: Desire - the mental "wanting" that starts the whole process. So the full model is:
Desire → Excitement → Plateau → Orgasm → Resolution
The diagram below (from Textbook of Family Medicine, 9th ed.) shows these cycles visually for both sexes:
Female (A) and Male (B) sexual response cycles showing Excitement, Plateau, Orgasm, and Resolution phases

A Memory Anchor: "DEPOR"

D - Desire E - Excitement P - Plateau O - Orgasm R - Resolution
Or if you use the classic Masters & Johnson model (without Desire): EPOR

Phase-by-Phase Explanation

Phase 0: Desire

What it is: The mental spark - wanting to have sex, having sexual thoughts, fantasies, or responding to a partner's signals.
What happens in the brain: Dopamine rises (the "wanting" chemical). Testosterone plays a key role in both sexes.
Key point for sex education: In men, desire often comes spontaneously (the urge arrives on its own). In women, desire is frequently responsive - it gets triggered by the situation, partner behaviour, or physical touch, rather than arising out of nowhere. Neither is abnormal. This is one of the most important things to communicate because many women (and their partners) wrongly believe something is wrong when desire doesn't arrive "on its own."
Analogy: Think of a stove. Men's desire is more like a gas stove - it ignites quickly when you want it. Women's desire is more like an induction stove - it heats up beautifully, but it needs contact with the right surface (context, relationship, stimulation) to get started. Both cook food perfectly well.

Phase 1: Excitement (Arousal)

What it is: The body starting to physically prepare for sex. Lasts minutes to hours.
The master mechanism: Both sexes respond to physical or psychological stimulation through the parasympathetic nervous system (the "rest and digest / connect" system). Blood flows into genital tissue, causing engorgement.

In Men:

What happensWhy
Penis becomes erectParasympathetic nerves release nitric oxide (NO) → blood flows into corpus cavernosum
Scrotal skin tightensCremasteric reflex
Testes begin to elevatePreparation for ejaculation
Heart rate and breathing increaseGeneral sympathetic arousal
Pre-ejaculatory fluid appearsCowper's glands secrete - lubricates and neutralises urine acidity

In Women:

What happensWhy
Clitoris and labia swellSame NO mechanism - blood engorgement of erectile tissue
Vagina lubricatesTransudation (fluid seeps through vaginal walls from increased blood flow)
Vagina lengthens and expands"Tenting" - upper vagina widens to accommodate
Nipples may erectSmooth muscle contraction in areola
Heart rate and breathing increaseSame as men
Simple analogy for both: The genitals are like sponges. In the excitement phase, blood rushes in and fills the sponge. In men this creates an erection. In women this creates swelling and lubrication. It is the same biological process in both sexes - just with different anatomy.
Key education point: Lubrication is not the same as desire or consent - it is an automatic physiological reflex. Similarly, erection is not always a sign of desire. Students often confuse these.

Phase 2: Plateau

What it is: Arousal reaches its peak and stabilises. The body is "charged up" and ready for orgasm if stimulation continues.

In Men:

  • Erection is fully maintained
  • Testes are fully elevated (up to 50% increase in size due to engorgement)
  • Pre-ejaculatory secretion continues
  • Heart rate, blood pressure, and breathing continue rising
  • Increasing sense of pleasure and tension

In Women:

  • Clitoris becomes extremely sensitive and partially retracts under the clitoral hood (this is normal - it is not "disappearing")
  • Outer third of the vagina swells and narrows (the "orgasmic platform" - creates grip sensation during intercourse)
  • Inner vagina continues to expand
  • "Sex flush" - a pink-red skin blush may appear on chest and neck from increased blood flow
  • Breathing, heart rate, blood pressure all rising
Analogy: The plateau is like a spring being coiled tighter and tighter. The tension builds toward a tipping point.
Duration: This phase is variable - and this is important for sex education. Women generally have a longer plateau phase and may need more sustained stimulation to reach orgasm than men. This is biology, not a sign that anything is wrong.

Phase 3: Orgasm

What it is: The peak release of sexual tension. The shortest phase - typically 3-15 seconds.
The master mechanism: At orgasm, control switches from the parasympathetic to the sympathetic nervous system (the "fight or flight" system). This triggers the rhythmic contractions. This is why anxiety (which activates sympathetic tone prematurely) can prevent orgasm - the switch gets flipped at the wrong time.

In Men - Two separate events:

1. Emission (controlled by sympathetic system - T10-L2 spinal level):
  • Vas deferens, seminal vesicles, and prostate contract
  • Semen is pumped into the posterior urethra (the "point of no return" - ejaculation becomes inevitable)
  • Internal urethral sphincter closes to prevent retrograde ejaculation into the bladder
2. Ejaculation (controlled by somatic motor system - S2-S4 via pudendal nerve):
  • Rhythmic contractions of the bulbocavernosus and ischiocavernosus muscles
  • Semen is expelled in spurts, 0.8 second intervals (same as female orgasmic contractions)
  • Typically 3-7 contractions
The subjective sensation of orgasm and the physical act of ejaculation are two different things - they usually happen together but can be separated (e.g., dry orgasm, retrograde ejaculation).

In Women:

  • Rhythmic contractions of the outer vagina, uterus, and anal sphincter - also at 0.8-second intervals
  • Typically 5-15 contractions (more than men, which is part of why female orgasms can be more intense)
  • Controlled by S2-S4 via pudendal nerve (same as men)
  • The clitoris is the primary orgasmic organ - stimulation of the clitoris (directly or indirectly) is the most reliable route to orgasm
  • Many women do NOT reach orgasm from vaginal penetration alone - this is normal anatomy, not a dysfunction
Key education point - the clitoris: The clitoris is not just the small visible tip. It has internal branches ("roots") that wrap around the vagina. Vaginal stimulation can indirectly stimulate the internal clitoris - which is why some women orgasm from penetration while others need direct external stimulation. Both are completely normal.
The most important sex education message about orgasm: There is no "correct" way to have an orgasm. The absence of vaginal orgasm is not a dysfunction. Both sexes can experience orgasm without a partner, through masturbation, which is a normal and healthy part of human sexuality.

Phase 4: Resolution

What it is: The body returning to its resting, unaroused state.

In Men - The REFRACTORY PERIOD:

After ejaculation, men enter a refractory period during which they cannot ejaculate again. This is a biological reset. Duration varies enormously:
  • Teenage males: minutes
  • Men in their 30s-40s: 30 minutes to several hours
  • Older men: hours to days
This is completely normal biology, not a medical problem. It is one of the key differences from women.

In Women - No mandatory refractory period:

Women can return to the excitement or plateau phase immediately after orgasm and may experience multiple orgasms with continued stimulation. This is the biological basis of female multi-orgasmic potential. Not all women experience this, and not all want to - neither is abnormal.

General resolution changes (both sexes):

  • Genital engorgement recedes
  • Heart rate, blood pressure, and breathing return to normal
  • A feeling of relaxation, satisfaction, and well-being
  • Skin flush fades

Side-by-Side Comparison Table (Easy to Memorise)

PhaseMenWomenKey Difference
DesireMostly spontaneousOften responsive/contextualWomen need right context; neither is wrong
ExcitementErection; pre-ejaculateLubrication; vaginal expansion; clitoral swellingSame mechanism (parasympathetic + NO), different anatomy
PlateauFull erection; testicular elevationOrgasmic platform forms; clitoral retractionWomen's plateau typically longer
OrgasmEmission (sympathetic) then ejaculation (somatic); 3-7 contractions5-15 rhythmic contractions; clitoris is primary organWomen: no ejaculation required; multiple orgasms possible
ResolutionRefractory period (mandatory)No refractory period; multiple orgasms possibleMajor biological difference

Kaplan's Model vs. Masters & Johnson vs. Basson

ModelAuthorPhasesBest used for
Linear 4-phaseMasters & Johnson (1966)Excitement → Plateau → Orgasm → ResolutionBasic sex ed; understanding physical responses
TriphasicKaplan (1974)Desire → Excitement → OrgasmClinical psychiatry - maps onto DSM-5 dysfunctions
Non-linear / CircularBasson (2002)Desire can follow arousal; emotional intimacy drives the cycleFemale sexuality - explains why low spontaneous desire ≠ disorder
Basson's model is worth explaining in sex education because it validates the experience of millions of women who are told they have low libido when they actually just have responsive desire - a completely normal pattern. - Kaplan & Sadock's Comprehensive Textbook, p.13477

What Controls All of This? (The Brain and Spinal Cord)

For completeness in a sex education setting:
  • Parasympathetic nervous system (S2-S4): Controls excitement/arousal - erection and lubrication. Activated by relaxation, safety, intimacy.
  • Sympathetic nervous system (T10-L2): Controls emission and orgasm. Also activated by anxiety - which is why anxiety inhibits erection/arousal but can hasten ejaculation.
  • Brain (limbic system/dopamine): Controls desire. Depression, stress, relationship conflict, and trauma act here.
Simple message: Stress and anxiety are the enemies of arousal. Safety and trust are the friends of good sexual response. This is why sex education cannot be separated from emotional health education.


Part 2: Dhat Syndrome - Detailed Overview and Management


What is Dhat Syndrome?

Dhat syndrome is a culture-bound syndrome - meaning it exists within a specific cultural context and is shaped by cultural beliefs. It is most prevalent in the Indian subcontinent (India, Pakistan, Bangladesh, Sri Lanka) though cases have been described in other cultures with similar beliefs about semen.
The word "Dhat" comes from the Sanskrit "Dhatu" - one of the seven bodily constituents in Ayurvedic medicine, referring to the vital bodily essence. In this belief system, semen is the most concentrated and precious Dhatu, believed to require 40 drops of blood to produce one drop of semen. Loss of semen is therefore believed to cause profound bodily weakness and disease.
DSM-5-TR lists Dhat syndrome under Cultural Concepts of Distress. ICD-11 includes it explicitly.

The Core Belief (Understanding This is Essential for Treatment)

The patient believes:
  1. Semen is being lost - through urine (a whitish discharge perceived as semen), nocturnal emission, or masturbation
  2. This loss is causing or will cause physical and mental damage
  3. The damage includes: weakness, fatigue, loss of vitality, sexual dysfunction, mental deterioration
The whitish discharge is almost always phosphaturia (phosphates in urine that appear cloudy) or normal prostatic secretions - not semen. But the patient is convinced it is semen and is deeply distressed.

Epidemiology

  • Predominantly affects young, unmarried or recently married men, rural background, lower socioeconomic status
  • 21-65% of male potency disorders presenting to clinics in the Indian subcontinent have Dhat syndrome
  • Mean duration of illness: ~5 years before presentation
  • Female Dhat syndrome exists: women present with white vaginal discharge (leucorrhoea) attributed to "vital essence loss," with similar somatic and sexual complaints - a 2025 scoping review (PMID 41377757) confirms the clinical profile mirrors the male syndrome

Clinical Presentation

Patients typically present with three overlapping clusters of complaints:

Cluster 1: Somatic Complaints (most prominent)

  • Fatigue, weakness, "loss of energy" (reported in ~74% of patients)
  • Muscular aches and pains
  • Tension headaches (~69%)
  • Palpitations, dizziness, poor sleep
  • Poor concentration and memory
  • "My body is getting weaker every day since I started losing semen"

Cluster 2: Psychological Complaints

  • Depressed mood (~63%)
  • Anxiety about health (~52%)
  • Guilt about masturbation
  • Hypochondriacal preoccupation with the body
  • Fear of impotence or infertility

Cluster 3: Sexual Complaints

  • Erectile dysfunction
  • Premature ejaculation
  • Low sexual desire
  • The patient often attributes these to the semen loss (whereas in reality, the anxiety about semen loss is causing the dysfunction)

Comorbidities (Critical for Management)

Dhat syndrome almost never occurs in isolation. Comorbidity rates:
  • Depression: 40-66% (most common)
  • Anxiety disorders: 21-38%
  • Somatoform/hypochondriacal disorders: up to 40%
  • Sexual dysfunctions (ED, PE): 30-40%
  • UTI/STI: must always be excluded
  • Rarely: OCD, phobia, body dysmorphic disorder, rarely prodrome of schizophrenia (case reports) - PMID 36425228
The direction of causality is complex: Does anxiety cause Dhat, or does Dhat cause anxiety? Usually both - a bidirectional vicious cycle.

Diagnosis

There is no single diagnostic test. Diagnosis is clinical, based on:
  1. History of the core belief: Patient attributes white discharge with urine or other semen loss to be causing their symptoms
  2. Presence of somatic + psychological + sexual symptoms
  3. Ruling out organic causes:
    • Urine examination: rule out UTI, phosphaturia (phosphates cause turbidity - can be demonstrated by adding dilute acid to urine which clears it), STI
    • Rule out infective pathology causing discharge
    • Rule out significant genitourinary disease
Validated tool: Dhat Syndrome Interview Schedule (Sharan et al., 2003 - developed at PGIMER Chandigarh for structured assessment)
ICD-11 Criteria: Experiencing and interpreting passage of whitish discharge in urine as semen loss + undue concern about the debilitating effects of semen passage + anxiety/somatic complaints related to the fear of semen loss.

Management: The IPS CPG Framework

The IPS CPG (Avasthi et al., 2017) provides a step-by-step algorithm for Dhat syndrome management. The key insight is that sex education is the primary treatment - everything else is secondary.

The IPS CPG Management Algorithm (Figure 5)

Present with Dhat symptoms
         ↓
STEP 1: Rule out organic cause
(UTI, STI, phosphaturia, infective discharge)
         ↓
 Organic cause found?
 YES → Treat organic cause → Reassess
         ↓
 Symptoms persist after treatment / No organic cause
         ↓
STEP 2: Assess comorbid psychiatric disorders
         ↓
 Comorbidity primary and/or severe?
 YES → Treat psychiatric disorder FIRST
         ↓
 Comorbid ED or PE present?
 YES → Treat Dhat FIRST, then address ED/PE
         ↓
STEP 3: Provide Sex Education and Psychoeducation
(Core treatment)
         ↓
 Residual anxiety/depressive symptoms impeding therapy?
 YES → Short-term anxiolytics/antidepressants
         ↓
STEP 4: Address associated sexual dysfunctions
STEP 5: Follow-up and reassessment

Step 1: Rule Out Organic Causes (Non-negotiable First Step)

Before any psychological treatment, investigate:
  • Urine microscopy and culture: Rule out UTI
  • STI screening: Gonorrhoea, Chlamydia (urethral discharge)
  • Phosphaturia test: Add 5% acetic acid to turbid urine - if it clears, it was phosphates (not semen). This is a powerful psychoeducational tool - demonstrating this to the patient in clinic can immediately reduce anxiety
  • Physical examination if clinically indicated
Even after organic causes are treated, Dhat symptoms often persist - because the core issue is the belief, not the discharge itself.

Step 2: Sex Education - The Cornerstone of Treatment

This is explicitly identified in the IPS CPG as "the most important aspect of treatment of Dhat syndrome." - Avasthi et al., Indian J Psychiatry, 2017
Sex education in Dhat syndrome must address these specific myths:

Myth 1: "The white fluid in my urine is semen"

Correction: Semen exits only during ejaculation through the urethra. It does not mix with urine. The white discharge is either phosphates in urine (natural mineral - harmless), prostatic secretion, or smegma. Demonstrate with the acid test if possible.

Myth 2: "Semen is rare and precious - losing it weakens me"

Correction: The body continuously produces semen. The testes produce approximately 1,000 sperm per second. Seminal fluid (which makes up 99% of ejaculate) is made fresh every time from abundant proteins, sugars, and minerals - not from any fixed store of "vital essence." Losing semen does not deplete any vital body resource.

Myth 3: "Nocturnal emission is abnormal and harmful"

Correction: Nocturnal emissions (wet dreams) are completely normal and healthy in men of all ages. They are the body's natural mechanism for releasing accumulated seminal fluid. They have no connection to the digestive system, blood, or "vital essence." They cannot cause weakness, memory loss, or sexual problems.

Myth 4: "Masturbation causes Dhat and damages health"

Correction: Masturbation is a normal part of human sexual expression practiced by the majority of men and women worldwide. It does not cause physical harm, weakness, blindness, mental illness, or sexual dysfunction. Guilt and anxiety about masturbation can cause these symptoms - the behaviour itself cannot.

Myth 5: "The genital system and digestive/blood system are connected"

Correction: The genitourinary system is completely separate from the gastrointestinal system. Semen is made in the testes and seminal vesicles - not from blood or food. This directly counters the Ayurvedic "40 drops of blood = 1 drop of semen" belief.
How to deliver sex education effectively (IPS CPG + clinical practice):
  • Individual sessions initially, later group sessions if available
  • Use simple diagrams of male anatomy (vas deferens, testes, seminal vesicles, urethra - showing they are separate from the urinary system)
  • Non-judgemental, empathetic tone - never ridicule the belief
  • Practical demonstrations (acid test for phosphaturia) where possible
  • Written material in the patient's language (Hindi-medium SKAQ validated for North Indian population)
  • Involve the partner or trusted family member if the patient agrees

Step 3: Cognitive-Behavioural Therapy (CBT)

A structured CBT module for Dhat syndrome was developed and tested, covering:
  1. Basic sex education (as above - foundational module)
  2. Cognitive restructuring: Identify and challenge specific dysfunctional beliefs ("losing semen → losing strength"). The therapist helps the patient find evidence for and against the belief, gently guiding them to more accurate understanding
  3. Relaxation training: Progressive muscle relaxation and breathing exercises - directly reduces somatic anxiety symptoms
  4. Imaginal desensitisation: For those with severe anxiety/guilt around sexual thoughts - gradually expose them to neutral then sexual imagery in a relaxed state
  5. Masturbatory training: For patients with guilt-driven avoidance - graded re-introduction of masturbation with a focus on pleasure and normalisation
A pilot study of 5 patients showed clinically significant reduction in Dhat symptoms with this CBT protocol. - PMID 36425228

Step 4: Pharmacological Treatment

Pharmacotherapy is not the primary treatment for Dhat syndrome. It is an adjunct, used only for:
  • Treating comorbid psychiatric disorders
  • Short-term symptom relief when anxiety/depression is impeding the psychoeducation process
IPS CPG principle: Use pharmacotherapy in the least dose for the least time possible in Dhat syndrome.

(a) Comorbid Depression (40-66%)

  • First-line: SSRI (escitalopram 10-20 mg, sertraline 50-100 mg)
  • Avoid SSRIs with high sexual side effect profiles as PE or ED coexists
  • Treat for at least 6 months once stabilised
  • Bupropion is a good choice where sexual dysfunction coexists - treats depression without worsening sexual function

(b) Comorbid Anxiety (21-38%)

  • Short-term benzodiazepine (clonazepam 0.25-0.5 mg BD) for acute anxiety - taper within 2-4 weeks to avoid dependence
  • Buspirone 15-30 mg/day for generalised anxiety - safer long-term
  • SSRI is preferred for persistent anxiety

(c) Comorbid ED

  • Treat Dhat first (often the ED resolves once the anxiety about semen loss is corrected through sex education)
  • If ED persists after Dhat treatment: PDE-5 inhibitors (sildenafil, tadalafil)

(d) Comorbid PE

  • Similarly, treat Dhat first
  • If PE persists: SSRIs (paroxetine 10-40 mg), topical anaesthetics

(e) Hypochondriacal features

  • Low-dose antidepressants (amitriptyline 25-50 mg, or an SSRI) reduce somatic preoccupation
  • Avoid repeated physical investigations (reinforces health anxiety)

Step 5: Addressing Cultural and Relationship Factors

This is particularly important in the Indian context:
Marital issues: Many patients with Dhat syndrome are recently married and anxious about sexual performance - the wedding night (suhaag raat) is a source of intense cultural pressure. Psychoeducation should address realistic expectations about early sexual experiences.
Family education: In some cases, family members (especially parents or in-laws) reinforce the Dhat belief. Engaging the family in a simplified psychoeducation session can be very helpful.
Religious and cultural sensitivity: Never directly mock or attack the Ayurvedic belief system. Instead, use a respectful "addition" approach - "In addition to what you have heard, modern anatomy also tells us..." This preserves the therapeutic alliance.
Peer groups: Group therapy or group sex education has been used in some Indian centres (e.g., PGIMER Chandigarh) and allows patients to normalise their experiences by hearing others share similar fears.

Step 6: Follow-Up

  • Review at 2 weeks, 1 month, 3 months
  • Reassess sexual function specifically at each visit (PE and ED often improve once Dhat anxiety resolves)
  • Assess for emergence of primary psychiatric disorder (depression, OCD)
  • Long-term follow-up important because mean illness duration is 5 years - brief interventions may need reinforcement
Prognosis: With proper sex education and psychoeducation:
  • 66% completely recovered at 1-year follow-up
  • 22% improved (total 88% good outcome)
  • Mullick, Indian Dermatology/Psychiatry follow-up data

Female Dhat Syndrome

A 2025 scoping review (PMID 41377757) confirms that female Dhat syndrome presents with attribution of leucorrhoea (white vaginal discharge) to loss of vital essence, with identical somatic, psychological, and sexual complaints. Many women with unexplained leucorrhoea (no infective or pathological cause) have a psychasthenic syndrome equivalent to male Dhat.
Management principles are identical:
  • Rule out infective cause (vaginal swabs, STI screen)
  • Sex education about normal vaginal physiology (normal white discharge = cervical mucus, not vital essence)
  • CBT for guilt, shame, and somatic anxiety
  • Treat comorbid depression/anxiety pharmacologically

Summary: Dhat Syndrome at a Glance

FeatureDetails
Core beliefSemen loss (via urine/masturbation/nocturnal emission) depletes vital essence and causes illness
PopulationYoung men; rural; low-SES; Indian subcontinent; recently married/unmarried
PresentationSomatic (fatigue, weakness) + psychological (depression, anxiety) + sexual (ED, PE, low desire)
Key comorbidityDepression (40-66%); anxiety (21-38%); sexual dysfunctions (30-40%)
First stepRule out UTI, STI, phosphaturia (acid test)
Primary treatmentSex education and psychoeducation (IPS CPG) - NOT pharmacotherapy
PharmacotherapyOnly for comorbid depression/anxiety; least dose, least time
PrognosisExcellent: 88% good outcome at 1 year with proper management
Female equivalentLeucorrhoea attributed to vital essence loss; managed identically

References:
This is a shared conversation. Sign in to Orris to start your own chat.