# Lexical associations can characterize clinical documentation trends related to palliative care and metastatic cancer

**Authors:** Hao Yuan Yang, Karthik Raghunathan, Eric Widera, Steven Z. Pantilat, Teva Brender, Timothy A. Heintz, Edie Espejo, John Boscardin, Hunter Mills, Albert Lee, Jacob Berchuck, Julien Cobert

PMC · DOI: 10.1038/s41598-025-01828-z · Scientific Reports · 2025-05-18

## TL;DR

This study uses natural language processing to show that terms related to palliative care and metastatic cancer were documented together less frequently over time.

## Contribution

The study introduces a novel approach to analyzing clinical documentation trends using unsupervised language models.

## Key findings

- Terms for metastatic cancer and palliative care appeared in similar contexts in clinical notes each year.
- The relationship between these terms weakened over time, as shown by decreasing cosine similarities.
- Similar trends were observed when models were retrained on patients with a metastatic cancer diagnosis code.

## Abstract

Palliative care is known to improve quality of life in advanced cancer. Natural language processing offers insights to how documentation around palliative care in relation to metastatic cancer has changed. We analyzed inpatient clinical notes using unsupervised language models that learn how words related to metastatic cancer (e.g. “mets”, “metastases”) and palliative care (e.g. “palliative care”, “pal care”) appear relationally and change over time. We included any note from adults hospitalized at the University of California, San Francisco system. The primary outcome was how similarly terms related to metastatic cancer and palliative care appeared in notes using a mathematical approach (cosine similarity). We used word2vec to model language numerically as vectors. Relational data between vectors was captured using cosine similarity. We performed linear regression to identify changes in these relationships of terms over time. As a sensitivity analysis, we performed the same analysis per year restricted only to patients with an ICD-9/10 diagnosis code for metastatic cancer. Metastatic cancer and palliative care terms appeared in similar contexts in clinical notes each year, suggesting a close relationship in documentation. However, over time, this relationship weakened, with these terms becoming less commonly used together as measured by cosine similarities. We found similar trends when we retrained models just on patients with a diagnosis code for metastatic cancer. Text in clinical notes offers unique insights into how medical providers document palliative care in patients with advanced malignancies and how these documentation practices evolve over time.

## Linked entities

- **Diseases:** metastatic cancer (MONDO:0024880)

## Full-text entities

- **Diseases:** metastases (MESH:D009362), Metastatic cancer (MESH:D009369)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12086223/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12086223/full.md

## References

4 references — full list in the complete paper: https://tomesphere.com/paper/PMC12086223/full.md

---
Source: https://tomesphere.com/paper/PMC12086223