HA40 - Etiological Considerations on Sexual Dysfunctions and Painful Disorders Associated with Sexual Intercourse
1. Introduction
Sexual dysfunctions and painful disorders associated with sexual intercourse represent a complex set of conditions that significantly affect the quality of life of millions of people worldwide. The HA40 code from ICD-11 plays a fundamental role in medical classification by specifically addressing etiological considerations - that is, the underlying causes - of these conditions, allowing healthcare professionals to properly document the identified causal factors.
This code does not describe the sexual dysfunction or painful disorder itself, but rather the etiological factors that contribute to its development or maintenance. This distinction is crucial for proper understanding of ICD-11 classification, which adopts a more sophisticated and multidimensional approach compared to its predecessor.
The clinical importance of this code lies in the ability to systematically document the identified causes of sexual dysfunctions, whether they are of a biological, psychological, relational, or sociocultural nature. This etiological approach allows for more targeted and effective therapeutic planning, in addition to facilitating epidemiological research on risk factors associated with these conditions.
The prevalence of sexual dysfunctions is considerable in the general population, affecting people of all ages, genders, and sexual orientations. Correct coding of etiological factors is critical for the development of appropriate public health policies, appropriate resource allocation, meaningful clinical research, and, fundamentally, to ensure that patients receive treatment directed at the actual causes of their sexual difficulties.
2. Correct ICD-11 Code
Code: HA40
Description: Etiological considerations regarding sexual dysfunctions and painful disorders associated with sexual intercourse
Parent category: 17 - Conditions related to sexual health
This code belongs to the ICD-11 classification system and represents a significant innovation in how sexual health conditions are documented. Unlike codes that describe specific syndromes or diagnoses, HA40 is used as a supplementary or complementary code that specifies the known or presumed etiology of a sexual dysfunction or painful disorder previously coded.
The HA40 code functions in conjunction with other codes in the sexual health category, allowing for more complete and clinically relevant documentation. It recognizes that sexual dysfunctions rarely have a single cause, but frequently result from a complex interaction between biological, psychological, relational, and sociocultural factors.
The hierarchical structure of ICD-11 positions this code within conditions related to sexual health, reflecting contemporary recognition that sexual health is an integral component of overall health and well-being, not merely the absence of disease or dysfunction.
3. When to Use This Code
The HA40 code should be used in specific clinical situations where there is a need to document identified etiological factors that contribute to sexual dysfunction or painful disorder. Here are detailed practical scenarios:
Scenario 1: Erectile Dysfunction with Identified Vascular Cause A 58-year-old patient presents with persistent difficulty in obtaining and maintaining adequate erections. After complete clinical investigation including penile doppler ultrasonography, arterial vascular insufficiency is identified as the primary cause. In this case, erectile dysfunction is coded with its specific code and HA40 is used to document the vascular etiology, possibly with an additional code specifying the underlying vascular condition.
Scenario 2: Sexual Desire Disorder with Medication-Related Etiology A 42-year-old patient develops significant decrease in sexual desire after initiating treatment with selective serotonin reuptake inhibitor antidepressants. The clear temporal relationship and absence of other contributing factors establish the medication as an etiological factor. The HA40 code documents this specific causal relationship, complementing the desire dysfunction code.
Scenario 3: Dyspareunia with Diagnosed Gynecological Cause A 35-year-old woman reports persistent pain during vaginal penetration. Investigation reveals moderate to severe endometriosis with involvement of the posterior vaginal fornix. The HA40 code is used to document endometriosis as an etiological factor of the painful disorder, allowing treatment directed at the underlying condition.
Scenario 4: Orgasmic Dysfunction with Identified Psychological Factors A 28-year-old male patient presents with chronic difficulty achieving orgasm during sexual activity with partners, but not during masturbation. Psychological evaluation reveals significant performance anxiety related to previous traumatic experiences. HA40 documents the specific psychological factors as etiology.
Scenario 5: Sexual Dysfunction Secondary to Neurological Condition A 45-year-old patient with multiple sclerosis develops genital anesthesia and difficulty with lubrication. Neurological evaluation confirms involvement of the sacral nerves. The HA40 code documents the specific neurological etiology, linking sexual dysfunction to the underlying neurological condition.
Scenario 6: Vaginismus with Trauma-Related Etiology A 30-year-old woman presents with persistent involuntary contraction of pelvic floor muscles that prevents vaginal penetration. Detailed history reveals sexual abuse in adolescence. When there is a clear relationship between the trauma and the development of vaginismus, HA40 documents this important etiological connection for therapeutic planning.
4. When NOT to Use This Code
It is fundamental to understand the situations in which code HA40 should not be applied to avoid classification errors:
Do not use when the etiology is unknown or not investigated: If a patient presents with sexual dysfunction but adequate investigation was not performed to identify causal factors, or if the cause remains undetermined after investigation, HA40 should not be used. In these cases, only the code for the specific dysfunction is appropriate.
Do not use as an isolated primary code: HA40 should never be used alone as the sole diagnostic code. It is always supplementary to a code that describes the specific sexual dysfunction or painful disorder. Using HA40 in isolation does not provide sufficient clinical information about the patient's condition.
Do not use for normal variations in sexual function: Normal fluctuations in desire, arousal, or orgasmic response that do not cause significant distress or functional impairment do not constitute dysfunctions requiring coding. HA40 applies only when there is a clinically significant dysfunction diagnosed.
Do not use for temporary situational sexual difficulties: Transient sexual problems related to specific situational stressors that resolve quickly do not require formal coding. HA40 is reserved for persistent conditions where the etiology has been clearly established.
Do not confuse with codes for general medical conditions: If a patient has diabetes or cardiovascular disease that may potentially affect sexual function, but does not present with manifest sexual dysfunction, HA40 is not coded. The code is appropriate only when there is both the dysfunction and clear identification of the causal relationship.
5. Step-by-Step Coding Process
Step 1: Assess Diagnostic Criteria
Before considering the use of code HA40, it is essential to confirm that there is a clinically significant sexual dysfunction or painful disorder. This requires:
Comprehensive clinical evaluation: Conduct a detailed sexual history, including onset, duration, context, and aggravating or mitigating factors of symptoms. The dysfunction must be present for at least several months (typically three to six months, depending on the specific condition) and cause significant distress to the individual.
Assessment instruments: Use validated questionnaires when appropriate, such as the International Index of Erectile Function for men, the Female Sexual Function Index, or specific scales for sexual pain. These instruments assist in objective quantification of symptoms and monitoring of treatment response.
Targeted physical examination: Perform physical examination appropriate to the complaint, which may include genital examination, neurological evaluation, vascular assessment, or gynecological/urological examination as clinically indicated.
Step 2: Verify Specifiers
After confirming the presence of sexual dysfunction, systematically investigate possible etiological factors:
Investigation of biological factors: Request pertinent laboratory tests (hormonal profile, blood glucose, lipid profile), imaging studies when indicated, and specialized evaluations as necessary. Review medications in use that may affect sexual function.
Evaluation of psychological factors: Investigate the presence of comorbid mental disorders (depression, anxiety, post-traumatic stress disorder), trauma history, sexual beliefs and attitudes, and relevant developmental factors.
Consideration of relational factors: Assess relationship quality, sexual communication, disparities in desire between partners, and relational dynamics that may contribute to the dysfunction.
Sociocultural factors: Consider cultural, religious, and social influences that may affect sexual function, including cultural attitudes toward sexuality and gender norms.
Step 3: Differentiate from Other Codes
Sexual dysfunctions: Specific codes for sexual dysfunctions describe the type of dysfunction (desire, arousal, orgasm, pain), while HA40 documents the causal factors. Both are frequently used together—the specific dysfunction code as the principal diagnosis and HA40 as the supplementary etiological code.
Painful disorders associated with sexual intercourse: Similarly, specific codes for dyspareunia, vaginismus, or penetrative pain describe the nature of the painful disorder, while HA40 specifies the identified cause. The differentiation lies in the function of the code: descriptive versus etiological.
Gender incongruence: This is a distinct condition related to gender identity, not to sexual function per se. Although individuals with gender incongruence may experience sexual dysfunctions, the incongruence itself is not coded with HA40. If there is comorbid sexual dysfunction, it would be coded separately with its specific code.
Step 4: Required Documentation
Checklist of mandatory information:
- Clear description of the sexual dysfunction or painful disorder present
- Duration and course of symptoms (onset, progression, variability)
- Functional impact and associated distress
- Etiological factors identified through clinical investigation
- Evidence supporting the causal relationship (temporality, biological plausibility, exclusion of other causes)
- Previous treatments and responses
- Relevant comorbidities
How to record appropriately: The medical record should contain a clear narrative explaining the diagnostic reasoning and the connection between the identified etiological factors and the sexual dysfunction. Specifically document the findings of examinations, assessments, and investigations that establish the etiology. Record both the specific dysfunction code and HA40, with explanatory notes about the causal relationship.
6. Complete Practical Example
Clinical Case
Initial Presentation: A 52-year-old male patient seeks care complaining of progressive difficulty obtaining and maintaining erections over the past 18 months. He reports that initially erections were less firm, but gradually became insufficient for vaginal penetration. The problem occurs in all attempts at sexual activity with his partner, but he also notices less frequent and less rigid morning erections. He denies difficulties with sexual desire or marital relationship. He reports feeling frustrated and worried about the situation.
Evaluation Performed: Medical history reveals a diagnosis of type 2 diabetes mellitus for 8 years, currently using metformin and glibenclamide, with suboptimal glycemic control (HbA1c of 8.2%). He also has hypertension controlled with enalapril. He denies current smoking (quit 3 years ago after smoking for 25 years). He denies excessive alcohol use or illicit drugs.
Physical examination shows peripheral pulses present but diminished, blood pressure of 138/86 mmHg, BMI of 29 kg/m². Genital examination without structural abnormalities. Penile sensitivity preserved.
Laboratory tests: fasting blood glucose 156 mg/dL, HbA1c 8.2%, lipid profile with total cholesterol 240 mg/dL, LDL 155 mg/dL, HDL 38 mg/dL, triglycerides 235 mg/dL. Morning total testosterone 420 ng/dL (normal), prolactin normal, TSH normal.
Penile doppler ultrasound with pharmacologically induced erection test demonstrates diminished arterial vascular response bilaterally, suggesting arterial insufficiency. Absence of significant venous leak.
Psychological evaluation through interview and questionnaires reveals no clinically significant depression or anxiety. Marital relationship described as stable and satisfactory.
Diagnostic Reasoning: The clinical presentation exhibits typical characteristics of erectile dysfunction with predominantly vascular etiology. Several factors support this conclusion: gradual and progressive onset, occurrence in all situations (not situational), decrease also in nocturnal/morning erections, presence of multiple vascular risk factors (diabetes, hypertension, dyslipidemia, former smoking), objective findings on penile doppler demonstrating arterial insufficiency.
Poorly controlled diabetes mellitus is known to cause both microangiopathy and macroangiopathy, affecting penile vasculature. Dyslipidemia and hypertension additionally contribute to vascular disease. The history of smoking also represents a cumulative vascular risk factor.
The absence of significant psychological or relational factors, the preservation of sexual desire, and the objective vascular findings establish vascular etiology as the primary cause of erectile dysfunction.
Coding Justification: This case requires multiple coding to adequately capture clinical complexity:
Coding Step by Step
Primary Code: Specific code for erectile dysfunction (within the category of sexual dysfunctions in ICD-11)
Supplementary Code: HA40 - Etiological considerations regarding sexual dysfunctions and painful disorders associated with sexual activity
Complete Justification: Code HA40 is appropriate because specific etiological factors (vascular) were identified and documented through objective clinical investigation. Penile arterial vascular insufficiency was demonstrated by doppler examination, and multiple vascular risk factors are present and documented.
Applicable Complementary Codes:
- Type 2 diabetes mellitus
- Essential hypertension
- Mixed dyslipidemia
- Personal history of smoking
These additional codes provide complete context regarding the underlying medical conditions that contribute to the vascular etiology of erectile dysfunction. Multiple coding allows comprehensive understanding of the clinical situation and facilitates therapeutic planning directed not only at symptoms but also at underlying causes.
7. Related Codes and Differentiation
Within the Same Category
Sexual Dysfunctions: Specific codes for sexual dysfunctions describe the type and characteristics of the dysfunction (for example, hypoactive sexual desire disorder, erectile dysfunction, female orgasmic disorder). These codes are descriptive and phenomenological, focusing on symptoms and clinical presentation.
When to use versus HA40: Use specific sexual dysfunction codes as primary codes to describe the nature of the dysfunction. Use HA40 additionally when specific etiological factors have been identified through clinical investigation. Frequently, both are used together - the specific dysfunction code describes "what" and HA40 documents "why".
Main difference: Sexual dysfunction codes are descriptive primary diagnoses; HA40 is a supplementary etiological code.
Painful Disorders Associated with Sexual Intercourse: Specific codes for dyspareunia, vaginismus, genito-pelvic pain/penetration disorder describe the nature and location of sexual pain.
When to use versus HA40: Use painful disorder codes as primary diagnosis when pain is the chief complaint. Add HA40 when specific causes (gynecological, dermatological, neurological, psychological) have been identified.
Main difference: Sexual pain codes describe the symptom; HA40 documents the identified cause.
Gender Incongruence: This category addresses the experience of incongruence between experienced gender and gender assigned at birth.
When to use versus HA40: Gender incongruence and sexual dysfunctions are distinct conditions that may coexist but are not causally related by definition. A person with gender incongruence who also presents with sexual dysfunction would receive separate codes for each condition. HA40 is not used to code gender incongruence as a cause of sexual dysfunction, as they are different dimensions of sexual health.
Main difference: Gender incongruence relates to gender identity; sexual dysfunctions and HA40 relate to sexual function.
Differential Diagnoses
Situational sexual difficulties versus persistent dysfunctions: Temporary sexual problems related to specific stressors (grief, job loss, acute relational conflict) that resolve with the situation do not constitute dysfunctions requiring coding. Codifiable dysfunctions are persistent (months) and cause significant distress.
Expected effects of aging versus dysfunction: Gradual changes in sexual response with aging (longer time to arousal, need for more direct stimulation) that do not cause distress are not dysfunctions. Coding requires that symptoms cause significant concern or impairment.
Asymptomatic with risk factors versus manifest dysfunction: Presence of medical conditions that may affect sexual function (diabetes, antidepressant use) without manifest sexual dysfunction does not justify coding of dysfunction or HA40.
8. Differences with ICD-10
ICD-10 had a less sophisticated approach to sexual dysfunctions, with codes such as F52 (Sexual dysfunction not caused by organic disorder or disease) and other codes for specific conditions. The main limitation was the artificial dichotomy between "organic" and "non-organic" causes, reflecting an outdated understanding of the etiology of sexual dysfunctions.
Major changes in ICD-11:
ICD-11 abandons the organic/non-organic distinction, recognizing that most sexual dysfunctions have multifactorial etiology. The HA40 code allows documentation of multiple etiological factors simultaneously, without forcing an artificial binary classification.
The ICD-11 structure is more flexible, allowing coding of sexual dysfunctions based on clinical presentation, with supplementary etiological codes when appropriate. This better reflects contemporary scientific knowledge about the biopsychosocial nature of sexual function.
Another significant change is the removal of stigmatizing language and the adoption of more neutral and clinically precise terminology. ICD-11 also includes considerations regarding sexual orientation and gender identity in a more inclusive and appropriate manner.
Practical impact of these changes:
For clinicians, ICD-11 allows more precise and clinically relevant documentation. The ability to code multiple etiological factors facilitates comprehensive therapeutic planning. For researchers, the new structure enables more sophisticated epidemiological studies on risk factors and etiology. For health systems, more precise coding can improve resource allocation and development of appropriate treatment programs.
9. Frequently Asked Questions
How is the diagnosis of sexual dysfunctions that justifies the use of HA40 made?
Diagnosis requires comprehensive clinical evaluation including detailed sexual history, systems review, complete medical and psychiatric history, and targeted physical examination. Complementary investigations are guided by clinical presentation and may include laboratory tests (hormonal profile, blood glucose, lipids), vascular studies (doppler), neurological evaluations, specialized gynecological or urological examinations, and formal psychological evaluation when indicated. HA40 specifically is used when this investigation identifies specific etiological factors.
Is treatment available in public health systems?
The availability of treatment for sexual dysfunctions varies considerably among different health systems and geographic regions. Many public health systems offer some level of care for sexual dysfunctions, particularly when identifiable medical causes are present. However, access to sexual medicine specialists, specialized sex therapy, and certain treatments may be limited in some contexts. It is important that patients investigate the resources available in their local health systems.
How long does treatment for sexual dysfunctions last?
The duration of treatment depends fundamentally on the etiology identified and documented by HA40. Dysfunctions with treatable medical causes (hormonal deficiencies, reversible medication effects) may resolve relatively quickly with appropriate treatment. Dysfunctions with vascular or neurological etiology may require long-term management. When psychological factors are predominant, sex therapy or psychotherapy typically lasts several months. Multidisciplinary approaches for complex etiologies may require prolonged and continuous treatment.
Can this code be used in medical certificates?
The HA40 code can be included in medical documentation, but privacy considerations are important. Medical certificates generally do not require detailed diagnostic specification, with it being sufficient to indicate that the patient requires leave for medical reasons. When specification is necessary, the decision to include codes related to sexual health should consider the context, the need for patient confidentiality, and local regulations regarding medical privacy. Always discuss with the patient the appropriate level of detail for different contexts.
Do sexual dysfunctions always have an identifiable cause?
Not necessarily. Despite comprehensive investigation, in some cases the etiology remains undetermined or multifactorial in a complex manner. HA40 is used specifically when etiological factors have been identified. When the cause remains unknown after appropriate investigation, only the code for the specific dysfunction is used, without HA40. This does not diminish the validity of the diagnosis or the need for treatment.
Can multiple etiological factors be coded simultaneously?
Yes, and this is often appropriate. Sexual dysfunctions commonly have multifactorial etiology. For example, a patient may have erectile dysfunction with contributions from vascular insufficiency, diabetes, and performance anxiety. In this case, HA40 would be used along with codes for each identified contributing factor. This multiple coding approach more accurately reflects clinical reality and facilitates comprehensive treatment directed at all relevant factors.
Do medication-related sexual dysfunctions always improve with medication discontinuation?
Not necessarily. Although many medication-induced sexual dysfunctions are reversible with adjustment or discontinuation of the causative medication, some cases may persist even after discontinuation. This can occur if the dysfunction has triggered secondary psychological factors (performance anxiety) or if neurobiological adaptation has occurred. Additionally, medication discontinuation is not always possible or safe, particularly with essential psychiatric or cardiovascular medications. Decisions about medication management should always balance benefits and risks.
Can young people have sexual dysfunctions that justify coding with HA40?
Absolutely. Although some sexual dysfunctions are more common with aging, people of all ages can experience clinically significant sexual difficulties. In younger individuals, psychological, relational, medication-related, or specific medical conditions (endometriosis, vulvodynia, neurological conditions) may cause dysfunctions that require evaluation and treatment. HA40 is applicable regardless of age when etiological factors are identified.
Conclusion:
The HA40 code represents an important advance in the classification of sexual health conditions, allowing precise documentation of etiological factors that contribute to sexual dysfunctions and painful disorders. Its appropriate use requires clear understanding that it is a supplementary etiological code, not a primary diagnosis, and that it should be used together with codes that describe the specific dysfunction present. The multidimensional approach of ICD-11 reflects contemporary knowledge about the biopsychosocial nature of sexual function and facilitates more effective and personalized clinical care.
External References
This article was developed based on reliable scientific sources:
- 🌍 WHO ICD-11 - Etiological considerations on sexual dysfunctions and painful disorders associated with sexual intercourse
- 🔬 PubMed Research on Etiological considerations on sexual dysfunctions and painful disorders associated with sexual intercourse
- 🌍 WHO Health Topics
- 📊 Clinical Evidence: Etiological considerations on sexual dysfunctions and painful disorders associated with sexual intercourse
- 📋 Ministry of Health - Brazil
- 📊 Cochrane Systematic Reviews
References verified on 2026-02-04