Z91.51 Personal History of Suicidal Behavior: A Medical Coding Guide for 2026

Mar 27, 2026
Picture this scenario in your practice. A 34-year-old patient sits across from you, stable and engaged in treatment. She takes her medications consistently and reports no current suicidal thoughts. Two years ago, she survived an overdose that required hospitalization.
How do you document this history accurately?
The answer lies in understanding three distinct codes: R45.851 for current suicidal ideation, T14.91XA for active suicide attempts, and Z91.51 for personal history of suicidal behavior.
Z91.51 gets overlooked frequently in clinical practice. Yet this code carries significant weight in risk assessment and care continuity. Mental health professionals often focus on current symptoms while missing the documentation of past attempts that predict future risk.
This coding distinction matters for patient safety. Accurate documentation ensures every provider in your patient's care team recognizes their vulnerability, regardless of current presentation.
Part 1: Understanding Z91.51 — What This Code Represents
Definition and Scope
Z91.51 represents the ICD-10-CM code for "Personal history of suicidal behavior" [4]. The World Health Organization places this code within "Factors influencing health status and contact with health services" [4]. It sits specifically in the Z91 category for personal risk factors, part of the broader Z77-Z99 range that covers health hazards related to family and personal history [4].
This code covers multiple related behaviors. Personal history of parasuicide, self-poisoning, and suicide attempts all fall under Z91.51 [4]. The classification emerged when Z91.5 became a subcategory, creating clear separation between suicidal behavior history (Z91.51) and non-suicidal self-harm history (Z91.52) [11].
Z91.51 works as a billable and specific code for reimbursement [11]. You don't need to track Present on Admission status since this code gets POA exemption [11]. Coding guidelines specify to "code also mental health disorder, if known" [4]. Z91.51 appears as a secondary diagnosis alongside primary conditions like major depressive disorder or PTSD.
History codes fill a specific role in medical records. They signal that a condition no longer exists actively but carries recurrence potential requiring ongoing monitoring [11]. You can assign these codes at any visit type, particularly when the history influences current treatment decisions [11].
What This Code Is NOT
Clear boundaries prevent coding mistakes. Z91.51 documents past behavior only, never current clinical states. Other codes handle active situations:
R45.851 captures current suicidal ideation, not historical attempts
T14.91XA documents active suicide attempts needing immediate care, not past episodes
Z81.8 records family suicide history, while Z91.51 covers personal history
Z91.52 handles non-suicidal self-harm history, separating intent from suicidal behavior
Timing determines code selection. A patient with a three-year-old attempt but stable current mood gets Z91.51. That same patient reporting active suicidal thoughts gets both R45.851 and Z91.51, showing current risk and historical context together.
The Excludes1 Note
The Excludes2 notation clarifies which conditions stay outside Z91.51's scope [4]. These exclusions prevent confusion with similar-looking situations:
Contact with and suspected exposures hazardous to health (Z77.-)
Exposure to pollution and other problems related to physical environment (Z77.1-)
Female genital mutilation status (N90.81-)
Occupational exposure to risk factors (Z57.-)
Personal history of physical injury and trauma (Z87.81, Z87.82-)
These distinctions matter in real practice. Some past suicide attempts involved methods that might also code as trauma or poisoning exposure. A patient with historical self-poisoning gets Z91.51 for the suicidal behavior, not a Z77 environmental code. Intent drives code selection, not mechanism. Occupational substance exposures belong in Z57 even when they impact mental health, keeping Z91.51 reserved for intentional self-harm with suicidal purpose.
These boundaries ensure your documentation reflects clinical reality: a patient whose past actions carried suicidal intent and whose history stays relevant for ongoing care.
Part 2: The Coding Hierarchy — Where Z91.51 Fits
The Suicide Spectrum: A Coding Table
Suicidality spans a continuum from thoughts to actions [6]. Each level requires specific documentation. ICD-10-CM provides distinct codes for these clinical realities. Understanding Z91.51's position within this hierarchy prevents coding errors and ensures accurate risk communication.
Code | Description | When to Use | Key Documentation |
R45.851 | Suicidal ideations | Patient currently experiences thoughts of suicide | Present-state ideation only; no code exists for history of suicidal ideation [6] |
T14.91XA | Suicide attempt, initial encounter | Current suicide attempt where mechanism is unknown | Active attempt requiring immediate medical attention; first encounter only [17] |
T14.91XD | Suicide attempt, subsequent encounter | Follow-up care for ongoing treatment of attempt | Continued treatment after initial encounter [6] |
T14.91XS | Sequela of suicide attempt | Late effects or complications from past attempt | Physical or psychological sequelae requiring current treatment [6] |
Z91.51 | Personal history of suicidal behavior | Patient has past suicide attempt(s) but no current active attempt | Applies to parasuicide, self-poisoning, or suicide attempt [8] |
A significant gap exists in this coding system. Self-harm includes four history codes, and suicide attempts include multiple encounter-specific codes. Yet suicidal ideation gets documented only for present encounters [6]. You cannot code historical ideation that never resulted in action. This limits your ability to track ideation patterns over time.
Z91.51 vs R45.851: History vs Current Ideation
These codes differ based on timing. R45.851 captures current thoughts. Z91.51 documents past actions.
A patient expressing suicidal thoughts today receives R45.851, regardless of past attempts [17]. The same patient with documented attempt history receives both codes. This dual coding captures current risk and historical context.
R45.851 classifies as a CC (Complication or Comorbidity) condition, affecting reimbursement and signaling clinical complexity [10]. Z91.51 falls under "Other factors influencing health status" and stays exempt from POA reporting [8]. Research shows ICD-10 codes capture most encounters with present suicidal ideation, with sensitivity reaching 82.4% [11]. This detection rate for current ideation exceeds coding accuracy for past actions.
You can assign both codes when documentation supports current ideation alongside historical attempts. This combination provides the complete clinical picture: elevated risk from both active thoughts and proven past behavior.
Z91.51 vs T14.91XA: History vs Active Attempt
T14.91XA applies exclusively during initial treatment for current suicide attempts [17]. The seventh character "A" specifies initial encounter. You assign this code when a patient presents immediately after an attempt requiring medical intervention.
Once the acute episode resolves, T14.91XA no longer applies. Z91.51 captures the lasting clinical relevance of that attempt. This shift marks the change from crisis management to ongoing risk monitoring.
Coding accuracy for attempts shows concerning patterns. ICD-10 codes identify only 36.9% of hospitalized suicide attempts using intentional self-harm codes (X60-X84) [12]. Adding undetermined intent codes (Y10-Y34) improves sensitivity to just 41.0% [12]. Sensitivity for past actions drops to 20.4% in emergency department encounters [11]. This systematic undercounting creates gaps in risk tracking across care transitions.
T14.91 should appear only when injury details remain unknown [13]. Research shows 6-8% of cases incorrectly combine T14.91 with other specific self-harm codes [13]. When method is documented, assign the specific X-code (X71-X83 series), not T14.91.
Part 3: Why Z91.51 Matters Clinically
Past Behavior Is the Strongest Predictor of Future Behavior
A past suicide attempt increases your patient's risk for future suicidal behavior more than fourfold [14]. This finding remains consistent across multiple studies and patient populations. Approximately 60% of suicides occur in individuals with mood disorders, and within this group, previous attempts remain the single strongest predictor [4].
Multiple past attempts amplify this risk significantly. Between 40% to 55% of individuals who attempt suicide have prior attempt history [15]. When suicidal behavior occurs, the probability of multiple attempts increases by 32% [15]. The data becomes even more striking for adolescents. Those who attempt suicide before age 18 face a risk of another attempt between ages 18-25 multiplies by 17.8 times, even after controlling for psychiatric history and other risk factors [16].
Clinical assessments often miss this critical history. Research comparing clinical versus research assessments in patients with major depression revealed an 18.7% failure rate to detect suicide attempt history and a 29.7% failure rate to detect current suicidal ideation [4]. Patients who provided inconsistent information about past attempts showed shorter time to inpatient readmission [4]. Variables predicting these false negative responses included older age and reluctance to reveal suicidal thoughts [4].
Risk Stratification in Clinical Practice
Z91.51 helps identify high-risk populations requiring intensified monitoring. Patients with PTSD diagnosis and history of abuse show significantly elevated associations with suicide attempt history [17]. History of abuse predicts not only single attempts but multiple suicide attempts [17]. Insurance status and gender influence these relationships, with males and those with public or no insurance showing greater associations with attempt history when abuse is present [17].
Treatment history provides additional stratification information. Men visiting a psychiatrist within the month before a first suicide attempt face higher risk for future attempts [1]. For women, substance-related disorders, previous attempts, and drug overdose methods in the first attempt serve as predictive factors for subsequent attempts [1].
Treatment Planning Implications
Documenting Z91.51 influences every aspect of treatment planning. Patients with attempt history require more frequent contact and ongoing risk reassessment. Safety planning becomes essential rather than optional. Lethal means counseling shifts from general discussion to specific environmental modifications with family involvement.
Medication selection requires careful consideration in this population. Comorbid substance use disorders, including nicotine-related disorders, increase risk [14]. Treatment teams must address these concurrent conditions while monitoring for medication-induced disinhibition.
Family involvement provides crucial protection. Engaging family members and natural supports reduces stigma, increases understanding of suicide risk and co-occurring conditions, emphasizes the need for ongoing care after hospitalization, and improves outpatient engagement [5].

Care Transitions and Continuity
The discharge period presents extraordinary vulnerability. In the first week following inpatient psychiatric care, suicide death rates reach 300 times higher than the general population [5]. During the first month, rates remain 200 times higher [5] [2]. Risk stays elevated for up to three months after discharge [5].
One out of seven people who died by suicide had contact with inpatient mental health services in the year before their death [5]. Internationally, this percentage reaches 18.3% [5]. Nearly 70% of patients discharged from an emergency department after a suicide attempt never begin outpatient mental health treatment [2].
Care transitions create dangerous gaps. The hospital discharges the patient while the outpatient provider hasn't yet established care [5]. Z91.51 bridges this gap, ensuring subsequent providers recognize the patient's vulnerability regardless of current presentation. Essential records including transition plans, collaborative safety plans, medication lists, and emergency contacts must accompany the patient across settings [5].
Documentation Requirements for Z91.51
Essential Elements to Document
Five core components make Z91.51 documentation clinically useful. Specific history of the behavior establishes the foundation. Document whether the patient attempted suicide, engaged in parasuicide, or self-poisoned with suicidal intent [18]. The official descriptor encompasses all three categories under Z91.51 [19].
Date or timeframe of the attempt creates temporal context for risk assessment. When exact dates aren't available, estimated timeframes work. Documentation stating "previous suicide attempts" alone provides insufficient detail for proper risk stratification. Compare this with "two suicide attempts, most recent three months ago, previous attempt two years prior" - this creates a clear timeline that guides current assessment decisions.
Method used directly informs ongoing safety planning. Recording "overdose with prescription medications" or "cutting requiring sutures" identifies specific means requiring monitoring or environmental modifications. This element connects seamlessly to lethal means counseling protocols.
Treatment received after the attempt reveals intervention response patterns. Document hospitalization details, duration, medication adjustments, and therapy initiation. This information shows how the patient previously responded to crisis interventions.
Current status separates past events from present clinical state. Documentation must clearly establish the patient's current mental state, absence of active suicidal ideation, and treatment engagement [20]. The official coding instruction states "code also mental health disorder, if known" [18]. Z91.51 appears as a secondary diagnosis alongside primary psychiatric conditions [20].
Documentation That Works vs Documentation That Doesn't
Poor documentation creates clinical blind spots:
"Patient has history of depression and suicidal behavior. Currently stable."
This statement offers no actionable details about attempt frequency, timing, methods, or current stability markers.
Effective documentation paints a complete clinical picture:
"Patient has personal history of two suicide attempts. First attempt occurred four years ago via prescription medication overdose requiring three-day medical hospitalization followed by two-week psychiatric admission. Second attempt two years ago by self-inflicted lacerations to forearms treated in emergency department. Patient currently denies suicidal ideation, reports no suicidal thoughts in past six months, engaged in weekly therapy, adherent to medications. Diagnoses: Major depressive disorder, recurrent episode, in partial remission (F33.41); Personal history of suicidal behavior (Z91.51)."
This documentation captures specific timeframes, methods, treatment responses, and current clinical status. Any provider reading this record understands the patient's trajectory without reviewing multiple previous notes.
Pairing Z91.51 with Primary Diagnoses
Z91.51 works as a supplementary code, not a standalone diagnosis [20]. The code provides essential mental health background when paired with primary conditions [20]. Standard practice combines Z91.51 with mood disorders (F32.x, F33.x), anxiety disorders (F41.x), PTSD (F43.1x), or substance use disorders.
A patient seeking depression treatment receives F32.9 (Major depressive disorder, single episode, unspecified) as the primary diagnosis. When documented history includes past suicide attempts, Z91.51 follows as secondary coding. This combination signals both current treatment focus and ongoing vulnerability requiring monitoring.
You can assign Z91.51 regardless of visit purpose [21]. The code maintains clinical relevance during routine follow-up visits when patients demonstrate stability. History codes indicate recurrence potential requiring continued monitoring [21], making Z91.51 appropriate across all encounter types where history influences management decisions.
Part 5: Differentiating Z91.51 from Other Codes in Practice
Real-world scenarios demonstrate how Z91.51 applies across different clinical presentations. These examples show when to use this code versus other suicide-related diagnoses.
Clinical Scenario 1: The Stable Patient with Past Attempts
Sarah, 28, sits in your outpatient clinic for routine follow-up. Eighteen months ago, she overdosed and received inpatient psychiatric care. She attends weekly therapy sessions consistently, reports improved mood, and takes her medications regularly. She denies any current suicidal thoughts.
Correct Coding:
Primary: F33.41 (Major depressive disorder, recurrent, in partial remission)
Secondary: Z91.51 (Personal history of suicidal behavior)
Rationale: Sarah shows no current active symptoms or attempts. Z91.51 captures her history without overstating current risk. This documentation ensures future providers recognize her vulnerability during stable periods.
Clinical Scenario 2: The Patient with Current Ideation
Mark, 42, reports passive suicidal thoughts lasting two weeks. He describes feeling like "not wanting to be here anymore" but denies specific plans or intent. He lost his job recently and has no documented suicide attempt history. Your screening reveals moderate depression.
Correct Coding:
Primary: F32.1 (Major depressive disorder, single episode, moderate)
Secondary: R45.851 (Suicidal ideations)
Rationale: R45.851 captures Mark's present mental state [3]. Since he has no attempt history, Z91.51 doesn't apply. The Alphabetic Index directs "suicidal risk or tendencies meaning suicidal ideation" to R45.851 [10].
Clinical Scenario 3: The Patient After an Attempt
Emma, 19, arrives at your emergency department after intentionally overdosing on acetaminophen. She receives immediate medical treatment and psychiatric evaluation during a 48-hour admission. Three weeks later, she attends her first outpatient psychiatry appointment.
Correct Coding at Initial ED Visit:
T14.91XA (Suicide attempt, initial encounter) or specific intentional self-harm poisoning code
Correct Coding at Follow-Up Visit:
Primary: F32.9 (Major depressive disorder, single episode, unspecified)
Secondary: Z91.51 (Personal history of suicidal behavior)
Rationale: T14.91XA applies only during acute episodes [22]. Once Emma transitions to outpatient care, her attempt becomes history requiring Z91.51. Research shows sensitivity for capturing past attempts reaches only 20.4% in emergency settings [11], making follow-up documentation critical.
Clinical Scenario 4: The Patient with Past Attempts and Current Ideation
Lisa, 35, has borderline personality disorder and presents with escalating suicidal thoughts. She reports daily ideation with a specific overdose plan. Her chart documents two previous suicide attempts: one five years ago and another eight months ago. Both required hospitalization.
Correct Coding:
Primary: F60.3 (Borderline personality disorder)
Secondary: R45.851 (Suicidal ideations)
Additional: Z91.51 (Personal history of suicidal behavior)
Rationale: Both R45.851 and Z91.51 apply when current ideation coexists with attempt history. This combination provides complete clinical context: elevated risk from active thoughts plus proven past behavior. The Alphabetic Index confirms "suicidal risk or tendencies meaning personal history of attempted suicide" directs to Z91.51 [10]. Lisa requires immediate safety assessment and intensive intervention.
Part 6: Risk Assessment Documentation
Risk assessment documentation provides the clinical foundation for your Z91.51 coding decisions. Patients may present without current suicidal ideation, yet structured risk evaluation reveals the balance between vulnerability factors and protective elements that guide monitoring needs.
Risk Factors to Document
Risk factors organize into temporal categories that shape intervention planning. Distal risk factors represent longstanding background conditions that elevate chronic suicide risk [23]. Non-modifiable factors include gender (males face 4:1 higher risk than females), race (Caucasian and Native American populations show elevated rates), history of child abuse, and family history of suicide [23]. Veterans and active military personnel constitute another non-modifiable high-risk group [23].
Modifiable distal factors respond to clinical intervention. Psychiatric diagnoses, particularly mood disorders where 60% of suicides occur [24], represent treatable conditions. Substance use disorders appear in 30-60% of suicide deaths, with 25-50% of adults intoxicated at time of death [24]. Medical illnesses account for 35-40% of suicides, with chronic pain serving as an independent predictor [24].
Proximal risk factors signal current, acute elevations in imminent risk [23]. These include aggressive or impulsive behaviors, negative mood states, interpersonal or financial losses, recent medical diagnoses, and access to lethal means [23]. Bullying, victimization, and trauma constitute proximal environmental stressors requiring immediate attention [23].
Document both categories. Proximal factors carry greater weight in determining immediate intervention level [23]. Past suicide attempts remain the most robust predictor, with approximately 40% of people dying by suicide having previously attempted [24]. Risk peaks within 12 months at 1.6% and reaches 4% at five years following an attempt [24].
Protective Factors to Document
Protective factors buffer individuals against suicide risk and serve as intervention targets [7]. Effective behavioral health care access stands paramount, as reduced stigma and early detection prevent crisis escalation [9]. Connectedness to individuals, family, community, and social institutions provides essential support networks [7].
Personal characteristics offering protection include life skills that encompass problem-solving abilities and adaptive coping strategies [7]. Self-esteem, sense of purpose, and cultural or religious beliefs discouraging suicide strengthen resilience [7]. Specific reasons for living merit detailed documentation: responsibility to family, children and pets, anticipated future events, fear of death, spiritual values, and concern about severe injury consequences [23].
The mnemonic SHORES assists documentation: Strong social connections, Housing and employment stability, Optimistic future plans, Resilience and problem-solving skills, Empathy and self-worth, Stability in physical health and routine [25]. No single protective factor ensures complete safety [25].
Sample Risk Assessment Documentation
Comprehensive assessment documentation integrates both categories:
"Veteran presents with high chronic risk based on multiple distal factors: two prior suicide attempts (2019, 2023), chronic major depressive disorder, PTSD with trauma history, substance dependence, chronic pain, separated marital status. Current protective factors include engagement in weekly therapy, strong therapeutic alliance, responsibility to adult children, and adherence to collaborative safety plan developed during last hospitalization. Veteran denies current intent, demonstrates stable mood today, and identifies sister as emergency contact. Lethal means discussion completed with family removing firearms from home. Low acute risk based on absence of current intent, stable presentation, and collective confidence in ability to maintain safety independently."
This documentation captures risk stratification across both temporal dimensions, identifies modifiable targets, and justifies clinical decisions with specific evidence.
Part 7: Common Documentation Pitfalls and How to Avoid Them
Vague or Incomplete History Documentation
Mental health records often contain the shorthand "no SI/HI/CFS" (no suicidal ideation, no homicidal ideation, contract for safety). This abbreviation falls short of adequate suicide risk assessment [26]. Chart reviews reveal contradictory documentation where "continuing suicidal ideation" appears in one section while "no SI/HI" gets noted elsewhere [26].
Stock phrases create confusion rather than clarity. Statements like "patient is stable" or "by history" leave subsequent providers guessing about information sources. Did this come from patient self-report or documented medical records [26]?
Research shows that 75% of suicide attempts presenting to emergency departments get missed when relying solely on ICD-10 codes from hospital discharge records [12]. Physicians often document underlying mental illness without properly noting the suicidal behavior itself [12].
Writing "patient has suicidal behavior" provides no useful clinical information. This documentation lacks method details, timeframes, and treatment responses needed for risk assessment.
Confusing Past Attempts with Current Ideation
Temporal accuracy drives proper code selection. R45.851 captures what patients think today. Z91.51 documents what they did previously.
Coding current suicidal thoughts with Z91.51 misrepresents immediate risk levels. The reverse mistake proves equally dangerous: documenting only current ideation while missing past attempt history overlooks the strongest predictor of future attempts [27]. Previous suicide attempts remain the most robust risk factor for future attempts [27].
This distinction affects patient safety directly. Accurate coding ensures proper risk communication across care teams.
Missing Timeframes and Context
Suicide documentation requires specific temporal details [28]. Compare these two statements:
Inadequate: "Previous attempt" Adequate: "Two attempts: first four years ago via overdose, second 18 months ago by cutting"
The detailed version informs current risk assessment. The vague version offers no actionable information.
Documentation should answer "Why now?" This question often reveals the crisis precipitant [28]. Yet records frequently omit triggering events and patient responses during questioning [29].
Failing to Update Code Status
Z91.51 belongs throughout a patient's care journey once attempt history exists. Coders often assign it only during acute episodes, missing outpatient visits and primary care encounters where the history remains clinically relevant.
Medical coders rely on clear physician documentation to assign self-harm and attempt codes correctly [12]. This makes explicit documentation of past attempts essential across all care settings and transitions.
Update your coding practices. Include Z91.51 in routine follow-ups, medication management visits, and any encounter where attempt history influences treatment decisions.
Part 8: Coding Guidelines for Specific Settings
Inpatient Psychiatry Units
Z91.51 receives exempt status from Present on Admission (POA) reporting requirements [30]. You assign the code without documenting whether the history existed at admission time. Professional coders apply Z91.51 based on documentation throughout the psychiatric record, not solely on admission status.
This exemption simplifies your workflow. Focus on thorough documentation rather than timing requirements.
Outpatient Mental Health Clinics
Outpatient settings capture comprehensive health histories with detailed mental health and suicidality indicators [31]. Z91.51 functions as a secondary diagnosis supplementing primary psychiatric conditions. Pair it with mood disorders, PTSD, or anxiety diagnoses to provide complete clinical context.
Your outpatient documentation becomes the foundation for ongoing treatment planning and risk monitoring. Each visit note should reflect current status while maintaining awareness of historical risk factors.
Emergency Department Encounters
Emergency departments focus on immediate and acute health concerns [31]. During active suicide attempts, assign T14.91XA or specific intentional self-harm codes, not Z91.51. Research shows only 30% of suicide attempts presenting to emergency departments receive corresponding ICD codes.
Once acute treatment concludes and the patient transitions to follow-up care, Z91.51 replaces acute attempt codes. Emergency providers play a crucial role in initiating proper documentation that follows patients across care transitions.
Primary Care Settings
Primary care physicians encounter patients with suicide attempt history during routine visits. Z91.51 flags these patients for ongoing monitoring even when presenting for unrelated medical concerns.
Consider this statistic: 45% of suicide decedents had a physician visit in the last month of life. Primary care documentation of Z91.51 ensures recognition of vulnerability across all encounter types. Your documentation may be the only warning signal for the next provider in your patient's care journey.
Conclusion: The Code That Carries History
Z91.51 goes beyond administrative requirements. This code serves as a clinical alert system, signaling that your patient survived an attempt and needs continued vigilance.
Proper documentation of Z91.51 protects patient safety. History doesn't vanish when you transfer care or when patients move between settings. Each time you assign this code, you create a safety net for future providers who may never hear the full story directly from your patient.
The ICD-10-CM structure makes this clear: 'Suicide, suicidal (attempted)' points to T14.91 for active attempts. Past behavior gets captured with Z91.51.
Your notes today become tomorrow's early warning system. Document the specifics, include risk factors and protective elements, and build the kind of clinical record that keeps patients safe across their entire treatment journey.
Mental health professionals hold a unique responsibility in suicide prevention. Z91.51 represents one of the most straightforward tools in your documentation arsenal - use it consistently, accurately, and with the understanding that this simple code can save lives.
Key Takeaways
Understanding Z91.51 coding is crucial for accurate suicide risk documentation and patient safety across healthcare settings.
• Z91.51 captures past suicide attempts only - Use for documented history of attempts, parasuicide, or self-poisoning, not current ideation (R45.851) or active attempts (T14.91XA)
• Past attempts predict future risk by 4x - Document specific timeframes, methods, and treatment received to enable proper risk stratification and safety planning
• Pair Z91.51 with primary psychiatric diagnoses - Always code alongside mood disorders, PTSD, or other mental health conditions as it functions as a secondary diagnosis
• Document across all care settings - Apply Z91.51 in outpatient, primary care, and follow-up visits, not just acute episodes, to ensure continuity of risk awareness
• Include comprehensive risk assessment details - Document both protective factors (social support, treatment engagement) and risk factors (substance use, trauma history) to support clinical decisions
The code serves as a critical bridge across care transitions, ensuring that a patient's vulnerability doesn't disappear between providers or settings. Proper documentation of Z91.51 transforms administrative coding into a patient safety tool that protects lives through accurate risk communication.
FAQs
What is the difference between Z91.51 and R45.851 codes?
Z91.51 is used to document a patient's past history of suicide attempts, parasuicide, or self-poisoning, while R45.851 captures current suicidal ideation or thoughts. Z91.51 applies when a patient previously attempted suicide but is not currently experiencing suicidal thoughts, whereas R45.851 is assigned when a patient is actively experiencing suicidal ideation at the time of the encounter.
Can Z91.51 be used as a primary diagnosis?
No, Z91.51 functions as a secondary diagnosis that supplements primary psychiatric conditions. It should be paired with primary diagnoses such as major depressive disorder, PTSD, anxiety disorders, or substance use disorders to provide a comprehensive clinical picture of the patient's mental health status and risk factors.
When should I use Z91.51 versus T14.91XA for suicide-related coding?
T14.91XA is assigned during the initial encounter for a current, active suicide attempt requiring immediate medical attention. Once the acute episode resolves and the patient transitions to follow-up or outpatient care, Z91.51 replaces the acute attempt code to document the historical nature of the suicide attempt for ongoing risk monitoring.
Does Z91.51 apply to patients with a history of suicidal thoughts but no actual attempts?
No, Z91.51 specifically documents personal history of actual suicidal behavior, including suicide attempts, parasuicide, and self-poisoning. There is no ICD-10 code for historical suicidal ideation that did not result in action. Only current suicidal thoughts are coded using R45.851.
Why is documenting Z91.51 clinically important even when a patient is currently stable?
Past suicide attempts increase the risk of future suicidal behavior by more than four times, making it the strongest predictor of future attempts. Documenting Z91.51 ensures that all healthcare providers across different settings are aware of this elevated risk, enabling appropriate monitoring, safety planning, and continuity of care even during periods of stability.
References
[1] - https://www.aapc.com/codes/icd-10-codes/Z91.51?srsltid=AfmBOoq2jwbJ5XMQri7F-nVgfsiXJmV3S-rdK43npCmJ6r3-e9Nd4aQB
[2] - https://www.aapc.com/codes/icd-10-codes/Z91.51?srsltid=AfmBOopn6YzrHO7iZbPbEH7bJ4H0sQ747265_OT8tyfZC5NX-JADi558
[3] - https://ecgwaves.com/icd-code/z91-51-personal-history-of-suicidal-behavior-icd-10-code-in-z77-z99-persons-with-potential-health-hazards-related-to-family-and-personal-history-and-certain-conditions-influencing-health-status/
[4] - https://publications.aap.org/codingnews/article/16/12/7/92475/ICD-10-CM-Update-Coding-for-Self-harm
[5] - https://www.icd10data.com/ICD10CM/Codes/Z00-Z99/Z77-Z99/Z91-/Z91.51
[6] - https://pmc.ncbi.nlm.nih.gov/articles/PMC12981544/
[7] - https://www.hhs.nd.gov/sites/www/files/documents/DOH Legacy/Reportable Conditions/ICD10Codes/SuicidesICD10codes.pdf
[8] - https://www.aapc.com/codes/icd-10-codes/R45.851?srsltid=AfmBOooGvRrYd8uWK1-jMVvJxukvicfqs06oKOA0IMqCYIpGQrSolTE1
[9] - https://icd10monitor.medlearn.com/coding-considerations-for-suicide/
[10] - https://pmc.ncbi.nlm.nih.gov/articles/PMC12445346/
[11] - https://pmc.ncbi.nlm.nih.gov/articles/PMC6877200/
[12] - https://yung-sidekick.com/blog/suicide-attempt-icd-10-a-guide-for-therapists-on-proper-documentation-and-diagnosis
[13] - https://psychiatryonline.org/doi/full/10.1176/appi.ajp.161.8.1433
[14] - https://pmc.ncbi.nlm.nih.gov/articles/PMC3988802/
[15] - https://pmc.ncbi.nlm.nih.gov/articles/PMC9032869/
[16] - https://pmc.ncbi.nlm.nih.gov/articles/PMC4247360/
[17] - https://pmc.ncbi.nlm.nih.gov/articles/PMC11375737/
[18] - https://onlinelibrary.wiley.com/doi/full/10.1002/pcn5.7
[19] - https://www.samhsa.gov/sites/default/files/suicide-risk-practices-in-care-transitions-11192019.pdf
[20] - https://theactionalliance.org/healthcare/caretransitions
[21] - https://www.aapc.com/codes/icd-10-codes/Z91.51?srsltid=AfmBOoqmXlywLmAGI5YAY1VDfq7vuSJm_l1Ae1eio3aKsTskG_KLsr9t
[22] - https://www.aapc.com/codes/icd-10-codes/Z91.51?srsltid=AfmBOorBmhThyxeAclf2xzMQMz2eoCzr12ec8Aump3EvVb15-V2CT8dE
[23] - https://genhealth.ai/code/icd10cm/Z91.51-personal-history-of-suicidal-behavior
[24] - https://www.valant.io/resources/blog/icd-10-code-for-suicidal-ideation/
[25] - https://www.icd10data.com/ICD10CM/Codes/S00-T88/T14-T14/T14-/T14.91XD
[26] - https://www.preventsuicideny.org/wp-content/uploads/2021/08/Sample-Suicide-Risk-Assessment.pdf
[27] - http://clpsychiatry.org/wp-content/uploads/ACLP-How-to-Guide-Suicide-Risk-Assessment-.pdf
[28] - https://sprc.org/risk-and-protective-factors/
[29] - https://suicidology.org/protective-factors-for-suicide/
[30] - https://comorbidityguidelines.org.au/suicidality/protective-factors
[31] - https://www.psychiatrictimes.com/view/empty-words-psychiatric-records-where-has-clinical-narrative-gone
[33] - https://pmc.ncbi.nlm.nih.gov/articles/PMC419387/
[34] - https://www.socialwork.career/2016/12/suicidal-ideation-how-to-document.html
[35] - https://icdlist.com/icd-10/Z91.51
[36] - https://pmc.ncbi.nlm.nih.gov/articles/PMC11439010/
[37] - https://pmc.ncbi.nlm.nih.gov/articles/PMC6320303/
If you’re ready to spend less time on documentation and more on therapy, get started with a free trial today
Not medical advice. For informational use only.
Outline
More articles





