Personal and Family History ICD-10-CM codes
ICD-10-CM history codes: family history of cancer and chronic disease (Z80 through Z84) and personal history of conditions no longer present (Z86 and Z87), with the rules for when a history code is reported.
207 codes, 157 billable. FY2027, valid from October 1, 2026. In chapter 21: Factors Influencing Health Status and Contact with Health Services.
Advertisements
How to code Personal and Family History
History codes are secondary codes that explain why a patient is being screened, monitored, or treated differently. Family history (Z80 to Z84) is reported when a relative's disease places the patient at higher risk: Z80.0 digestive cancer, Z80.3 breast cancer, Z80.41 ovarian cancer, Z80.42 prostate cancer, Z81.x mental and substance disorders, Z82.3 stroke, Z82.49 ischemic heart disease, Z82.5 asthma, Z82.62 osteoporosis, Z83.3 diabetes, Z83.42 familial hypercholesterolemia, Z83.511 glaucoma, Z83.71x colon polyps (subdivided in FY2025 by polyp type), Z84.81 carrier of a genetic disease, Z84.82 sudden infant death syndrome. The relative and the condition must be documented; a generic family history of cancer is Z80.9 only when no site is recorded.
Personal history (Z86, Z87) is for a condition that no longer exists and is not receiving treatment but affects current care. Frequently reported examples: Z87.891 (history of nicotine dependence, the most used code in the range), Z86.73 (TIA or stroke without residual deficits), Z86.718 (DVT) and Z86.711 (pulmonary embolism), Z86.16 (COVID-19), Z86.14 (MRSA), Z86.32 (gestational diabetes), Z86.0101 (adenomatous colon polyps), Z87.440 (recurrent UTI), Z87.81 (healed fracture), Z87.820 (traumatic brain injury), and Z87.892 (anaphylaxis). Personal history of malignancy has its own category, Z85, covered in a separate guide.
The history code is wrong when the condition is still present. A patient who had a stroke and still has hemiparesis is coded I69.35x, not Z86.73; a patient with atrial fibrillation on anticoagulation is I48.x, not Z86.79; a patient with asthma that is quiet today still has asthma. Similarly, Z87.891 requires the patient to have quit; a current smoker is F17.2x. Coders cannot infer a history from a medication list or a problem list that lacks a status; documentation should say resolved, history of, or status post.
History codes may be first-listed only when they are the reason for the visit and no screening or follow-up code applies, which is unusual. The usual pattern is a screening or follow-up code first (Z12.11, Z08, Z09) with the history code second, or a problem code first with the history code adding risk context. Z80 to Z84 and Z86 to Z87 are all accepted as secondary diagnoses on any claim and are often what turns a denied screening into a covered high-risk screening.
All Personal and Family History codes
- Z80Family history of primary malignant neoplasm
- Z80.0Family history of malignant neoplasm of digestive organs
- Z80.1Family history of malignant neoplasm of trachea, bronchus and lung
- Z80.2Family history of malignant neoplasm of other respiratory and intrathoracic organs
- Z80.3Family history of malignant neoplasm of breast
- Z80.4Family history of malignant neoplasm of genital organs
- Z80.41Family history of malignant neoplasm of ovary
- Z80.42Family history of malignant neoplasm of prostate
- Z80.43Family history of malignant neoplasm of testis
- Z80.44Family history of malignant neoplasm of fallopian tube(s)
- Z80.49Family history of malignant neoplasm of other genital organs
- Z80.5Family history of malignant neoplasm of urinary tract
- Z80.51Family history of malignant neoplasm of kidney
- Z80.52Family history of malignant neoplasm of bladder
- Z80.59Family history of malignant neoplasm of other urinary tract organ
- Z80.6Family history of leukemia
- Z80.7Family history of other malignant neoplasms of lymphoid, hematopoietic and related tissues
- Z80.8Family history of malignant neoplasm of other organs or systems
- Z80.9Family history of malignant neoplasm, unspecified
- Z81Family history of mental and behavioral disorders
- Z81.0Family history of intellectual disabilities
- Z81.1Family history of alcohol abuse and dependence
- Z81.2Family history of tobacco abuse and dependence
- Z81.3Family history of other psychoactive substance abuse and dependence
- Z81.4Family history of other substance abuse and dependence
- Z81.8Family history of other mental and behavioral disorders
- Z82Family history of certain disabilities and chronic diseases (leading to disablement)
- Z82.0Family history of epilepsy and other diseases of the nervous system
- Z82.1Family history of blindness and visual loss
- Z82.2Family history of deafness and hearing loss
- Z82.3Family history of stroke
- Z82.4Family history of ischemic heart disease and other diseases of the circulatory system
- Z82.41Family history of sudden cardiac death
- Z82.49Family history of ischemic heart disease and other diseases of the circulatory system
- Z82.5Family history of asthma and other chronic lower respiratory diseases
- Z82.6Family history of arthritis and other diseases of the musculoskeletal system and connective tissue
- Z82.61Family history of arthritis
- Z82.62Family history of osteoporosis
- Z82.69Family history of other diseases of the musculoskeletal system and connective tissue
- Z82.7Family history of congenital malformations, deformations and chromosomal abnormalities
- Z82.71Family history of polycystic kidney
- Z82.79Family history of other congenital malformations, deformations and chromosomal abnormalities
- Z82.8Family history of other disabilities and chronic diseases leading to disablement, not elsewhere classified
- Z83Family history of other specific disorders
- Z83.0Family history of human immunodeficiency virus [HIV] disease
- Z83.1Family history of other infectious and parasitic diseases
- Z83.2Family history of diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism
- Z83.3Family history of diabetes mellitus
- Z83.4Family history of other endocrine, nutritional and metabolic diseases
- Z83.41Family history of multiple endocrine neoplasia [MEN] syndrome
- Z83.42Family history of familial hypercholesterolemia
- Z83.43Family history of other disorder of lipoprotein metabolism and other lipidemias
- Z83.430Family history of elevated lipoprotein(a)
- Z83.438Family history of other disorder of lipoprotein metabolism and other lipidemia
- Z83.49Family history of other endocrine, nutritional and metabolic diseases
- Z83.5Family history of eye and ear disorders
- Z83.51Family history of eye disorders
- Z83.511Family history of glaucoma
- Z83.518Family history of other specified eye disorder
- Z83.52Family history of ear disorders
- Z83.6Family history of other diseases of the respiratory system
- Z83.7Family history of diseases of the digestive system
- Z83.71Family history of colonic polyps
- Z83.710Family history of adenomatous and serrated polyps
- Z83.711Family history of hyperplastic colon polyps
- Z83.718Family history of other colon polyps
- Z83.719Family history of colon polyps, unspecified
- Z83.72Family history of familial adenomatous polyposis
- Z83.79Family history of other diseases of the digestive system
- Z84Family history of other conditions
- Z84.0Family history of diseases of the skin and subcutaneous tissue
- Z84.1Family history of disorders of kidney and ureter
- Z84.11Family history of APOL1-mediated kidney disease [AMKD]
- Z84.19Family history of other disorders of kidney and ureter
- Z84.2Family history of other diseases of the genitourinary system
- Z84.3Family history of consanguinity
- Z84.8Family history of other specified conditions
- Z84.81Family history of carrier of genetic disease
- Z84.82Family history of sudden infant death syndrome
- Z84.89Family history of other specified conditions
- Z84.AFamily history of exposure to diethylstilbestrol
- Z86Personal history of certain other diseases
- Z86.0Personal history of in-situ and benign neoplasms and neoplasms of uncertain behavior
- Z86.00Personal history of in-situ neoplasm
- Z86.000Personal history of in-situ neoplasm of breast
- Z86.001Personal history of in-situ neoplasm of cervix uteri
- Z86.002Personal history of in-situ neoplasm of other and unspecified genital organs
- Z86.003Personal history of in-situ neoplasm of oral cavity, esophagus and stomach
- Z86.004Personal history of in-situ neoplasm of other and unspecified digestive organs
- Z86.005Personal history of in-situ neoplasm of middle ear and respiratory system
- Z86.006Personal history of melanoma in-situ
- Z86.007Personal history of in-situ neoplasm of skin
- Z86.008Personal history of in-situ neoplasm of other site
- Z86.00APersonal history of in-situ neoplasm of the fallopian tube(s)
- Z86.01Personal history of benign neoplasm
- Z86.010Personal history of colon polyps
- Z86.0100Personal history of colon polyps, unspecified
- Z86.0101Personal history of adenomatous and serrated colon polyps
- Z86.0102Personal history of hyperplastic colon polyps
- Z86.0109Personal history of other colon polyps
- Z86.011Personal history of benign neoplasm of the brain
- Z86.012Personal history of benign carcinoid tumor
- Z86.018Personal history of other benign neoplasm
- Z86.03Personal history of neoplasm of uncertain behavior
- Z86.1Personal history of infectious and parasitic diseases
- Z86.11Personal history of tuberculosis
- Z86.12Personal history of poliomyelitis
- Z86.13Personal history of malaria
- Z86.14Personal history of Methicillin resistant Staphylococcus aureus infection
- Z86.15Personal history of latent tuberculosis infection
- Z86.16Personal history of COVID-19
- Z86.17Personal history of Clostridioides difficile infection
- Z86.19Personal history of other infectious and parasitic diseases
- Z86.2Personal history of diseases of the blood and blood-forming organs and certain disorders involving the immune mechanism
- Z86.3Personal history of endocrine, nutritional and metabolic diseases
- Z86.31Personal history of diabetic foot ulcer
- Z86.32Personal history of gestational diabetes
- Z86.39Personal history of other endocrine, nutritional and metabolic disease
- Z86.5Personal history of mental and behavioral disorders
- Z86.51Personal history of combat and operational stress reaction
- Z86.59Personal history of other mental and behavioral disorders
- Z86.6Personal history of diseases of the nervous system and sense organs
- Z86.61Personal history of infections of the central nervous system
- Z86.69Personal history of other diseases of the nervous system and sense organs
- Z86.7Personal history of diseases of the circulatory system
- Z86.71Personal history of venous thrombosis and embolism
- Z86.711Personal history of pulmonary embolism
- Z86.718Personal history of other venous thrombosis and embolism
- Z86.72Personal history of thrombophlebitis
- Z86.73Personal history of transient ischemic attack (TIA), and cerebral infarction without residual deficits
- Z86.74Personal history of sudden cardiac arrest
- Z86.79Personal history of other diseases of the circulatory system
- Z87Personal history of other diseases and conditions
- Z87.0Personal history of diseases of the respiratory system
- Z87.01Personal history of pneumonia (recurrent)
- Z87.09Personal history of other diseases of the respiratory system
- Z87.1Personal history of diseases of the digestive system
- Z87.11Personal history of peptic ulcer disease
- Z87.19Personal history of other diseases of the digestive system
- Z87.2Personal history of diseases of the skin and subcutaneous tissue
- Z87.3Personal history of diseases of the musculoskeletal system and connective tissue
- Z87.31Personal history of (healed) nontraumatic fracture
- Z87.310Personal history of (healed) osteoporosis fracture
- Z87.311Personal history of (healed) other pathological fracture
- Z87.312Personal history of (healed) stress fracture
- Z87.39Personal history of other diseases of the musculoskeletal system and connective tissue
- Z87.4Personal history of diseases of genitourinary system
- Z87.41Personal history of dysplasia of the female genital tract
- Z87.410Personal history of cervical dysplasia
- Z87.411Personal history of vaginal dysplasia
- Z87.412Personal history of vulvar dysplasia
- Z87.42Personal history of other diseases of the female genital tract
- Z87.43Personal history of diseases of male genital organs
- Z87.430Personal history of prostatic dysplasia
- Z87.438Personal history of other diseases of male genital organs
- Z87.44Personal history of diseases of urinary system
- Z87.440Personal history of urinary (tract) infections
- Z87.441Personal history of nephrotic syndrome
- Z87.442Personal history of urinary calculi
- Z87.448Personal history of other diseases of urinary system
- Z87.5Personal history of complications of pregnancy, childbirth and the puerperium
- Z87.51Personal history of pre-term labor
- Z87.59Personal history of other complications of pregnancy, childbirth and the puerperium
- Z87.6Personal history of certain (corrected) conditions arising in the perinatal period
- Z87.61Personal history of (corrected) necrotizing enterocolitis of newborn
- Z87.68Personal history of other (corrected) conditions arising in the perinatal period
- Z87.7Personal history of (corrected) congenital malformations
- Z87.71Personal history of (corrected) congenital malformations of genitourinary system
- Z87.710Personal history of (corrected) hypospadias
- Z87.718Personal history of other specified (corrected) congenital malformations of genitourinary system
- Z87.72Personal history of (corrected) congenital malformations of nervous system and sense organs
- Z87.720Personal history of (corrected) congenital malformations of eye
- Z87.721Personal history of (corrected) congenital malformations of ear
- Z87.728Personal history of other specified (corrected) congenital malformations of nervous system and sense organs
- Z87.73Personal history of (corrected) congenital malformations of digestive system
- Z87.730Personal history of (corrected) cleft lip and palate
- Z87.731Personal history of (corrected) tracheoesophageal fistula or atresia
- Z87.732Personal history of (corrected) persistent cloaca or cloacal malformations
- Z87.738Personal history of other specified (corrected) congenital malformations of digestive system
- Z87.74Personal history of (corrected) congenital malformations of heart and circulatory system
- Z87.75Personal history of (corrected) congenital malformations of respiratory system
- Z87.76Personal history of (corrected) congenital malformations of integument, limbs and musculoskeletal system
- Z87.760Personal history of (corrected) congenital diaphragmatic hernia or other congenital diaphragm malformations
- Z87.761Personal history of (corrected) gastroschisis
- Z87.762Personal history of (corrected) prune belly malformation
- Z87.763Personal history of other (corrected) congenital abdominal wall malformations
- Z87.768Personal history of other specified (corrected) congenital malformations of integument, limbs and musculoskeletal system
- Z87.79Personal history of other (corrected) congenital malformations
- Z87.790Personal history of (corrected) congenital malformations of face and neck
- Z87.798Personal history of other (corrected) congenital malformations
- Z87.8Personal history of other specified conditions
- Z87.81Personal history of (healed) traumatic fracture
- Z87.82Personal history of other (healed) physical injury and trauma
- Z87.820Personal history of traumatic brain injury
- Z87.821Personal history of retained foreign body fully removed
- Z87.828Personal history of other (healed) physical injury and trauma
- Z87.89Personal history of other specified conditions
- Z87.890Personal history of sex reassignment
- Z87.8901Personal history of social gender transition
- Z87.8902Personal history of medical gender transition
- Z87.8903Personal history of surgical gender transition
- Z87.8904Personal history of intersex surgery
- Z87.8909Personal history of unspecified gender transition
- Z87.891Personal history of nicotine dependence
- Z87.892Personal history of anaphylaxis
- Z87.893Personal history of gender detransition
- Z87.898Personal history of other specified conditions
More Encounter and Z-Code Guides
Annual Physical ExamWell-Woman ExamMedicare Annual Wellness VisitPre-Operative ClearanceLong-Term Medication UseImmunization EncounterColon Cancer ScreeningScreening MammogramPap Smear and Cervical Cancer ScreeningDiabetes and Cholesterol ScreeningSTI, HIV, and COVID-19 ScreeningDepression ScreeningAll 335 guides
