You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is DSM-IV codes and explain in detail?
DSM-IV codes are the classification found in the Diagnostic and Statistical Manual of Mental Disorders, 4th Edition, Text Revision, also known as DSM-IV-TR, a manual published by the American Psychiatric Association (APA) that includes almost all currently recognized mental health disorders.  The DSM-IV codes are thus used by mental health professionals to describe the features of a given mental disorder and indicate how the disorder can be distinguished from other, similar problems.The coding system utilized by the DSM-IV is designed to correspond with codes from the International Classification of Diseases, Ninth Revision, Clinical Modification, commonly referred to as the ICD-9-CM. Since early versions of the DSM did not correlate with ICD codes and updates of the publications for the ICD and the DSM are not simultaneous, some distinctions in the coding systems may still be present.  For this reason, it is recommended that users of these manuals consult the appropriate reference when accessing diagnostic codes
Note that NOS is an abbreviation for Not Otherwise Specified, indicating a cluster of symptoms that do not clearly fit in any single diagnostic category. NOS is often a provisional diagnosis pending additional information or testing.
For an alphabetical list, see DSM-IV codes (alphabetical).

Disorders usually first diagnosed in infancy, childhood, or adolescence
Mental retardation
317 Mild mental retardation
318.0 Moderate mental retardation
318.1 Severe mental retardation
318.2 Profound mental retardation
319 Mental retardation; severity unspecified

Learning disorders
315.00 Reading disorder
315.1 Mathematics disorder
315.2 Disorder of written expression
315.9 Learning disorder NOS

Motor skills disorders
315.4 Developmental coordination disorder

Communication disorders
315.31 Expressive language disorder
315.32 Mixed receptive-expressive language disorder
315.39 Phonological disorder
307.0 Stuttering
307.9 Communication disorder NOS

Pervasive developmental disorders
299.00 Autistic Disorder
299.80 Retts Disorder
299.10 Childhood Disintegrative Disorder
299.80 Asperger Syndrome
299.80 PDD-NOS

Attention-deficit and disruptive behavior disorders
Attention-Deficit Hyperactivity Disorder
314.01 Combined subtype
314.01 Predominantly hyperactive-impulsive subtype
314.00 Predominantly inattentive subtype
314.9 Attention-Deficit Hyperactivity Disorder NOS
Conduct disorder
312.81 Childhood onset
312.82 Adolescent onset
312.89 Unspecified onset
313.81 Oppositional Defiant Disorder
312.9 Disruptive Behavior Disorder NOS

Feeding and eating disorders of infancy or early childhood
307.52 Pica
307.53 Rumination disorder
307.59 Feeding disorder of infancy or early childhood

Tic disorders
307.23 Tourettes Disorder
307.22 Chronic motor or vocal tic disorder
307.21 Transient tic disorder
307.20 Tic disorder NOS

Elimination disorders
307.6 Enuresis (not due to a general medical condition)
307.7 Encopresis, without constipation and overflow incontinence
787.6 Encopresis, with constipation and overflow incontinence

Other disorders of infancy, childhood, or adolescence
309.21 Separation anxiety disorder
313.23 Selective mutism
313.89 Reactive attachment disorder of infancy or early childhood
307.3 Stereotypic movement disorder
313.9 Disorder of infancy, childhood, or adolescence NOSTop

Delirium, dementia, and amnestic and other cognitive disorders
Delirium
293.0 Delirium due to... [indicate the general medical condition]
780.09 Delirium NOS

Dementia
Dementia of the Alzheimers Type, with early onset
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia of the Alzheimers Type, with late onset
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Vascular dementia
290.40 Uncomplicated
290.41 With delirium
290.42 With delusions
290.43 With depressed mood
Dementia due to HIV disease
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to head trauma
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to Parkinsons disease
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to Huntingtons disease
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to Picks disease
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to Creutzfeldt–Jakob disease
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
Dementia due to... [indicate other general medical condition]
294.10 Without behavioral disturbance
294.11 With behavioral disturbance
294.8 Dementia NOS

Amnestic disorders
294.0 Amnestic disorder due to... [indicate the general medical condition]
294.8 Amnestic disorder NOS

Other cognitive disorders
294.9 Cognitive disorder NOSTop

Mental disorders due to a general medical condition not elsewhere classified
293.89 Catatonic disorder due to... [indicate the general medical condition]
310.1 Personality change due to... [indicate the general medical condition]
(Subtypes: Labile, Disinhibited, Aggressive, Apathetic, Paranoid, Other, Combined, Unspecified)
293.9 Mental disorder NOS due to... [indicate the general medical condition]Top

Substance-related disorders
Alcohol-related disorders
Alcohol
305.00 Abuse
303.90 Dependence
291.89 -Induced anxiety disorder
291.89 -Induced mood disorder
291.1 -Induced persisting amnestic disorder
291.2 -Induced persisting dementia
291.5 -Induced psychotic disorder, with delusions
291.3 -Induced psychotic disorder, with hallucinations
291.89 -Induced sexual dysfunction
291.89 -Induced sleep disorder
303.00 Intoxication
291.0 Intoxication delirium
291.9 -Related disorder NOS
291.81 Withdrawal
291.0 Withdrawal delirium

Amphetamine (or amphetamine-like) related disorders
Amphetamine (or amphetamine-like)
305.70 Abuse
304.40 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 -Induced sexual dysfunction
292.89 -Induced sleep disorder
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS
292.0 Withdrawal

Caffeine-related disorders
Caffeine
292.89 -Induced anxiety disorder
292.89 -Induced sleep disorder
305.90 Intoxication
292.9 -Related disorder NOS
293.9.10 consumption diversion

Cannabis-related disorders
Cannabis
305.20 Abuse
304.30 Dependence
292.89 -Induced anxiety disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS

Cocaine-related disorders
Cocaine
305.60 Abuse
304.20 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 -Induced sexual dysfunction
292.89 -Induced sleep disorder
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS
292.0 Withdrawal

Hallucinogen-related disorders
Hallucinogen
305.30 Abuse
304.50 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 Intoxication
292.81 Intoxication delirium
292.89 -persisting perception disorder
292.9 -Related disorder NOS

Inhalant-related disorders
Inhalant
305.90 Abuse
304.60 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.82 -Induced persisting dementia
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS

Nicotine-related disorders
Nicotine
305.1 Dependence
292.9 -Related disorder NOS
292.0 Withdrawal

Opioid-related disorders
Opioid
305.50 Abuse
304.00 Dependence
292.84 -Induced mood disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 -Induced sexual dysfunction
292.89 -Induced sleep disorder
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS
292.0 Withdrawal

Phencyclidine (or phencyclidine-like) related disorders
Phencyclidine (or phencyclidine-like)
305.90 Abuse
304.60 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS

Sedative-, hypnotic-, or anxiolytic-related disorders
Sedative, hypnotic, or anxiolytic
305.40 Abuse
304.10 Dependence
292.89 -Induced anxiety disorder
292.84 -Induced mood disorder
292.83 -Induced persisting amnestic disorder
292.82 -Induced persisting dementia
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 -Induced sexual dysfunction
292.89 -Induced sleep disorder
292.89 Intoxication
292.81 Intoxication delirium
292.9 -Related disorder NOS
292.0 Withdrawal
292.81 Withdrawal delirium

Polysubstance-related disorder
304.80 Polysubstance dependence

Other (or unknown) substance-related disorder
Other (or unknown) substance
305.90 Abuse
304.90 Dependence
292.89 -Induced anxiety disorder
292.81 -Induced delirium
292.84 -Induced mood disorder
292.83 -Induced persisting amnestic disorder
292.82 -Induced persisting dementia
292.11 -Induced psychotic disorder, with delusions
292.12 -Induced psychotic disorder, with hallucinations
292.89 -Induced sexual dysfunction
292.89 -Induced sleep disorder
292.89 Intoxication
292.9 -Related disorder NOS
292.0 Withdrawal
293.0 Delirium Due to ... [Indicate the General Medical Condition]Top

Schizophrenia and other psychotic disorders
Schizophrenia
295.20 Catatonic type
295.10 Disorganized type
295.30 Paranoid type
295.60 Residual type
295.90 Undifferentiated type
295.40 Schizophreniform disorder
295.70 Schizoaffective disorder
297.1 Delusional disorder
Erotomanic subtype
Grandiose subtype
Jealous subtype
Persecutory subtype
Somatic subtype
Mixed type
298.8 Brief psychotic disorder
297.3 Shared psychotic disorder
Psychotic disorder due to... [indicate the general medical condition]
293.81 With delusions
293.82 With hallucinations
298.9 Psychotic disorder NOSTop

Mood disorders
293.83 Mood Disorder Due to...[Indicate the General Medical Condition]
296.90 Mood Disorder NOS

Depressive disorders
300.4 Dysthymic disorder
Major depressive disorder
Major depressive disorder, recurrent
296.36 In full remission
296.35 In partial remission
296.31 Mild
296.32 Moderate
296.33 Severe without psychotic features
296.34 Severe with psychotic features
296.30 Unspecified
Major depressive disorder, single episode
296.26 In full remission
296.25 In partial remission
296.21 Mild
296.22 Moderate
296.23 Severe without psychotic features
296.24 Severe with psychotic features
296.20 Unspecified
311 Depressive disorder NOS

Bipolar disorders
Bipolar disorders
296.80 Bipolar disorder NOS
Bipolar I disorder, most recent episode depressed
296.56 In full remission
296.55 In partial remission
296.51 Mild
296.52 Moderate
296.53 Severe without psychotic features
296.54 Severe with psychotic features
296.50 Unspecified
296.40 Bipolar I disorder, most recent episode hypomanic
Bipolar I disorder, most recent episode manic
296.46 In full remission
296.45 In partial remission
296.41 Mild
296.42 Moderate
296.43 Severe without psychotic features
296.44 Severe with psychotic features
296.40 Unspecified
Bipolar I disorder, most recent episode mixed
296.66 In full remission
296.65 In partial remission
296.61 Mild
296.62 Moderate
296.63 Severe without psychotic features
296.64 Severe with psychotic features
296.60 Unspecified
296.7 Bipolar I disorder, most recent episode unspecified
Bipolar I disorder, single manic episode
296.06 In full remission
296.05 In partial remission
296.01 Mild
296.02 Moderate
296.03 Severe without psychotic features
296.04 Severe with psychotic features
296.00 Unspecified
296.89 Bipolar II disorder
301.13 Cyclothymic disorder
293.83 Mood disorder due to... [indicate the general medical condition]
296.90 Mood disorder NOSTop

Anxiety disorders
300.02 Generalized anxiety disorder
Panic disorder
300.21 With agoraphobia
300.01 Without agoraphobia
300.22 Agoraphobia without history of panic disorder
300.29 Specific phobia
300.23 Social phobia
300.3 Obsessive-compulsive disorder
309.81 Posttraumatic stress disorder
308.3 Acute stress disorder
293.84 Anxiety disorder due to a general medical condition
293.89 Anxiety disorder due to... [indicate the general medical condition]
300.00 Anxiety disorder NOSTop

Somatoform disorders
300.81 Somatization disorder
300.82 Undifferentiated somatoform disorder
300.11 Conversion disorder
Pain disorder
307.89 Associated with both psychological factors and a general medical condition
307.80 Associated with psychological factors
300.7 Hypochondriasis/Illness anxiety disorder
300.7 Body dysmorphic disorder
300.82 Somatoform disorder NOSTop

Factitious disorders
Factitious disorder
300.19 With combined psychological and physical signs and symptoms
300.19 With predominantly physical signs and symptoms
300.16 With predominantly psychological signs and symptoms
300.19 Factitious disorder NOSTop

Dissociative disorders
300.6 Depersonalization disorder
300.12 Dissociative amnesia
300.14 Dissociative identity disorder
300.15 Dissociative disorder not otherwise specified

Sexual and gender identity disorders
Sexual dysfunctions
625.8 Female hypoactive sexual desire disorder due to..