ICD-10 Code for Hospice: Complete Coding Guide for 2027
November 20, 2026

Code Z51.5 is known as Encounter for hospice or palliative care from the ICD-10 Classification of Diseases. However, this is not the primary diagnosis code for a Medicare hospice claim. Instead, the hospice agency needs to use the code for the patient’s disease nearest to his/her terminal diagnosis.
The reason why it should be done so is that in case one uses an encounter code in place of the terminal disease code, one may experience claim denials.
The knowledge of the patient’s terminal disease, comorbidities, and Medicare sequence for physicians, coders, and billers is what will help in the appropriate coding.
This guide gives an explanation of the hospice ICD-10 codes, Z51.5, principal diagnosis coding rules, documentation, and billing errors as per the CMS criteria.
The primary ICD-10-CM code for hospice services is Z51.5 – Encounter for palliative care.
The code also applies to any encounter with hospice care.
There is a significant distinction in coding a hospice encounter versus the principal diagnosis when billing for hospice Medicare benefits.
| Coding Question | Correct Guidance |
|---|---|
| What is the ICD-10 code for hospice care? | Z51.5 |
| What does Z51.5 describe? | Encounter for palliative care, including hospice care |
| Can Z51.5 be the principal diagnosis on a Medicare hospice claim? | No |
| What is the hospice principal diagnosis? | The condition most closely related to the terminal prognosis |
| Can hospice claims include secondary diagnoses? | Yes, when appropriately documented and reportable |
| Are hospice and palliative care identical? | No, although their services overlap |
Brief coding solution: Apply code Z51.5 whenever it is relevant to indicate a palliative care encounter. In a Medicare hospice claim, assign the underlying terminal condition as the primary diagnosis code.
The CMS Principal Diagnosis Code Reporting Update explains why certain diagnosis codes cannot appear as the principal diagnosis on hospice claims.
Code Z51.5 falls under the class of encounters for aftercare and health services.
The code specifies an encounter that involves palliative services, including hospice.
It may be used to convey the reason for an encounter, though it does not specify the terminal condition of the patient.
Depending on the healthcare setting and documentation, Z51.5 may apply when a patient receives:
The proper sequencing depends on the specific service provided, the setting, relevant coding guidelines, and payer requirements.
For instance, the same patient with a consult for inpatient palliative care for advanced cancer can have Z51.5 coded as another diagnosis in case it is warranted.
Nevertheless, Z51.5 cannot take the place of the terminal diagnosis when billing Medicare hospice services.
Yes, Z51.5 is a legitimate, billable diagnosis code under the ICD-10-CM.
But just because it is billable does not necessarily mean it is an appropriate principal diagnosis for every claim.
For example, there are special coding guidelines for Medicare hospice claims.
Coding Z51.5 as the principal diagnosis on a Medicare hospice claim will not comply with these special guidelines.
Although hospice and palliative care share a focus on symptom relief and comfort, their eligibility and billing arrangements differ.
| Factor | Hospice Care | Palliative Care |
|---|---|---|
| Primary focus | Care for patients with terminal illnesses | Symptom relief and quality-of-life support during serious illness |
| Prognosis | Medicare generally requires a life expectancy of six months or less if the illness follows its normal course | No universal six-month prognosis requirement |
| Curative treatment | Medicare hospice election changes coverage arrangements for treatment related to the terminal illness | May accompany disease-directed treatment |
| ICD-10 coding | Terminal illness drives Medicare hospice principal diagnosis selection | Z51.5 may describe an appropriate palliative care encounter |
| Billing structure | Medicare hospice benefit and applicable hospice payment rules | Depends on the service, setting, and payer |
To the coder, the issue becomes not merely whether the patient is receiving care that is comfort-based.
Rather, it is whether the claim indicates Medicare hospice benefit service, palliative consult, or some other covered medical event.
Terminal diagnoses in hospice may include those of cancer, heart disease, lung diseases, neurology-related issues, and any other serious disease.
It should be noted that the diagnostic code should indicate the diagnosis of the provider and not simply the fact of the patient’s hospice enrollment.
Below are some examples of potential diagnoses in the hospice medical record.
| ICD-10-CM Code | Diagnosis | Coding Consideration |
|---|---|---|
| C34.90 | Malignant neoplasm of unspecified part of unspecified bronchus or lung | Use a more specific cancer site when documented |
| C25.9 | Malignant neoplasm of pancreas, unspecified | Verify site and current malignancy documentation |
| I50.22 | Chronic systolic (congestive) heart failure | Confirm heart failure type and chronicity |
| J44.9 | Chronic obstructive pulmonary disease, unspecified | Review documented pulmonary conditions and any required additional codes |
| G30.9 | Alzheimer’s disease, unspecified | Follow applicable instructions for associated dementia manifestations |
| N18.5 | Chronic kidney disease, stage 5 | Distinguish from end-stage renal disease and assess additional coding requirements |
| C78.7 | Secondary malignant neoplasm of liver and intrahepatic bile duct | Identify the primary malignancy when known and follow sequencing rules |
These are examples, not an approved list of hospice principal diagnoses. Clinical eligibility, code sequencing, and reportability must be evaluated individually.
For patients with terminal cancer, the patient’s record needs to include information regarding the type of cancer, sites involved, and any metastases.
For instance, an individual with terminal pancreas cancer can be coded as C25.9 where the specific site of the pancreas is unknown.
But it would not be correct to use an unspecified code if the physician provides enough details that indicate the need for a different code.
Patients that suffer from advanced heart failure or lung disease can be considered for hospice care provided there is a terminal prognosis certified by the doctor.
The diagnosis is not enough to satisfy eligibility criteria.
The supportive evidence might include deteriorated condition, worsening symptoms, treatment response, recent hospitalization, etc.
The coding for hospice dementia involves special consideration of the disease and its manifestations.
For instance, the coding for Alzheimer’s disease and dementia due to Alzheimer’s disease involves the use of various codes as per the guidelines of ICD-10-CM.
Dementia related to Parkinson’s disease is also another disease that involves sequencing of the underlying disease.
One should never assign a code for the manifestation of dementia as the principal diagnosis.
The most important diagnosis for the patient in the hospice must be the one that is the most relevant to his/her terminal prognosis.
CMS mandates that providers use the ICD-10-CM code set and Medicare Hospice claim submission guidelines.
Start with the physician’s certification of terminal illness.
The documentation should identify the medical condition supporting the prognosis and include appropriate clinical findings.
Identify the disease that most appropriately explains the terminal prognosis of the patient.
Do not use the symptom, overall deterioration, or encounter code, if the terminal condition has been definitely identified.
Go through the Alphabetical Index, Tabular List, and coding conventions.
In some cases, coders are required to sequence the underlying cause before its manifestation.
These guidelines override any preference in claim sequencing.
Specify other reportable diagnoses that arise from hospice assessments.
According to Medicare requirements, claims by hospices should cover relevant clinical diagnoses of patients, both related and unrelated, discovered through the assessment process.
Before sending in the claim, ensure that the selected code is appropriate to the date of service and is not included in the acceptable principal diagnosis list.
The CMS may deny any claim that contains prohibited principal diagnosis codes.
Not every diagnosis code that appears in a medical record can serve as the principal diagnosis on a Medicare hospice claim.
| Code or Condition | Common Problem | Correct Approach |
|---|---|---|
| Z51.5 – Encounter for palliative care | Encounter code used as hospice principal diagnosis | Report the terminal illness instead |
| Z66 – Do not resuscitate | Code describes resuscitation status rather than terminal illness | Report only when appropriate as an additional diagnosis |
| Debility | General decline does not adequately identify the terminal condition | Clarify and code the underlying condition |
| Adult failure to thrive | Inappropriate principal diagnosis selection under Medicare hospice rules | Identify the terminal illness |
| Manifestation codes | Underlying disease may require first sequencing | Follow code-first instructions |
| Nonspecific symptoms | Symptoms used despite an established definitive diagnosis | Report the supported definitive diagnosis |
Medicare’s MM13882 hospice coding update addresses unacceptable principal diagnoses, including debility and failure to thrive.
The practical lesson is simple: a documented symptom is not automatically an appropriate hospice principal diagnosis.
The following examples illustrate how clinical documentation affects code selection.
A patient elects hospice care because of advanced lung cancer. The physician documents the terminal malignancy and explains the supporting prognosis.
Coding approach: Select the appropriate lung cancer diagnosis code based on the documented site and clinical findings.
If the record supports C34.90, it may apply. However, a more specific code should be selected when the documentation supports one.
Do not substitute Z51.5 for the terminal cancer diagnosis.
Accurate diagnosis coding cannot compensate for incomplete eligibility documentation.
Hospice providers must maintain records supporting the physician’s determination that the patient has a life expectancy of six months or less if the terminal illness runs its normal course.
The documentation should include:
According to CMS, the clinical narrative is supposed to state the patient’s individual situation rather than use a standard phrase.
For instance, stating that the patient has advanced heart failure does not necessarily indicate his terminal status.
The physician should state disease progression, functional changes, symptoms, complications, and other facts in support of the prognosis.
In case of Medicare, the first two hospice benefit periods are for 90 days each, after which there are an unlimited number of 60-day periods if the patient still meets the criteria.
In the initial certification process, the appropriate hospice physician, along with the designated attending physician of the patient if any, are involved.
The later benefit periods involve recertification by the appropriate hospice physician.
Face-to-face meeting of the patient is necessary for third and other later benefit periods before recertification.
The CMS Hospice Services compliance guidance details these requirements.
Hospice billing mistakes are not only restricted to the choice of diagnoses.
Other types of mistakes in documenting, certifying, eligibility, and claims reporting might affect the payment process as well.
Based on CMS’ 2024 Supplemental Data on Improper Payments for Medicare Fee-for-Service Program, non-hospital-based hospice services have a 6.8% improper payment rate, which equals roughly $1.6 billion in projected improper payments.
Insufficient documentation was a factor in 63% of improper payments found in non-hospital-based hospice services.
It is essential to mention that these numbers do not mean denial rates at all.
1. Incorrect principal diagnosis
The claim contains Z51.5, a prohibited diagnosis, or another condition that does not satisfy principal diagnosis requirements.
2. Missing terminal illness documentation
The medical record does not adequately explain the patient’s six-month prognosis.
3. Incorrect diagnosis sequencing
The billing team overlooks code-first or other ICD-10-CM instructions.
4. Incomplete certification records
Required certification information, signatures, dates, or supporting narratives are missing.
5. Unclear related and unrelated conditions
The record does not clearly explain how additional conditions relate to the terminal illness.
6. Incorrect hospice election billing
Claims contain overlapping services or lack appropriate documentation and billing indicators for services during the hospice election.
Hospice coding teams should also understand the distinction between diagnosis codes and professional billing modifiers.
| Modifier | Meaning | Common Application |
|---|---|---|
| GV | Attending physician not employed or paid under arrangement by the patient’s hospice | Eligible services related to the terminal illness performed by the patient-designated attending physician |
| GW | Service not related to the hospice patient’s terminal condition | Appropriate separately billed professional services unrelated to the terminal illness |
For certain institutional claims, condition code 07 may identify services unrelated to the terminal illness.
These modifiers do not replace diagnosis coding requirements or automatically establish payment eligibility.
CMS clarified their application in its 2025 hospice claim reporting update.
Hospice billing teams should distinguish between the calendar year and the ICD-10-CM fiscal year.
| Date of Service | Applicable ICD-10-CM Version |
|---|---|
| January 1–March 31, 2026 | FY 2026 code set |
| April 1–September 30, 2026 | FY 2026 code set, including applicable April updates |
| October 1–December 31, 2026 | FY 2027 code set |
| January 1–September 30, 2027 | FY 2027 code set, including subsequent applicable updates |
The CDC ICD-10-CM files identify the applicable annual diagnosis code releases.
Hospice coding teams should verify the code set for the claim’s date of service, review current instructions, and update claim-editing software accordingly.
Do not assume that a code valid earlier in 2026 remains unchanged for services performed after October 1.
Before submitting a Medicare hospice claim, complete these checks:
Identify the documented terminal illness.
Confirm that the principal diagnosis supports the terminal prognosis.
Verify the ICD-10-CM code against the date of service.
Review code-first, additional-code, and exclusion instructions.
Check the current unacceptable principal diagnosis list.
Validate relevant secondary diagnoses and documented relationships.
Confirm certification and recertification documentation.
Verify hospice election dates and claim details.
Review any applicable professional modifiers or institutional condition codes.
Resolve documentation discrepancies before submission.
A consistent review process helps hospice organizations identify preventable errors before claims reach Medicare.
Billing for hospice involves precise integration of clinical documentation, proper use of diagnosis codes, certification processes, and submission of the claim to Medicare.
Minor differences may cause undue changes, delays, and additional work.
Maryland Medical Billing facilitates the handling of complicated revenue cycle duties by health care facilities in Maryland via coding services, claim handling, denial processing, and accounts receivable services.
We concentrate on preparing accurate claims, streamlined billing procedures, and proper identification of reimbursement issues.
Whether your organization needs assistance with hospice-related billing workflows or broader revenue cycle operations, dependable billing support can help reduce the workload on your internal team.
Request Your Free Medical Billing Assessment
Z51.5 represents an encounter for palliative care and includes hospice care encounters. However, Medicare hospice claims require the terminal illness as the principal diagnosis rather than Z51.5.
No. Medicare hospice benefit claims cannot use Z51.5 as the principal diagnosis. Providers must report the appropriate diagnosis most closely related to the patient’s terminal prognosis.
There is no single ICD-10-CM code representing every terminal illness. Providers should assign the specific diagnosis responsible for the patient’s terminal prognosis, such as a documented malignancy or advanced organ disease.
Codes may include C25.9 for pancreatic cancer, I50.22 for chronic systolic heart failure, and J44.9 for COPD, depending on the documented conditions. Each code must be evaluated for specificity, sequencing, and suitability as a principal diagnosis.
No. Z66 identifies do-not-resuscitate status when documented and appropriate to report. It does not establish hospice eligibility, and it cannot replace the terminal illness diagnosis on a Medicare hospice claim.
Medicare may return a claim containing an unacceptable principal diagnosis for correction. Depending on the issue, other claim problems may cause payment delays or denials. Reviewing documentation and sequencing before submission helps reduce these risks.
Understanding the correct ICD-10 code for hospice requires more than identifying Z51.5.
While Z51.5 describes an encounter for palliative care, Medicare hospice claims must identify the condition most closely related to the patient’s terminal prognosis.
For healthcare providers and billing teams, the priorities are clear: select the correct terminal diagnosis, follow ICD-10-CM sequencing requirements, document eligibility, and review claim details before submission.
Consistent coding practices help reduce preventable billing problems and support a more reliable hospice revenue cycle.