Pabau GO app

The new Pabau GO is heredownload on the App Store

Download on the App Store
Book a demo Book a demo
Diagnostic Codes

ICD-10 Code B20: HIV disease coding, documentation, and billing rules

Key Takeaways

Key Takeaways

ICD-10 Code B20 (Human immunodeficiency virus [HIV] disease) is the billable diagnosis code for symptomatic HIV infection and AIDS – never for asymptomatic status.

Z21 (asymptomatic HIV infection status) is the correct code when no HIV-related symptoms or conditions are present; providers who document ‘AIDS’ must always assign B20.

Sequencing rule: list B20 first as the principal diagnosis, then add additional codes for each associated opportunistic infection or manifestation.

Pabau’s clinical record and digital intake forms help clinicians capture the documentation specificity required to justify B20 over Z21 at every encounter.

ICD-10 Code B20: Clinical definition and billable status

ICD-10 code B20 is the billable, specific ICD-10-CM diagnosis code for Human immunodeficiency virus [HIV] disease, maintained by the Centers for Medicare and Medicaid Services (CMS). It’s classified under ICD-10-CM Chapter 1 (Certain infectious and parasitic diseases, A00-B99).

B20 is the HIV ICD-10 code assigned when a patient has symptomatic HIV or a documented AIDS diagnosis – not the asymptomatic status code Z21.

Choosing B20 over Z21 when the record supports only asymptomatic status – or the reverse – puts the claim out of step with the medical record, which is what drives audits and denials.

This reference covers billable status, the B20 vs Z21 distinction, sequencing requirements, pregnancy coding, related HIV codes, and the documentation each encounter needs, for providers at sexual health clinics and other practices managing HIV care.

What B20 covers and what it excludes

B20 captures the full clinical spectrum of HIV disease once the virus causes measurable harm: opportunistic infections, AIDS-defining conditions, HIV-related neurological findings, and any state the provider documents as “AIDS.” The code sits within the narrow B20-B20 category range in ICD-10-CM, making it the sole code for this level of HIV illness under the US classification system.

Item Detail
ICD-10-CM code B20
Official description Human immunodeficiency virus [HIV] disease
Billable? Yes – specific, billable code
Chapter Chapter 1: Certain infectious and parasitic diseases (A00-B99)
Code range B20-B20
Use additional code? Yes – code all manifestations of HIV infection (opportunistic infections, conditions)
Excludes 1 Asymptomatic HIV infection status (Z21) – cannot be used in the same encounter as B20
MS-DRG grouping Grouped within MS-DRG v43.0 for inpatient reimbursement
Effective date October 1, 2015 (ICD-10-CM implementation); valid through FY 2026

The WHO’s ICD-10 browser breaks HIV disease into subcategories – B20.0 through B20.9 for specific manifestations, plus B21 to B24 (including B24, unspecified HIV disease). US ICD-10-CM collapses that entire B20-B24 range into the single code B20.

So a subcategory like B20.6 (HIV disease with Pneumocystis pneumonia) that appears in international literature has no US equivalent. Domestic coders assign B20 plus a separate manifestation code instead – a key structural difference when reading international coding guidance.

ICD-10 Code B20 vs Z21: The coding distinction that matters

The choice between B20 and Z21 is the most audited decision in HIV coding, and the two codes split along one line: disease versus infection status. B20 is the symptomatic HIV ICD-10 code, covering documented HIV disease or AIDS.

Z21 is the asymptomatic HIV infection status code for a patient who is HIV positive but has no HIV-related symptoms or conditions.

Under-coding a symptomatic patient with Z21 understates clinical complexity and undercuts reimbursement. Over-coding with B20 when the record shows only asymptomatic infection creates compliance risk.

Per AAPC coding guidance and the ICD-10-CM Official Guidelines Section I.C.1.a, the distinction rests on two factors: what the provider has documented, and whether HIV-related symptoms or conditions are present at the encounter.

The terms “symptomatic” and “asymptomatic” describe stages in the disease process, so coders should not infer the stage from whether symptoms happen to be listed. The provider has to specify it.

Scenario Correct code Rationale
Patient has HIV, no symptoms, no HIV-related conditions Z21 Asymptomatic HIV infection status only
Provider documents “AIDS” B20 AIDS always maps to B20, regardless of current symptom presentation
HIV patient presents with opportunistic infection (e.g. cytomegalovirus, B25.9) B20 + B25.9 B20 sequenced first; additional code identifies the specific condition
HIV patient with mild neurocognitive disorder (F06.7) B20 + F06.7 Neurological manifestation directly attributable to HIV disease
Previously documented AIDS, currently asymptomatic on ART B20 Once coded as AIDS, revert to B20 for all future encounters – not Z21
“Known HIV,” “HIV test positive,” or “HIV positive NOS” documented Z21 Positive status without confirmed symptomatic disease maps to Z21

One persistent coding error: reverting to Z21 for a patient whose record already contains an AIDS diagnosis. Per ICD-10-CM guidelines, once the provider has documented AIDS, all subsequent encounters use B20. This applies even when the patient is virologically suppressed and clinically well on antiretroviral therapy.

Providers should note this explicitly in the record to prevent coders from reverting to Z21 at follow-up visits. Coding a sequela after an acute condition resolves raises a similar status-versus-active-disease distinction, as with ICD-10 code G09.

Sequencing rules and opportunistic infection coding

B20 carries mandatory principal diagnosis sequencing when HIV disease is the condition chiefly responsible for the encounter. The ICD-10-CM Official Guidelines Section I.C.1.a.2 are explicit: B20 goes first, followed by additional codes for every manifestation present.

Standard encounter sequencing

  1. List B20 as principal diagnosis when HIV disease is the primary reason for the encounter.
  2. Add codes for each manifestation – cytomegalovirus retinitis (B25.9), Pneumocystis jirovecii pneumonia (B59), Kaposi sarcoma (C46.x), Mycobacterium avium complex, or any other HIV-related condition documented in the chart.
  3. Code all documented conditions – the guidelines instruct coders to identify all manifestations of HIV infection, not just the presenting complaint.
  4. Do not use Z21 alongside B20 – the Excludes 1 note means the two codes cannot coexist on the same claim.

This principal-then-manifestation logic mirrors the sequencing pattern used across Chapter 1 infectious disease coding, and coders will recognize a similar structure in E35. The practical effect for HIV: a patient presenting with HIV-related cytomegalovirus disease generates at minimum a two-code sequence (B20, B25.9), and auditors will look for both.

Incidental HIV during unrelated encounters

When a patient with known HIV disease presents for a condition unrelated to their HIV status, the sequencing flips. The unrelated condition becomes the principal diagnosis, and B20 is added as an additional code.

This reflects real-world clinical practice: a patient with well-controlled HIV presenting for a knee injury is primarily a musculoskeletal encounter. The guidelines still require B20 to appear somewhere on the claim to accurately capture the patient’s active medical history.

Documentation requirements: What the record must show

A claim submitted with B20 without adequate clinical documentation is the fastest route to a medical necessity denial. The provider’s note must contain specific language that supports the code assignment. Maintaining HIPAA-compliant clinical documentation is especially important for HIV records, where confidentiality requirements add an additional layer of sensitivity to what is documented and how it is stored.

Required documentation elements

  • Provider statement of HIV disease or AIDS: The physician or qualified clinician must document the diagnosis explicitly. “HIV positive” or “HIV reactive serology” alone does not support B20.
  • Manifestation or symptom present: The note should identify the specific HIV-related condition, opportunistic infection, or AIDS-defining illness driving the encounter.
  • Clinical context: CD4 count trends, viral load results, and antiretroviral therapy status provide supporting context and help demonstrate medical necessity for the level of service billed.
  • Clear link between HIV and the condition: When coding an opportunistic infection alongside B20, the note should connect the infection to the patient’s immunocompromised state.

When the record is ambiguous or contradictory – HIV infection noted at one visit, HIV with a history of AIDS at the next – resolve it with a physician documentation clarification (a coding query) rather than assigning a code by guesswork.

Keep the query neutral: offer options such as “HIV positive status only,” “AIDS,” or “clinically unable to determine.” Avoid pushing “symptomatic” or “asymptomatic” wording the provider never used.

Using clinical record documentation tools that support structured note templates helps providers capture these elements consistently at every HIV encounter. Similarly, digital intake forms completed before the appointment can flag symptom status and medication history, giving the clinician a pre-populated foundation for the encounter note.

Sound patient data security practices in healthcare are equally important given the sensitivity of HIV diagnosis records.

Comprehensive patient records
Comprehensive patient records

Common documentation failures

  • Using “HIV positive” without qualifying whether the patient is symptomatic
  • Noting an opportunistic infection without linking it to HIV disease in the assessment
  • Reverting to “asymptomatic” language at follow-up visits for patients with a prior AIDS diagnosis
  • Failing to code all manifestations when multiple HIV-related conditions are present

Missing documentation costs practices more than revenue

Pabau's clinical record tools help your team capture the diagnosis specificity that B20 and other complex codes require – structured notes, digital intake forms, and HIPAA-aligned data handling built into one workflow.

Pabau practice management platform

HIV coding in pregnancy: B20 and O98.7

Pregnancy complicates HIV coding in a specific way. ICD-10-CM code O98.7 (Human immunodeficiency virus disease complicating pregnancy, childbirth, and the puerperium) is a non-billable header code. A trimester or delivery-stage character is required before it can be billed.

The billable subcodes are O98.711, O98.712, and O98.713 (HIV disease complicating pregnancy in the first, second, and third trimester), O98.719 (trimester unspecified), O98.72 (HIV disease complicating childbirth), and O98.73 (HIV disease complicating the puerperium).

The specific O98.71x, O98.72, or O98.73 code is the billable principal obstetric diagnosis, sequenced first. Per the tabular list “use additional code” instruction, B20 is added when the patient has symptomatic HIV or AIDS, and Z21 is added when the patient has only asymptomatic infection status. Bare O98.7 alone is never billable.

Practices running OBGYN services should confirm their EHR or practice management system supports this multi-code sequence, particularly when billing CPT 59400 for routine obstetric care alongside the HIV-related codes.

Pro Tip

Flag HIV-positive obstetric patients in your scheduling workflow so the coder receives an automatic prompt to review O98.71x/72/73 plus B20 or Z21 sequencing before claim submission. This reduces the time between encounter and clean claim.

B20 does not exist in isolation. Accurate HIV coding often requires selecting from a cluster of related codes depending on the clinical context. The CDC/NCHS ICD-10-CM tool provides the official tabular list and index for verifying these codes and their inclusion terms for any fiscal year.

Code Description Relationship to B20
Z21 Asymptomatic human immunodeficiency virus infection status Mutually exclusive with B20 (Excludes 1); use when no HIV-related symptoms
O98.71x-O98.73 HIV complicating pregnancy (O98.711-O98.719), childbirth (O98.72), or the puerperium (O98.73) Billable principal obstetric code; sequenced first, with B20 or Z21 added. Bare O98.7 is a non-billable header
B25.9 Cytomegalovirus disease, unspecified Common opportunistic infection; added after B20 in sequence
F06.7 Mild neurocognitive disorder due to known physiological condition HIV-related neurological manifestation; coded with B20
B59 Pneumocystosis (Pneumocystis jirovecii pneumonia) AIDS-defining illness; coded after B20
C46.x Kaposi sarcoma (various subsites) AIDS-defining malignancy; coded with B20
R75Inconclusive laboratory evidence of HIVSerology inconclusive with no confirmed diagnosis; not active disease, so not B20
Z11.4Encounter for screening for HIVPatient seen to determine HIV status; a screening encounter, not a diagnosis
Z20.6Contact with and (suspected) exposure to HIVRecords HIV exposure, including post-exposure prophylaxis (PEP); no active disease
Z71.7HIV counselingCounseling tied to testing or positive results; pairs with screening, not B20
Z29.81Encounter for HIV pre-exposure prophylaxis (PrEP)Prevention encounter for an HIV-negative patient
B24Unspecified HIV disease (WHO ICD-10)Part of the B20-B24 range the US collapses into B20; not a valid US ICD-10-CM code

Several related codes sit outside a symptomatic diagnosis but come up constantly in HIV care. Use R75 when HIV serology is inconclusive and no confirmed diagnosis exists yet. Z11.4 is the HIV screening code for a patient seen to determine their status, and Z71.7 covers the HIV counseling that often goes with it.

If a patient reports possible contact, Z20.6 records exposure to HIV – the same code used for a post-exposure prophylaxis (PEP) encounter, since there is no distinct PEP code. For pre-exposure prophylaxis, ICD-10-CM added Z29.81 (encounter for HIV pre-exposure prophylaxis). None of these describe active HIV disease, so none is interchangeable with B20.

The sequencing logic used for chronic neurological codes such as G80.8 follows the same principal-and-manifestation pattern applied throughout Chapter 1. Practices can also use Check ICD-10 to confirm current code validity and inclusion terms before submitting claims.

Pro Tip

Run a quarterly audit of all B20 claims to verify each has at least one additional manifestation code. Claims with B20 as the only code should be reviewed – either the documentation supports an additional code, or the encounter may have been miscoded from Z21.

MS-DRG grouping and reimbursement context

For inpatient encounters, B20 is grouped within MS-DRG v43.0. The specific DRG assignment depends on the presence of a major complication or comorbidity (MCC), a complication or comorbidity (CC), or neither. This means the manifestation codes added alongside B20 directly affect the DRG weight and the reimbursement level for the admission.

Incomplete coding of HIV-related conditions, leaving B20 as the only code, typically results in a lower-weight DRG than the patient’s clinical complexity justifies. Under Medicare’s value-based care frameworks, this undermines documentation accuracy as much as revenue.

The American Hospital Association (AHA) Coding Clinic has addressed HIV/AIDS coding scenarios and recommends that coders work with clinical documentation improvement (CDI) specialists to ensure all manifestations are captured before claim submission.

Efficient claims management software that flags incomplete code sets at the point of submission can prevent these DRG downgrades before they reach the payer. Integrating this into the practice workflow rather than addressing it at appeal stage saves significant administrative time.

Practices focused on HIPAA compliance in primary care settings should treat CDI and claim accuracy as part of the same compliance program, not separate workstreams.

Automate claims and billing with Pabau
Automate claims and billing with Pabau

Conclusion

Accurate B20 versus Z21 coding depends on documentation as much as coding skill. Providers who document “symptomatic HIV” or “AIDS” give coders the foundation for correct code assignment. Providers who leave the record ambiguous hand the problem to coders, who then default to the safer but often incorrect Z21.

Proper sequencing with manifestation codes protects reimbursement and reflects the true clinical burden of the encounter.

Pabau’s clinical record tools and structured intake workflows help teams build the documentation habits that support correct B20 coding from the first encounter note. To see how Pabau supports infectious disease and complex-care documentation, book a demo with our team.

Continue your research

Continue your research

Need structured HIV intake documentation? Pabau digital intake forms let practices build symptom-capture workflows that pre-populate clinical notes for every HIV encounter.

Managing a sexual health or infectious disease practice? Pabau sexual health clinic software covers scheduling, records, and billing workflows specific to this specialty.

Want to reduce claim denials from coding errors? Pabau claims management software helps practices catch incomplete code sets before submission.

Frequently asked questions

What is ICD-10 Code B20 used for?

ICD-10 Code B20 is the billable diagnosis code for Human immunodeficiency virus [HIV] disease, used when a patient has symptomatic HIV infection or an AIDS diagnosis. It is not used for asymptomatic HIV carriers, who are coded with Z21 instead.

What is the difference between ICD-10 codes B20 and Z21?

B20 applies when the patient has symptomatic HIV disease or the provider documents AIDS; Z21 applies when the patient has confirmed HIV infection but no symptoms or HIV-related conditions. The two codes cannot appear on the same claim (Excludes 1 relationship).

Is B20 the same as an AIDS diagnosis?

Yes. Whenever a provider documents “AIDS,” ICD-10-CM guidelines require B20 to be assigned rather than Z21, regardless of the patient’s current symptom status or antiretroviral therapy response.

What additional codes must be used with B20?

ICD-10-CM instructs coders to add codes identifying all manifestations of HIV infection: opportunistic infections (e.g. cytomegalovirus B25.9, Pneumocystis jirovecii pneumonia B59), AIDS-defining malignancies (e.g. Kaposi sarcoma C46.x), and neurological complications (e.g. mild neurocognitive disorder F06.7). B20 should rarely appear as the sole code on an encounter with active HIV disease.

Is ICD-10 Code B20 billable?

Yes. B20 is a specific, billable ICD-10-CM code valid for reimbursement purposes. It is grouped within MS-DRG v43.0 for inpatient admissions, with DRG weight varying based on the presence of additional complication or comorbidity codes.

When should a provider use B20 instead of Z21?

Use B20 when the provider documents symptomatic HIV disease, AIDS, or any HIV-related opportunistic infection or condition. Use Z21 only when documentation confirms confirmed HIV infection with no active symptoms or associated conditions. If prior records show an AIDS diagnosis, use B20 at all future encounters regardless of current symptom presentation.

What is the ICD-10-CM code for HIV disease?

The ICD-10-CM code for HIV disease is B20 (Human immunodeficiency virus [HIV] disease), assigned when a patient has symptomatic HIV or a documented AIDS diagnosis. A patient who is HIV positive with no symptoms or related conditions is coded Z21 instead, so the HIV ICD-10 code you choose depends on whether the record documents active disease.

Which ICD-10 code applies to a history of HIV?

It depends on current status. Once a provider has documented HIV disease or an HIV-related illness, ICD-10-CM keeps that patient on B20 at every future encounter, with no reverting to a history code. A patient who is HIV positive but has never had symptomatic disease is coded Z21 for asymptomatic infection status. A personal history of HIV is recorded only when the infection no longer applies, which is rare with a lifelong condition.

×