<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMI</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id>
      <journal-title>JMIR Medical Informatics</journal-title>
      <issn pub-type="epub">2291-9694</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v14i1e96744</article-id>
      <article-id pub-id-type="pmid">43138608</article-id>
      <article-id pub-id-type="doi">10.2196/96744</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Large Language Models for Identifying Patient Goals and Preferences in Patient Portal Messages: Comparative Evaluation Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Coristine</surname>
            <given-names>Andrew</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Yeow</surname>
            <given-names>Mei-Ean</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Hosch</surname>
            <given-names>René</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Fodeh</surname>
            <given-names>Samah</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>Department of Emergency Medicine</institution>
            <institution>Yale University</institution>
            <addr-line>464 Congress Ave</addr-line>
            <addr-line>New Haven, CT, 06519</addr-line>
            <country>United States</country>
            <phone>1 2037375806</phone>
            <email>samah.fodeh@yale.edu</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-4664-3143</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author">
          <name name-style="western">
            <surname>Wang</surname>
            <given-names>Yan</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-1036-9365</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Jones</surname>
            <given-names>Makoto</given-names>
          </name>
          <degrees>MD</degrees>
          <xref rid="aff2" ref-type="aff">2</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-5580-6739</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author">
          <name name-style="western">
            <surname>Nebeker</surname>
            <given-names>Jonathan</given-names>
          </name>
          <degrees>MD</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-5355-5008</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Department of Emergency Medicine</institution>
        <institution>Yale University</institution>
        <addr-line>New Haven, CT</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff2">
        <label>2</label>
        <institution>VA Salt Lake City Healthcare System</institution>
        <addr-line>Salt Lake City, UT</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff3">
        <label>3</label>
        <institution>Office of Clinical Informatics</institution>
        <institution>United States Department of Veterans Affairs</institution>
        <addr-line>Washington, DC</addr-line>
        <country>United States</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Samah Fodeh <email>samah.fodeh@yale.edu</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>4</day>
        <month>12</month>
        <year>2026</year>
      </pub-date>
      <volume>14</volume>
      <elocation-id>e96744</elocation-id>
      <history>
        <date date-type="received">
          <day>31</day>
          <month>3</month>
          <year>2026</year>
        </date>
        <date date-type="rev-request">
          <day>21</day>
          <month>7</month>
          <year>2026</year>
        </date>
        <date date-type="rev-recd">
          <day>4</day>
          <month>11</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>9</day>
          <month>11</month>
          <year>2026</year>
        </date>
      </history>
      <copyright-statement>©Samah Fodeh, Yan Wang, Makoto Jones, Jonathan Nebeker. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 04.12.2026.</copyright-statement>
      <copyright-year>2026</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="https://medinform.jmir.org/2026/1/e96744" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>Recognizing what is most important to patients, including their goals and preferences, helps inform treatment decisions that are not only clinically effective but also personally meaningful. Large language models (LLMs) may help identify this information in unstructured communication between patients and health care providers.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>This study compared 3 LLMs for identifying predefined patient goal and preference categories and evaluated whether fine-tuning improved performance.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We analyzed a random sample of 1000 secure portal messages from patients with depression or substance use disorder. GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct segmented the messages and assigned predefined goal or preference categories. Model outputs were examined through human review and pairwise span overlap. Llama-3.3-70B-Instruct was subsequently fine-tuned and evaluated on a held-out annotated set.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>There was considerable variation in how the models interpreted and extracted information. Llama-3.3-70B-Instruct captured the broadest range of functional and psychosocial goals, GPT-4o-mini produced fewer candidates with narrower coverage, and DeepSeek showed intermediate behavior and the greatest overlap with Llama across all 22 populated categories (micro-<italic>F</italic><sub>1</sub>-score=0.350). Fine-tuned Llama increased candidate-verification micro-<italic>F</italic><sub>1</sub>-score from 0.484 to 0.548 on the 217-example held-out set, below the constant-no majority-class baseline of 0.728. Macro-<italic>F</italic><sub>1</sub>-score was higher for fine-tuned Llama than for this baseline (0.524 vs 0.421).</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>The evaluated LLMs differed in how they identified patient goals and preferences from portal communication. Llama provided the broadest candidate coverage, whereas DeepSeek overlapped most closely with Llama across all 22 populated categories (micro-<italic>F</italic><sub>1</sub>-score=0.350). Fine-tuning increased candidate-verification micro-<italic>F</italic><sub>1</sub>-score relative to untuned Llama but remained below the majority-class baseline (0.548 vs 0.728).</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>fine-tuning</kwd>
        <kwd>information extraction</kwd>
        <kwd>large language model</kwd>
        <kwd>LLM</kwd>
        <kwd>natural language processing</kwd>
        <kwd>patient goals</kwd>
        <kwd>patient portals</kwd>
        <kwd>patient preferences</kwd>
        <kwd>prompt engineering</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <sec>
        <title>Overview</title>
        <p>Integrating patients’ goals and preferences into clinical care is vital to achieving truly patient-centered outcomes. Patients’ goals and preferences in clinical management often include improving measures such as blood pressure, glucose levels, cholesterol, BMI, or tumor burden. While these clinical goals indicate progress toward better health outcomes, they do not fully capture what patients consider meaningful in achieving broader personal goals and supporting their ability to function, maintain independence, and live well. For example, a patient may value the ability to walk to the park with their grandchildren or return to work consistently just as much as achieving a lower blood pressure reading. Understanding what matters most to patients through their goals and preferences helps guide treatment decisions that are both clinically effective and personally meaningful, rather than focusing solely on biomarkers or disease metrics [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref6">6</xref>].</p>
      </sec>
      <sec>
        <title>Patient Goals and Preferences</title>
        <p>Patient goals refer to the specific, desired outcomes that patients hope to achieve through health care. These goals are functional, health-related, or life-oriented targets that patients identify as important to their well-being or quality of life. Goals can be measurable or observable. Examples of patients’ goals include avoiding stroke, returning to work, caregiving for others, and living independently at home. Goals are actionable and can help guide treatment planning, and they often require ongoing assessment and monitoring over time [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref6">6</xref>].</p>
        <p>Patient preferences, on the other hand, refer to the individual’s likes and dislikes regarding the process and context of their care. Preferences reflect how a person wants care to be delivered and what trade-offs they are (or are not) willing to make. For example, a patient preference could be related to using oral medications over injections, wanting to avoid hospitalization or intensive care, or choosing hospice over aggressive treatment at the end of life. Preferences are subjective and can help shape choices between options, especially when more than one medically appropriate path exists [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref6">6</xref>].</p>
      </sec>
      <sec>
        <title>Study Context</title>
        <p>This study advances patient-centered research by examining the use of large language models (LLMs) to identify patient goals and preferences from unstructured portal communication. Whereas many approaches rely on structured data or manual abstraction, this work provides an initial step toward automating the extraction of patient-valued outcomes beyond biomarkers or disease metrics.</p>
        <p>Patient goal elicitation is often incomplete and inconsistent because patients may not fully know or articulate their goals and preferences at a single point in time. Collecting this information naturally over time and integrating it into a dynamic, longitudinal view may provide a useful approach for representing changing priorities. This study does not integrate the identified information into care plans or clinical decision support, but it establishes a foundation for making patient goals and preferences more accessible for future patient-centered applications.</p>
      </sec>
      <sec>
        <title>Background and Related Work</title>
        <sec>
          <title>Overview</title>
          <p>Patients express diverse health goals and care preferences, some of which are measurable in the electronic health record—such as blood pressure control and hemoglobin A<sub>1c</sub> stabilization. These goals gain greater significance when linked to what matters most to patients, such as staying active with family and minimizing symptoms that disrupt daily life. Beyond physiological outcomes, patients often prioritize emotional well-being and preferred approaches to care, such as receiving palliative support. Achieving these goals requires shared decision-making and systematic documentation, yet scalable methods to routinely capture this information in clinical care, as well as to extract it from health records, remain limited. Prior clinical natural language processing studies have identified goals-of-care documentation, and recent work has applied LLMs to clinical information extraction and patient portal tasks; however, direct comparison for this goal taxonomy remains limited. Prior work by Earp et al [<xref ref-type="bibr" rid="ref7">7</xref>] explored using machine learning to predict likely patient preferences in scenarios involving substituted judgment. In contrast, our study focuses on applying LLMs to extract patient goals and preferences from portal communications involving patients, offering a direct approach to understanding what matters most to patients at scale [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref17">17</xref>].</p>
        </sec>
        <sec>
          <title>Quantifiable Goals and Preferences</title>
          <p>Many functional goals and preferences are quantifiable and can be directly monitored using data available in the electronic health record, such as preventing weight gain, reducing pain, stabilizing hemoglobin A<sub>1c</sub> levels, minimizing hospital admissions, and controlling blood pressure. These goals can take on deeper significance when tied to individual patients’ personal goals, such as staying active with family or managing symptoms that affect work performance. Other potentially quantifiable goals, if tracked consistently over time, include the ability to perform activities of daily living (ADLs; ie, eating, dressing, and bathing), maintaining memory and cognitive clarity, decreasing the frequency of urination (especially in diabetics), avoiding falls, preserving strength and energy, overcoming fatigue, and avoiding assistive devices such as walkers or oxygen tanks. Other patients hope to return to or continue working consistently, attend social events, or perform caregiving duties. Reducing medication side effects (eg, dizziness or sleep disturbance) is another common preference that may not always be prioritized by clinicians but is deeply important to patients. Patients also express a desire for stability in their emotional and psychological well-being by addressing symptoms such as anxiety, depression, or mood changes [<xref ref-type="bibr" rid="ref18">18</xref>-<xref ref-type="bibr" rid="ref26">26</xref>].</p>
        </sec>
        <sec>
          <title>Nonquantifiable Goals and Preferences</title>
          <p>Nonquantifiable goals and preferences are equally essential. For example, many patients express preferences related to how and where they age or receive care, such as aging in place rather than in institutional settings or receiving only supportive care in advanced stages of illness. Many prefer quality of life over extending life and avoid life-sustaining measures if these would lead to long-term disability or substantial discomfort. End-of-life preferences also vary, with some patients preferring hospice or end-of-life care in a facility, while others prefer hospice care at home surrounded by family. Some are open to short-term stays in nursing homes for help with ADLs, while others may plan for long-term residence if independence cannot be maintained. Incorporating these diverse goals and preferences into clinical care requires active listening and thoughtful navigation. Ultimately, tailoring care to individual preferences not only improves adherence and satisfaction but also ensures that health care remains aligned with what matters most in patients’ lives [<xref ref-type="bibr" rid="ref18">18</xref>-<xref ref-type="bibr" rid="ref26">26</xref>].</p>
        </sec>
      </sec>
      <sec>
        <title>Language Models for Goals and Preferences</title>
        <p>A growing body of research has explored natural language processing methods for extracting patient goals and preferences from clinical documentation. Early efforts used rules and keyword matching to identify advance care planning and goals-of-care documentation, while later studies applied supervised classifiers and machine-learning approaches to electronic health records [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref10">10</xref>]. Natural language processing has also been used to analyze patient-clinician communication and identify primary concerns in secure portal messages [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>]. These studies demonstrate the potential of unstructured clinical text while also showing the importance of task-specific reference labels and carefully defined clinical settings.</p>
        <p>Recent peer-reviewed studies have evaluated LLMs for clinical information extraction, structured medical information retrieval, electronic health record feature extraction, and emergency triage of portal messages [<xref ref-type="bibr" rid="ref13">13</xref>-<xref ref-type="bibr" rid="ref17">17</xref>]. Other work has used machine learning to predict likely patient preferences when substituted judgment is required [<xref ref-type="bibr" rid="ref7">7</xref>]; that approach infers preferences rather than extracting goals expressed in clinical communication. Direct comparative evaluation of LLMs for the goal and preference taxonomy used in this study remains limited. Our work therefore examines model behavior on unstructured portal communication while separating extraction volume and intermodel agreement from correctness.</p>
      </sec>
      <sec>
        <title>Study Aim</title>
        <p>This study aimed to compare the extraction volume, category distribution, human-review findings, and intermodel overlap of GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct when applied to secure portal communications and to evaluate whether fine-tuning improved Llama candidate verification. We hypothesized that the models would differ in the number and types of candidate goals identified and that fine-tuning would improve verification performance. The study did not evaluate integration into clinical workflows.</p>
      </sec>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Study Sample</title>
        <p>The dataset consisted of secure messages exchanged asynchronously between patients and health care providers through the patient portal during 2021-2022. The source cohort included patients diagnosed with depression or substance use disorder. A separate random-sampling procedure selected 1000 patients and 1 secure message per patient for analysis. Messages included communications directed to patients and communications originating from patients, as represented by the TO_PAT direction field. Complete messages (not segmented sentences) were supplied to the models, which performed their own segmentation.</p>
        <p>The messages varied in length and structure and often contained informal or conversational language, abbreviations, and multiple concerns within a single communication. This variability reflects the communication style encountered in routine portal use and motivated evaluation of models capable of interpreting context and segmenting complete messages. <xref ref-type="table" rid="table1">Table 1</xref> presents the demographic characteristics of the 1000-patient sample.</p>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>Demographic characteristics of 1000 patients with depression or substance use disorder whose randomly selected secure portal messages were included in this retrospective study, 2021-2022.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="30"/>
            <col width="660"/>
            <col width="0"/>
            <col width="310"/>
            <thead>
              <tr valign="top">
                <td colspan="3">Category</td>
                <td>Patients, n (%)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td colspan="4">
                  <bold>Gender</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Female</td>
                <td colspan="2">672 (67.2)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Male</td>
                <td colspan="2">328 (32.8)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Race</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>White</td>
                <td colspan="2">783 (78.3)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Black or African American</td>
                <td colspan="2">97 (9.7)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Asian</td>
                <td colspan="2">17 (1.7)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Other</td>
                <td colspan="2">103 (10.3)</td>
              </tr>
              <tr valign="top">
                <td colspan="4">
                  <bold>Age (years)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>18-34</td>
                <td colspan="2">152 (15.2)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>35-49</td>
                <td colspan="2">240 (24)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>50-64</td>
                <td colspan="2">284 (28.4)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>≥65</td>
                <td colspan="2">324 (32.4)</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec>
        <title>Ethical Considerations</title>
        <p>The study was conducted in accordance with institutional review board policies and federal regulations governing human-subject research at the Department of Veterans Affairs and Yale University. Use of secure messaging data to analyze the content and nature of patient communication was approved by an institutional review board under protocol number 2000038687. The institutional review board granted a waiver of informed consent and of Health Insurance Portability and Accountability Act (HIPAA) authorization because the study was a retrospective secondary analysis of existing records that posed no more than minimal risk and could not practicably have been conducted with individual consent. The analyzed messages were not deidentified because the message text was the object of analysis. All data were stored and analyzed within a secure, access-controlled Department of Veterans Affairs research computing environment available only to approved study personnel. Llama-3.3-70B-Instruct and DeepSeek-R1-Distill-Llama-70B were run locally within this environment, and GPT-4o-mini was accessed through a Department of Veterans Affairs–approved Azure OpenAI service under which submitted data are not retained or used for model training. No participants were recruited or contacted, and no compensation was provided. Results are reported in aggregate, and no participant images or direct quotations are included in the manuscript or <xref ref-type="supplementary-material" rid="app1">Multimedia Appendices 1</xref>-<xref ref-type="supplementary-material" rid="app3">3</xref>.</p>
      </sec>
      <sec>
        <title>Categories of Goals and Preferences</title>
        <p>Patient goals and preferences span several clinical domains, including symptom, functional, psychosocial, and care-preference domains. Some describe symptom control, such as reducing pain, fatigue, urinary frequency, or symptoms of depression and anxiety. Others concern day-to-day function, including maintaining independence, performing ADLs, working consistently, preserving strength, and avoiding assistive devices. Care preferences may concern the desired approach to treatment, hospitalization, hospice or palliative care, place of care, and the balance between quality and length of life. These concepts can overlap; for example, maintaining independence may coexist with the ability to perform ADLs.</p>
        <p>The extraction prompt contained 29 predefined goal and preference labels plus “others” (30 total labels). Each model-generated unit received exactly 1 label. <xref ref-type="boxed-text" rid="box1">Textbox 1</xref> provides the single short reporting-label set used consistently in all tables and figures. These reporting labels are included for clarity and were not additional model instructions. <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> maps the reporting labels to the verbatim prompt labels.</p>
        <boxed-text id="box1" position="float">
          <title>Short reporting labels and plain-language descriptions for the 29 patient-goal and preference labels used in this retrospective portal-message study. ADL indicates activity of daily living; <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> provides the verbatim prompt labels.</title>
          <p>
            <bold>Improve day-to-day symptoms</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Effectively control symptoms such as fatigue, dizziness, or frequent urination to minimize their effect on daily functioning and work.</p>
            </list-item>
          </list>
          <p>
            <bold>Aware/knowledgeable/compassionate doctor</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer a physician who understands the patient’s condition and provides knowledgeable, attentive, and compassionate care.</p>
            </list-item>
          </list>
          <p>
            <bold>Reduce pain</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Reduce physical pain and its interference with daily activities and quality of life.</p>
            </list-item>
          </list>
          <p>
            <bold>Reduce depression/anxiety symptoms</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Address and alleviate anxiety, depression, or other mood symptoms that affect well-being and daily life.</p>
            </list-item>
          </list>
          <p>
            <bold>Slow disease progression</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Delay disease progression.</p>
            </list-item>
          </list>
          <p>
            <bold>Decrease blood pressure</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Lower and manage blood pressure to support health and reduce complications.</p>
            </list-item>
          </list>
          <p>
            <bold>Prevent weight gain</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prevent undesirable weight gain and support maintenance of a healthy weight.</p>
            </list-item>
          </list>
          <p>
            <bold>Reduce fatigue</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Reduce persistent fatigue and improve the energy needed for daily activities.</p>
            </list-item>
          </list>
          <p>
            <bold>Maintain independence</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Maintain independence in mobility, self-care, and everyday decision-making.</p>
            </list-item>
          </list>
          <p>
            <bold>Avoid strength/energy loss</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Preserve physical strength and energy and prevent functional decline.</p>
            </list-item>
          </list>
          <p>
            <bold>Work consistently</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Support the patient’s ability to maintain regular employment and attend work consistently.</p>
            </list-item>
          </list>
          <p>
            <bold>ADL capability</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Preserve the ability to perform activities of daily living, including eating, dressing, and bathing.</p>
            </list-item>
          </list>
          <p>
            <bold>Reduce hospital admissions</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prevent avoidable hospitalization or readmission and support care outside the hospital when appropriate.</p>
            </list-item>
          </list>
          <p>
            <bold>Avoid assistive devices</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Maintain function without, or delay reliance on, mobility or other assistive devices.</p>
            </list-item>
          </list>
          <p>
            <bold>Avoid aggressive intervention without family interaction</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer meaningful interaction over aggressive intervention in severe illness.</p>
            </list-item>
          </list>
          <p>
            <bold>Decrease urination frequency</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Reduce urinary frequency and its disruption of sleep or daily activities.</p>
            </list-item>
          </list>
          <p>
            <bold>Improve balance</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Improve balance and stability and reduce the risk of falls.</p>
            </list-item>
          </list>
          <p>
            <bold>Recognize/communicate with family</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Preserve recognition of and communication with family.</p>
            </list-item>
          </list>
          <p>
            <bold>Maintain/improve memory</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Preserve or improve memory, cognitive function, and mental clarity.</p>
            </list-item>
          </list>
          <p>
            <bold>Maintain normal sex life</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Preserve sexual function or activity.</p>
            </list-item>
          </list>
          <p>
            <bold>Seek palliative care consultation</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer consultation with palliative care.</p>
            </list-item>
          </list>
          <p>
            <bold>Age in place</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Remain at home or in the community while aging.</p>
            </list-item>
          </list>
          <p>
            <bold>Prefer quality over length of life</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prioritize quality over length of life.</p>
            </list-item>
          </list>
          <p>
            <bold>Accept life support if no long-term disability</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Accept life-sustaining treatment subject to a functional-outcome condition.</p>
            </list-item>
          </list>
          <p>
            <bold>Prefer hospice after treatment failure</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer hospice after treatment failure.</p>
            </list-item>
          </list>
          <p>
            <bold>Prefer death at home</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer home as the place of death.</p>
            </list-item>
          </list>
          <p>
            <bold>Short-term nursing-home ADL support</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Accept a short nursing-home stay for assistance.</p>
            </list-item>
          </list>
          <p>
            <bold>Long-term nursing-home ADL support</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Accept long-term nursing-home residence for assistance.</p>
            </list-item>
          </list>
          <p>
            <bold>Extend life while heart is beating</bold>
          </p>
          <list list-type="bullet">
            <list-item>
              <p>Prefer continued life extension.</p>
            </list-item>
          </list>
        </boxed-text>
      </sec>
      <sec>
        <title>LLM Models and Prompt Engineering</title>
        <sec>
          <title>Overview</title>
          <p>We selected GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct to compare a compact proprietary model with 2 open-weight 70-billion-parameter models representing different development approaches [<xref ref-type="bibr" rid="ref27">27</xref>-<xref ref-type="bibr" rid="ref29">29</xref>]. These models provided a practical comparison of instruction-following and distilled reasoning architectures within the study workflow; the comparison was not intended to cover all contemporary LLMs.</p>
        </sec>
        <sec>
          <title>GPT-4o-mini</title>
          <p>GPT-4o-mini is a compact proprietary model developed by OpenAI for efficient instruction following and text-processing tasks [<xref ref-type="bibr" rid="ref27">27</xref>]. Its ability to follow structured prompts and return schema-constrained output made it a practical model for identifying and categorizing goals and preferences in portal messages. It was accessed through the OpenAI chat-completions interface with temperature 0, JSON response formatting, a function schema enumerating all categories, and forced function selection. Maximum tokens and <italic>top_p</italic> were not set in the recorded call. The dated model snapshot and inference date were not recorded.</p>
        </sec>
        <sec>
          <title>Llama-3.3-70B-Instruct</title>
          <p>Llama-3.3-70B-Instruct is an open-weight, multilingual, instruction-tuned 70-billion-parameter model released by Meta [<xref ref-type="bibr" rid="ref28">28</xref>]. Its instruction tuning and capacity for contextual language understanding made it suitable for extracting functional, psychosocial, and care-preference concepts from conversational clinical text. Saved run records dated May 20, 2025, show deterministic decoding (do_sample=False), temperature 0, a maximum of 1024 generated tokens, and JSON_END as a stopping string.</p>
        </sec>
        <sec>
          <title>DeepSeek-R1-Distill-Llama-70B</title>
          <p>DeepSeek-R1-Distill-Llama-70B is a 70-billion-parameter model distilled from DeepSeek-R1 using a Llama-family base [<xref ref-type="bibr" rid="ref29">29</xref>]. Distillation was intended to retain reasoning and instruction-following capabilities in a model that could be run in the local workflow, making it relevant for structured information extraction. The retained run records show the same local decoding settings used for Llama-3.3-70B-Instruct. Exact local checkpoint revisions, inference framework and version, batch settings, hardware, and computational cost were not recorded.</p>
        </sec>
        <sec>
          <title>Prompt and Segmentation</title>
          <p>Prompt engineering was used to provide a consistent clinical task definition across the 3 models. Complete communications (not presegmented sentences) were supplied to each model. The prompt instructed the model to identify minimal meaningful sentences or clauses, determine whether each unit expressed a patient goal or preference, and assign exactly 1 label from 29 predefined categories or “others.” This standardized format supported comparison across models while allowing each model to perform its own segmentation. The “others” label provided a fallback for nonclinical or unmatched content, although the single-label requirement could not represent statements belonging to multiple overlapping categories. The complete prompt is reproduced in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p>
        </sec>
        <sec>
          <title>Output Parsing and Postprocessing</title>
          <p>Each model independently segmented the same 1000 complete communications. The parsing pipeline yielded 6645 analysis units for GPT-4o-mini, 4817 for DeepSeek-R1-Distill-Llama-70B, and 5546 for Llama-3.3-70B-Instruct. Units labeled “others” were excluded from category-specific candidate analyses. Under the saved strict parser, an output that did not yield a recognized list of category-span objects was replaced by 1 “others/none” default record; this occurred for 52 DeepSeek communications and 4 Llama communications. All 29 predefined categories were retained. Outputs outside that label pool were excluded: 2 DeepSeek units and 4 Llama units.</p>
        </sec>
      </sec>
      <sec>
        <title>Human Evaluation of LLM-Identified Patient Goals and Preferences</title>
        <p>To assess whether extracted spans supported their assigned clinical categories, 2 reviewers with clinical natural language processing experience independently evaluated model-identified spans using the category definitions in <xref ref-type="boxed-text" rid="box1">Textbox 1</xref>. For each model, 274 candidate category-span pairs were selected by stratified random sampling across represented categories, with the allocation reflecting the model’s candidate distribution. Before review, the reviewers received an orientation to the goal and preference definitions and the yes/no decision rule. A span was labeled “yes” when its wording supported the assigned category and “no” when it did not. Reviewers necessarily viewed the assigned category but were blinded to each other’s decisions during independent evaluation; model identity was not used in the decision rule.</p>
        <p>Joint acceptance was the number of spans labeled yes by both reviewers. Observed agreement captured the proportion of all 274 decisions for which the reviewers gave the same yes/no judgment. Given a 2 × 2 table with a (yes/yes), b (yes/no), c (no/yes), d (no/no), and N=a+b+c+d, observed agreement was as follows:</p>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig4.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <p>Because observed agreement can be inflated by agreement expected from the reviewers’ marginal response distributions, Cohen κ was also calculated. Expected agreement was as follows:</p>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig5.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <p>and Cohen κ was as follows:</p>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig6.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <p>Cohen κ ranges from −1 to 1. Because review was limited to model-selected candidates, this evaluation assesses the reproducibility of candidate verification and does not measure false negatives or end-to-end recall.</p>
      </sec>
      <sec>
        <title>Pairwise Model Evaluation</title>
        <p>Pairwise evaluation quantified the extent to which 2 models identified similar spans for the same goal or preference category. Exact string matching would treat small differences in span boundaries or wording as disagreement, so token-level Jaccard similarity was used to provide a soft comparison. Every parsed candidate unit was retained, including duplicate text, so category counts and pairwise denominators corresponded exactly to <xref ref-type="table" rid="table2">Table 2</xref>. The 22 categories populated by at least 1 model were evaluated.</p>
        <p>For 2 spans represented by lowercased whitespace-token sets, token-level Jaccard similarity was defined as the size of the token intersection divided by the size of the token union. Within each category, spans were sorted deterministically and paired greedily without reuse. For each span from the first model, the unmatched span from the second model with the highest Jaccard similarity was selected when similarity was at least 0.6; deterministic lexical ordering resolved ties. The 0.6 threshold permits modest boundary and wording differences while requiring a majority of unique tokens to overlap.</p>
        <p>For span sets S1 and S2 and matched-pair count M, as follows:</p>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig7.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig8.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <disp-formula>
          <graphic xlink:href="medinform_v14i1e96744_fig9.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </disp-formula>
        <p>In every reported pair, the first named model supplies S1 and the second named model supplies S2. These directional terms describe pairwise overlap rather than estimates of accuracy, clinical validity, or recall against an independent human gold standard.</p>
        <p>Macro-<italic>F</italic><sub>1</sub>-score was the unweighted mean of category-level <italic>F</italic><sub>1</sub>-scores across all 22 populated categories. A category populated by the third model but absent from both models in a particular pair contributed an <italic>F</italic><sub>1</sub>-score of 0 to that pair’s macro average. Micro-<italic>F</italic><sub>1</sub>-score was calculated as 2 times the sum of category-specific matches divided by the combined candidate counts. Weighted-<italic>F</italic><sub>1</sub>-score was calculated by weighting category-level <italic>F</italic><sub>1</sub>-scores by the average candidate count of the 2 models. Under these definitions, it is algebraically equal to micro-<italic>F</italic><sub>1</sub>-score. <xref ref-type="table" rid="table2">Tables 2</xref>-<xref ref-type="table" rid="table4">4</xref> were generated by 1 analysis script from the same frozen output set used for all 3 models.</p>
        <table-wrap position="float" id="table2">
          <label>Table 2</label>
          <caption>
            <p>Goal and preference spans identified in 1000 portal messages from patients with depression or substance use disorder, 2021-2022. Percentages use model-specific output-unit denominators: GPT-4o-mini=6645, DeepSeek-R1-Distill-Llama-70B=4817, and Llama-3.3-70B-Instruct=5546. Categories are ordered by descending total candidate count across models, with prompt order resolving ties.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="510"/>
            <col width="170"/>
            <col width="160"/>
            <col width="160"/>
            <thead>
              <tr valign="top">
                <td>Category</td>
                <td>GPT-4o-mini, n (%)</td>
                <td>DeepSeek, n (%)</td>
                <td>Llama, n (%)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Improve day-to-day symptoms</td>
                <td>200 (3)</td>
                <td>457 (9.5)</td>
                <td>789 (14.2)</td>
              </tr>
              <tr valign="top">
                <td>Aware/knowledgeable/compassionate doctor</td>
                <td>4 (0.1)</td>
                <td>56 (1.2)</td>
                <td>283 (5.1)</td>
              </tr>
              <tr valign="top">
                <td>Reduce pain</td>
                <td>101 (1.5)</td>
                <td>76 (1.6)</td>
                <td>143 (2.6)</td>
              </tr>
              <tr valign="top">
                <td>Reduce depression/anxiety symptoms</td>
                <td>63 (0.9)</td>
                <td>79 (1.6)</td>
                <td>129 (2.3)</td>
              </tr>
              <tr valign="top">
                <td>Slow disease progression</td>
                <td>5 (0.1)</td>
                <td>47 (1)</td>
                <td>59 (1.1)</td>
              </tr>
              <tr valign="top">
                <td>Decrease blood pressure</td>
                <td>37 (0.6)</td>
                <td>36 (0.7)</td>
                <td>30 (0.5)</td>
              </tr>
              <tr valign="top">
                <td>Prevent weight gain</td>
                <td>26 (0.4)</td>
                <td>27 (0.6)</td>
                <td>28 (0.5)</td>
              </tr>
              <tr valign="top">
                <td>Reduce fatigue</td>
                <td>19 (0.3)</td>
                <td>6 (0.1)</td>
                <td>22 (0.4)</td>
              </tr>
              <tr valign="top">
                <td>Maintain independence</td>
                <td>4 (0.1)</td>
                <td>9 (0.2)</td>
                <td>28 (0.5)</td>
              </tr>
              <tr valign="top">
                <td>Avoid strength/energy loss</td>
                <td>3 (0)</td>
                <td>7 (0.1)</td>
                <td>29 (0.5)</td>
              </tr>
              <tr valign="top">
                <td>Work consistently</td>
                <td>5 (0.1)</td>
                <td>18 (0.4)</td>
                <td>15 (0.3)</td>
              </tr>
              <tr valign="top">
                <td>ADL capability</td>
                <td>17 (0.3)</td>
                <td>8 (0.2)</td>
                <td>6 (0.1)</td>
              </tr>
              <tr valign="top">
                <td>Reduce hospital admissions</td>
                <td>14 (0.2)</td>
                <td>2 (0)</td>
                <td>14 (0.3)</td>
              </tr>
              <tr valign="top">
                <td>Avoid assistive devices</td>
                <td>1 (0)</td>
                <td>6 (0.1)</td>
                <td>15 (0.3)</td>
              </tr>
              <tr valign="top">
                <td>Avoid aggressive intervention without family interaction</td>
                <td>0 (0)</td>
                <td>3 (0.1)</td>
                <td>11 (0.2)</td>
              </tr>
              <tr valign="top">
                <td>Decrease urination frequency</td>
                <td>4 (0.1)</td>
                <td>5 (0.1)</td>
                <td>4 (0.1)</td>
              </tr>
              <tr valign="top">
                <td>Improve balance</td>
                <td>1 (0)</td>
                <td>4 (0.1)</td>
                <td>8 (0.1)</td>
              </tr>
              <tr valign="top">
                <td>Recognize/communicate with family</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>13 (0.2)</td>
              </tr>
              <tr valign="top">
                <td>Maintain/improve memory</td>
                <td>5 (0.1)</td>
                <td>2 (0)</td>
                <td>4 (0.1)</td>
              </tr>
              <tr valign="top">
                <td>Maintain normal sex life</td>
                <td>3 (0)</td>
                <td>1 (0)</td>
                <td>1 (0)</td>
              </tr>
              <tr valign="top">
                <td>Seek palliative care consultation</td>
                <td>1 (0)</td>
                <td>0 (0)</td>
                <td>3 (0.1)</td>
              </tr>
              <tr valign="top">
                <td>Age in place</td>
                <td>0 (0)</td>
                <td>1 (0)</td>
                <td>1 (0)</td>
              </tr>
              <tr valign="top">
                <td>Prefer quality over length of life</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Accept life support if no long-term disability</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Prefer hospice after treatment failure</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Prefer death at home</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Short-term nursing-home ADL support</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Long-term nursing-home ADL support</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
              </tr>
              <tr valign="top">
                <td>Extend life while heart is beating</td>
                <td>0 (0)</td>
                <td>0 (0)</td>
                <td> 0 (0)</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap position="float" id="table3">
          <label>Table 3</label>
          <caption>
            <p>Category-level pairwise span overlap at Jaccard similarity 0.6 across all 22 populated categories. For each pair, the first named model supplies S1 (the precision denominator), and the second supplies S2 (the recall denominator). GPT, Llama, and DeepSeek indicate GPT-4o-mini, Llama-3.3-70B-Instruct, and DeepSeek-R1-Distill-Llama-70B, respectively.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="30"/>
            <col width="490"/>
            <col width="150"/>
            <col width="110"/>
            <col width="110"/>
            <col width="110"/>
            <thead>
              <tr valign="top">
                <td colspan="2">Category and model pair</td>
                <td>Precision (%)</td>
                <td>Recall (%)</td>
                <td><italic>F</italic><sub>1</sub>-score (%)</td>
                <td>Both models</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td colspan="6">
                  <bold>Improve day-to-day symptoms</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>64</td>
                <td>16.2</td>
                <td>25.9</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>52.5</td>
                <td>23</td>
                <td>32</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>33.5</td>
                <td>57.8</td>
                <td>42.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Aware/knowledgeable/compassionate doctor</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>75</td>
                <td>1.1</td>
                <td>2.1</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>50</td>
                <td>3.6</td>
                <td>6.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>7.8</td>
                <td>39.3</td>
                <td>13</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Reduce pain</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>49.5</td>
                <td>35</td>
                <td>41</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>39.6</td>
                <td>52.6</td>
                <td>45.2</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>31.5</td>
                <td>59.2</td>
                <td>41.1</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Reduce depression/anxiety symptoms</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>49.2</td>
                <td>24</td>
                <td>32.3</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>38.1</td>
                <td>30.4</td>
                <td>33.8</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>24.8</td>
                <td>40.5</td>
                <td>30.8</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Slow disease progression</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>60</td>
                <td>5.1</td>
                <td>9.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>40</td>
                <td>4.3</td>
                <td>7.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>22</td>
                <td>27.7</td>
                <td>24.5</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Decrease blood pressure</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>40.5</td>
                <td>50</td>
                <td>44.8</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>37.8</td>
                <td>38.9</td>
                <td>38.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>50</td>
                <td>41.7</td>
                <td>45.5</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Prevent weight gain</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>65.4</td>
                <td>60.7</td>
                <td>63</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>57.7</td>
                <td>55.6</td>
                <td>56.6</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>60.7</td>
                <td>63</td>
                <td>61.8</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Reduce fatigue</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>47.4</td>
                <td>40.9</td>
                <td>43.9</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>15.8</td>
                <td>50</td>
                <td>24</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>22.7</td>
                <td>83.3</td>
                <td>35.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Maintain independence</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>25</td>
                <td>3.6</td>
                <td>6.2</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>25</td>
                <td>11.1</td>
                <td>15.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>3.6</td>
                <td>11.1</td>
                <td>5.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Avoid strength/energy loss</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>33.3</td>
                <td>3.4</td>
                <td>6.2</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>3.4</td>
                <td>14.3</td>
                <td>5.6</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Work consistently</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>60</td>
                <td>20</td>
                <td>30</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>40</td>
                <td>11.1</td>
                <td>17.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>46.7</td>
                <td>38.9</td>
                <td>42.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>ADL capability</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>23.5</td>
                <td>66.7</td>
                <td>34.8</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>23.5</td>
                <td>50</td>
                <td>32</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>50</td>
                <td>37.5</td>
                <td>42.9</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Reduce hospital admissions</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>21.4</td>
                <td>21.4</td>
                <td>21.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>14.3</td>
                <td>100</td>
                <td>25</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Avoid assistive devices</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>100</td>
                <td>6.7</td>
                <td>12.5</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>100</td>
                <td>16.7</td>
                <td>28.6</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>13.3</td>
                <td>33.3</td>
                <td>19</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Avoid aggressive intervention without family interaction</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>9.1</td>
                <td>33.3</td>
                <td>14.3</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Decrease urination frequency</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>50</td>
                <td>50</td>
                <td>50</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>100</td>
                <td>80</td>
                <td>88.9</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>50</td>
                <td>40</td>
                <td>44.4</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Improve balance</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>100</td>
                <td>12.5</td>
                <td>22.2</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>100</td>
                <td>25</td>
                <td>40</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>12.5</td>
                <td>25</td>
                <td>16.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Recognize/communicate with family</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Maintain/improve memory</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>60</td>
                <td>75</td>
                <td>66.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>40</td>
                <td>100</td>
                <td>57.1</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>50</td>
                <td>100</td>
                <td>66.7</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Maintain normal sex life</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Seek palliative care consultation</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td colspan="6">
                  <bold>Age in place</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs Llama</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>GPT vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Llama vs DeepSeek</td>
                <td>0</td>
                <td>0</td>
                <td>0</td>
                <td>Yes</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap position="float" id="table4">
          <label>Table 4</label>
          <caption>
            <p>Overall pairwise span-overlap F1-score at Jaccard similarity 0.6 across all 22 categories populated by at least 1 model in the retrospective analysis of 1000 portal messages from patients with depression or substance use disorder, 2021-2022. Results were generated from the same frozen GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and Llama-3.3-70B-Instruct output set used for Table 2.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="210"/>
            <col width="150"/>
            <col width="140"/>
            <col width="160"/>
            <col width="160"/>
            <col width="180"/>
            <thead>
              <tr valign="top">
                <td>Pair</td>
                <td>Categories, n</td>
                <td>Matched pairs, n</td>
                <td>Macro-<italic>F</italic><sub>1</sub>-score (%)</td>
                <td>Micro-<italic>F</italic><sub>1</sub>-score (%)</td>
                <td>Weighted-<italic>F</italic><sub>1</sub>-score (%)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>GPT vs Llama</td>
                <td>22</td>
                <td>275</td>
                <td>23.3</td>
                <td>25.6</td>
                <td>25.6</td>
              </tr>
              <tr valign="top">
                <td>GPT vs DeepSeek</td>
                <td>22</td>
                <td>220</td>
                <td>23.8</td>
                <td>32.3</td>
                <td>32.3</td>
              </tr>
              <tr valign="top">
                <td>Llama vs DeepSeek</td>
                <td>22</td>
                <td>435</td>
                <td>26.2</td>
                <td>35</td>
                <td> 35</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec>
        <title>Llama Fine-Tuning</title>
        <p>Fine-tuning was performed to examine whether task-specific human judgments could improve Llama’s ability to verify extracted patient-goal and preference candidates. The human evaluation produced 822 annotated category-span pairs (274 from each model). Reviewer disagreements were treated as conflicts and excluded; 736 pairs had concordant yes/no judgments. A total of 13 duplicate category-span pairs were then removed, yielding 723 examples for supervised candidate-verification fine-tuning. Each instance used the proposed category and extracted span as input and the concordant yes/no verification decision as the target. The examples were randomly divided into 506 training examples and 217 held-out test examples, with stratification by source model. All spans originating from the same source message were assigned to the same partition. No exact category-span pairs or source messages were shared between the training and test sets. Stratification did not enforce the yes/no verification-label distribution.</p>
        <p>Llama-3.3-70B-Instruct was adapted using quantized low-rank adaptation (QLoRA), a parameter-efficient technique that updates a small set of adapter weights rather than all model parameters. Four-bit NormalFloat quantization and bfloat16 computation were used. Low-rank adapters used rank 16, alpha 32, and dropout 0.05. Training used AdamW with a learning rate of 2 × 10<sup>–4</sup>, weight decay of 0.01, a total batch size of 8, a maximum sequence length of 512 tokens, and 3 epochs on 1 NVIDIA H200 GPU. Training required approximately 2 H200 GPU-hours. Overfitting risk was limited through parameter-efficient adaptation, adapter dropout, weight decay, the 3-epoch limit, stratification, and evaluation only on the untouched 217-item test set.</p>
        <p>Fine-tuned Llama was compared with GPT-4o-mini, DeepSeek-R1-Distill-Llama-70B, and untuned Llama-3.3-70B-Instruct on the same test examples. Micro-, macro-, and weighted-<italic>F</italic><sub>1</sub>-score were calculated across both verification labels. Micro-<italic>F</italic><sub>1</sub>-score equals accuracy in this single-label binary task. Positive-class precision, recall, <italic>F</italic><sub>1</sub>-score, and predicted yes/no counts were also calculated. A constant-no predictor provided the majority-class baseline. Exact 2-sided McNemar tests compared fine-tuned Llama with GPT-4o-mini and untuned Llama.</p>
        <p>The 3 baseline models performed zero-shot verification using the same system instruction and category-span prompt, reproduced in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. The prompt required a yes-or-no response without explanation. GPT-4o-mini used temperature 0; maximum tokens and top_p were not explicitly set. Llama-3.3-70B-Instruct and DeepSeek-R1-Distill-Llama-70B used deterministic decoding (do_sample=False), temperature 0, and a maximum of 1024 generated tokens. Extraction-specific JSON response formatting, function calling, and the JSON_END stopping string were not used for verification. Only the final yes/no decision was used for scoring; any reasoning content was discarded before comparison with the concordant human reference labels.</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>LLM Identification of Patient Goals and Preferences</title>
        <p>The 3 models independently segmented the same 1000 complete portal messages. Their parsing pipelines yielded 6645 units for GPT-4o-mini, 4817 for DeepSeek-R1-Distill-Llama-70B, and 5546 for Llama-3.3-70B-Instruct. Of these, 513, 850, and 1635 units, respectively, were assigned to 1 of the 29 predefined goal or preference labels. The remaining units were primarily assigned to “others.”</p>
        <p><xref ref-type="table" rid="table2">Table 2</xref> reports counts and percentages for all 29 goal and preference labels in descending order of the total candidate count across the 3 models, with prompt order resolving ties. Percentages use each model’s complete output-unit denominator—6645 for GPT-4o-mini, 4817 for DeepSeek, and 5546 for Llama—and therefore represent the proportion of all units generated by that model rather than the proportion among goal candidates. Llama-3.3-70B-Instruct identified the largest number of goal-category spans across most categories, GPT-4o-mini identified the fewest, and DeepSeek generally produced intermediate counts. Span volume describes extraction coverage and does not by itself establish correctness.</p>
      </sec>
      <sec>
        <title>Human Evaluation of LLM Performance</title>
        <p>Two reviewers independently evaluated 274 randomly selected category-span pairs per model (<xref ref-type="table" rid="table5">Table 5</xref>). Joint acceptance was 67, 83, and 74 spans for GPT-4o-mini, Llama-3.3-70B-Instruct, and DeepSeek, respectively. Observed agreement was 244/274 (89.1%), 256/274 (93.4%), and 236/274 (86.1%), with Cohen κ values of 0.740, 0.853, and 0.693. These measures describe reviewer agreement and candidate verification rather than end-to-end accuracy or recall.</p>
        <table-wrap position="float" id="table5">
          <label>Table 5</label>
          <caption>
            <p>Human evaluation of 274 category-span pairs per model in the retrospective portal-message study of patients with depression or substance use disorder, 2021-2022. Joint acceptance requires yes from both reviewers; observed agreement includes joint yes and joint no decisions.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="140"/>
            <col width="160"/>
            <col width="160"/>
            <col width="170"/>
            <col width="250"/>
            <col width="120"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Evaluated, n</td>
                <td>Reviewer (yes), n/N</td>
                <td>Joint acceptance, n</td>
                <td>Reviewer agreement, n/N (%)</td>
                <td>Cohen κ</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>GPT</td>
                <td>274</td>
                <td>73/91</td>
                <td>67</td>
                <td>244/274 (89.1)</td>
                <td>0.740</td>
              </tr>
              <tr valign="top">
                <td>Llama</td>
                <td>274</td>
                <td>83/101</td>
                <td>83</td>
                <td>256/274 (93.4)</td>
                <td>0.853</td>
              </tr>
              <tr valign="top">
                <td>DeepSeek</td>
                <td>274</td>
                <td>81/105</td>
                <td>74</td>
                <td>236/274 (86.1)</td>
                <td>0.693</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec>
        <title>Differential Coverage of Categories by LLMs</title>
        <p>The distribution of span percentages revealed distinct thematic emphases. All models frequently identified spans related to improving day-to-day symptoms, reducing pain, and addressing depression or anxiety. Llama-3.3-70B-Instruct also allocated a larger proportion of its output to categories such as independence, avoiding loss of strength, and having an aware, knowledgeable, and compassionate physician. GPT-4o-mini concentrated on fewer high-frequency categories, whereas DeepSeek showed an intermediate pattern and produced percentages similar to the other models for categories such as decreasing blood pressure and preventing weight gain. These patterns describe differential coverage, not comparative clinical accuracy. <xref rid="figure1" ref-type="fig">Figure 1</xref> displays the 10 most prevalent categories to keep labels legible at publication size; <xref ref-type="table" rid="table2">Table 2</xref> reports all 29 categories.</p>
        <fig id="figure1" position="float">
          <label>Figure 1</label>
          <caption>
            <p>Percentages for the 10 most prevalent goal and preference categories identified in 1000 portal messages from patients with depression or substance use disorder, 2021-2022. Percentages use all model-generated output units; Table 2 reports all 29 goal and preference categories.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e96744_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Pairwise Evaluation of LLMs</title>
        <sec>
          <title>Evaluation Across 22 Populated Categories</title>
          <p><xref ref-type="table" rid="table3">Table 3</xref> reports pairwise overlap for every category populated by at least 1 of the 3 models. Precision and recall use the same integer matched-pair count: the first named model supplies the precision denominator (S1), and the second supplies the recall denominator (S2). Values are displayed to 1 decimal place; unrounded metrics and their underlying matched-pair and model-span counts are supplied in the supplementary CSV files in <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>.</p>
          <p>The greatest overlap appeared for several measurable goals, including maintaining or improving memory, preventing weight gain, and decreasing urination frequency. Pain-related spans showed moderate and relatively consistent overlap across model pairs. Lower or asymmetric overlap occurred for broader functional and preference categories, including maintaining independence, avoiding strength or energy loss, and preferring an aware, knowledgeable, and compassionate physician. Overall, DeepSeek and Llama had the greatest pairwise overlap. These patterns describe intermodel consistency and do not determine which extraction was clinically correct.</p>
        </sec>
        <sec>
          <title>Overall Evaluation Across 22 Populated Categories</title>
          <p>Llama and DeepSeek had the greatest overall overlap, with micro-<italic>F</italic><sub>1</sub>-score and weighted-<italic>F</italic><sub>1</sub>-score of 35%. GPT and DeepSeek had corresponding values of 32.3%, and GPT and Llama had values of 25.6%. Macro-<italic>F</italic><sub>1</sub>-score ranged from 23.3% to 26.2%. Weighted-<italic>F</italic><sub>1</sub>-score equals micro-<italic>F</italic><sub>1</sub>-score under the stated average-support weighting and category-constrained aggregation.</p>
        </sec>
      </sec>
      <sec>
        <title>Llama Fine-Tuning</title>
        <p>The 822 reviewed category-span pairs yielded 736 concordant reviewer decisions after 86 conflicts were excluded. Removing 13 duplicate category-span pairs produced 723 examples, of which 506 were used for training and 217 were held out for testing. Fine-tuned Llama and all 3 baseline models were evaluated on the same 217-item test set. All baseline responses were valid yes/no decisions. Invalid or unparseable responses were 0/217 (0%) for each baseline. No examples were excluded or scored as incorrect because of response-format failures. On the held-out test set, fine-tuned Llama-3.3-70B-Instruct achieved micro-<italic>F</italic><sub>1</sub>-score of 0.548, macro-<italic>F</italic><sub>1</sub>-score of 0.524, and weighted-<italic>F</italic><sub>1</sub>-score of 0.573 (<xref ref-type="table" rid="table6">Table 6</xref>). Untuned Llama was the strongest LLM baseline, with corresponding values of 0.484, 0.473, and 0.507. The experiment evaluated candidate/category verification on the annotated span set rather than end-to-end extraction from complete messages. <xref rid="figure2" ref-type="fig">Figure 2</xref> summarizes candidate-verification performance.</p>
        <p>The held-out reference labels were yes for 59/217 (27.2%) examples and no for 158/217 (72.8%) examples. A constant-no predictor achieved accuracy/micro-<italic>F</italic><sub>1</sub>-score of 0.728, macro-<italic>F</italic><sub>1</sub>-score of 0.421, and weighted-<italic>F</italic><sub>1</sub>-score of 0.614 (<xref ref-type="table" rid="table6">Table 6</xref>). Fine-tuned Llama exceeded this predictor on macro-<italic>F</italic><sub>1</sub>-score (0.524 vs 0.421), but not on accuracy/micro-<italic>F</italic><sub>1</sub>-score (0.548 vs 0.728). <xref ref-type="table" rid="table7">Table 7</xref> reports positive-class precision, recall, <italic>F</italic><sub>1</sub>-score, and predicted yes/no counts. All 4 LLMs predicted yes more often than the reference labels. DeepSeek returned yes for all 217 examples, representing complete label collapse rather than a response-format failure.</p>
        <p>Exact 2-sided McNemar tests compared paired correctness on the same 217 test items. Fine-tuned Llama had 22 wins vs 8 losses against untuned Llama (<italic>P</italic>=.02) and 63 wins vs 35 losses against GPT-4o-mini (<italic>P</italic>=.006). The comparison against DeepSeek was omitted from paired inference because its constant-yes output was uninformative about verification capability. <xref rid="figure3" ref-type="fig">Figure 3</xref> presents the discordant correctness counts and corresponding McNemar comparisons.</p>
        <table-wrap position="float" id="table6">
          <label>Table 6</label>
          <caption>
            <p>Candidate-verification F1-score for fine-tuned Llama-3.3-70B-Instruct, 3 LLM baselines, and a constant-no majority-class baseline on the same 217 held-out portal-message category-span pairs from patients with depression or substance use disorder. The reference labels comprise 59 yes and 158 no decisions. Micro-F1-score equals accuracy in this single-label binary task.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="490"/>
            <col width="170"/>
            <col width="170"/>
            <col width="170"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Micro-<italic>F</italic><sub>1</sub>-score</td>
                <td>Macro-<italic>F</italic><sub>1</sub>-score</td>
                <td>Weighted-<italic>F</italic><sub>1</sub>-score</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>GPT-4o-mini</td>
                <td>0.419</td>
                <td>0.402</td>
                <td>0.448</td>
              </tr>
              <tr valign="top">
                <td>DeepSeek-R1-Distill-Llama-70B</td>
                <td>0.272</td>
                <td>0.214</td>
                <td>0.116</td>
              </tr>
              <tr valign="top">
                <td>Llama-3.3-70B-Instruct</td>
                <td>0.484</td>
                <td>0.473</td>
                <td>0.507</td>
              </tr>
              <tr valign="top">
                <td>Fine-tuned Llama-3.3-70B-Instruct</td>
                <td>0.548</td>
                <td>0.524</td>
                <td>0.573</td>
              </tr>
              <tr valign="top">
                <td>Constant-no majority baseline</td>
                <td>0.728</td>
                <td>0.421</td>
                <td>0.614</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <fig id="figure2" position="float">
          <label>Figure 2</label>
          <caption>
            <p>Micro-, macro-, and weighted-F1-score for 3 LLM baselines, QLoRA-fine-tuned Llama-3.3-70B-Instruct, and a constant-no majority-class baseline on the same 217 held-out portal-message category-span pairs from patients with depression or substance use disorder. Micro-F1-score equals accuracy; the reference labels comprise 59 yes and 158 no decisions.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e96744_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <table-wrap position="float" id="table7">
          <label>Table 7</label>
          <caption>
            <p>Predicted yes/no decisions and positive-class verification performance on the same 217 held-out portal-message category-span pairs from patients with depression or substance use disorder. “Yes” is the positive class, indicating that the span supports its assigned category.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="320"/>
            <col width="120"/>
            <col width="120"/>
            <col width="0"/>
            <col width="180"/>
            <col width="0"/>
            <col width="130"/>
            <col width="0"/>
            <col width="130"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td colspan="3">Predicted<sup>a</sup>, n</td>
                <td colspan="2">Yes, precision</td>
                <td colspan="2">Yes, recall</td>
                <td>Yes, <italic>F</italic><sub>1</sub>-score</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Yes</td>
                <td>No</td>
                <td colspan="2">
                  <break/>
                </td>
                <td colspan="2">
                  <break/>
                </td>
                <td colspan="2">
                  <break/>
                </td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>GPT-4o-mini</td>
                <td>121</td>
                <td>96</td>
                <td colspan="2">0.223</td>
                <td colspan="2">0.458</td>
                <td colspan="2">0.300</td>
              </tr>
              <tr valign="top">
                <td>DeepSeek-R1-Distill-Llama-70B</td>
                <td>217</td>
                <td>0</td>
                <td colspan="2">0.272</td>
                <td colspan="2">1.000</td>
                <td colspan="2">0.428</td>
              </tr>
              <tr valign="top">
                <td>Llama-3.3-70B-Instruct</td>
                <td>127</td>
                <td>90</td>
                <td colspan="2">0.291</td>
                <td colspan="2">0.627</td>
                <td colspan="2">0.398</td>
              </tr>
              <tr valign="top">
                <td>Fine-tuned Llama-3.3-70B-Instruct</td>
                <td>109</td>
                <td>108</td>
                <td colspan="2">0.321</td>
                <td colspan="2">0.593</td>
                <td colspan="2">0.417</td>
              </tr>
              <tr valign="top">
                <td>Constant-no majority baseline</td>
                <td>0</td>
                <td>217</td>
                <td colspan="2">—<sup>b</sup></td>
                <td colspan="2">0.000</td>
                <td colspan="2">0.000</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table7fn1">
              <p><sup>a</sup>Predicted yes/no gives the number of each decision.</p>
            </fn>
            <fn id="table7fn2">
              <p><sup>b</sup>Precision is undefined for the constant-no predictor because it makes no positive predictions; its positive-class recall and <italic>F</italic><sub>1</sub>-score are 0.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p>Discordant correctness counts and exact 2-sided McNemar <italic>P</italic> values for fine-tuned Llama vs untuned Llama-3.3-70B-Instruct and GPT-4o-mini on the same 217 held-out portal-message category-span pairs from patients with depression or substance use disorder.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e96744_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>Our comparative analysis demonstrates that LLMs can help identify patient goals and preferences from unstructured portal communication, but substantial variation exists in how models segment messages and assign categories. Llama-3.3-70B-Instruct provided the broadest candidate coverage, GPT-4o-mini exhibited more conservative extraction behavior, and DeepSeek-R1-Distill-Llama-70B produced intermediate coverage. DeepSeek and Llama had the greatest intermodel overlap across all 22 populated categories (micro-<italic>F</italic><sub>1</sub>-score=0.350). QLoRA fine-tuning increased Llama’s candidate-verification micro-<italic>F</italic><sub>1</sub>-score from 0.484 to 0.548, but it remained below the constant-no majority-class baseline of 0.728. Fine-tuned Llama had a higher macro-<italic>F</italic><sub>1</sub>-score than this baseline (0.524 vs 0.421).</p>
        <p>Many individuals may not perceive the urgency to seek or adhere to treatment, especially in the context of chronic or behavioral health conditions. This makes it especially important to engage patients in shared decision-making that considers their personal values, health priorities, and daily life circumstances. When treatment plans align with patient goals, such as maintaining independence, minimizing medication side effects, or preserving emotional well-being, adherence and outcomes may improve. Clinical strategies must therefore evolve to capture these goals in a scalable and interpretable way. Because extraction volume is not equivalent to correctness, model-coverage differences should be interpreted together with human evaluation and pairwise overlap.</p>
      </sec>
      <sec>
        <title>LLM Comparative Analysis</title>
        <p>Category-level analysis showed relatively high overlap for measurable and somatic goals, including preventing weight gain, maintaining or improving memory, and decreasing urination frequency. Pain and fatigue showed partial rather than complete agreement. Divergence was more pronounced for broader functional goals such as independence and avoiding loss of strength, and for subjective or implicit preferences such as wanting an aware, knowledgeable, and compassionate physician. These patterns may reflect differences in segmentation, sensitivity to wording, training exposure, or model architecture, although the present analysis cannot isolate their causes. DeepSeek and Llama showed the greatest overall overlap, while GPT differed more from both 70-billion-parameter models. Intermodel overlap nevertheless does not establish clinical validity. That is, models may agree on an incorrect extraction or identify different boundaries for the same underlying concept.</p>
        <p>Several explicit care-preference categories, including hospice, place of death, and quality-vs-quantity preferences, yielded few or no candidates in this cohort. The study cannot determine whether this reflects cohort prevalence, implicit wording, taxonomy choice, or model behavior.</p>
      </sec>
      <sec>
        <title>Llama Fine-Tuning</title>
        <p>QLoRA fine-tuning yielded higher micro-, macro-, and weighted-<italic>F</italic><sub>1</sub>-score than all 3 LLM baselines on the held-out 217-item test set, but accuracy/micro-<italic>F</italic><sub>1</sub>-score remained below the constant-no majority-class baseline (0.548 vs 0.728). Macro-<italic>F</italic><sub>1</sub>-score exceeded the majority baseline (0.524 vs 0.421). The relative accuracy improvement over untuned Llama was supported by the paired McNemar comparison (<italic>P</italic>=.02), although accuracy remained below the majority baseline of 0.728. The experiment does not establish improved end-to-end extraction from complete messages. The fine-tuning examples originated from outputs of the evaluated models and may therefore favor their segmentation and category choices. The 723-example dataset was also small relative to the 70-billion-parameter base model. QLoRA, dropout, weight decay, limited epochs, stratification, and held-out evaluation reduced—but did not eliminate—overfitting risk; independent data are needed to assess generalization.</p>
      </sec>
      <sec>
        <title>Clinical Implications</title>
        <p>If validated against complete-message human annotation, extracted goals could support a clinician-facing longitudinal view of patient priorities. Candidate displays could retain the source, author, date, and context and allow patients or clinicians to confirm, revise, supersede, or deactivate entries rather than treating them as established facts. Because goals and preferences evolve, such a view could also distinguish short-, intermediate-, and long-term priorities and serve as supporting context rather than independently determining treatment or goals-of-care decisions. Care setting should be represented separately from type of care. Hospice, for example, may be delivered at home, in a residential hospice, or in another facility. Hospice and home death should not be treated as mutually exclusive preferences.</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>This study focused on patients with substance use disorder or depression, a population with important and often underrepresented behavioral and chronic-care needs. Their portal communication and expressed priorities may differ from those of patients with cancer, cardiovascular disease, or other chronic illnesses. The source cohort and portal-message data may not represent other populations, institutions, or portal workflows; therefore, external generalizability remains uncertain.</p>
        <p>Human review evaluated model-selected spans rather than exhaustively annotating complete messages. It supports candidate verification but cannot quantify false negatives or recall, and judgments may be affected by overlapping categories, annotation subjectivity, and limited context.</p>
        <p>LLM performance may vary with prompt wording, input phrasing, and task framing. Only one prompt was evaluated, and the requirement to assign exactly one category may oversimplify statements that express multiple overlapping goals. Pairwise <italic>F</italic><sub>1</sub>-score is consequently interpreted as intermodel agreement rather than correctness. Although fine-tuning improved candidate verification relative to untuned Llama, accuracy/micro-<italic>F</italic><sub>1</sub>-score remained below the constant-no majority-class baseline (0.548 vs 0.728). Independent data and complete-message gold standards are needed to assess generalization and end-to-end extraction.</p>
      </sec>
      <sec>
        <title>Future Work</title>
        <p>Future work should prioritize multiannotator, multilabel gold-standard annotation of complete messages and external validation across health systems and clinical populations. Cohorts with advanced cancer, end-stage chronic obstructive pulmonary disease, or end-stage heart failure may be particularly informative because explicit care preferences may be more common. Subsequent studies could evaluate prompt sensitivity, temporal updating, and safe clinician-facing integration.</p>
      </sec>
      <sec>
        <title>Conclusions</title>
        <p>This study applied LLMs to identify patient goals and preferences from unstructured portal communication. Consistent with the comparative aim, the models differed in extraction volume, category distribution, human verification, and pairwise overlap: Llama-3.3-70B-Instruct produced the broadest candidate coverage, DeepSeek produced intermediate coverage, and GPT-4o-mini was more conservative. DeepSeek and Llama had the greatest overlap across all 22 populated categories (micro-<italic>F</italic><sub>1</sub>-score=0.350). QLoRA fine-tuning increased candidate-verification micro-<italic>F</italic><sub>1</sub>-score relative to untuned Llama (0.484 to 0.548), but remained below the constant-no majority-class baseline of 0.728. Fine-tuned Llama had a higher macro-<italic>F</italic><sub>1</sub>-score than this baseline (0.524 vs 0.421). The findings support further evaluation using complete-message gold standards and external validation before clinical use.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group>
      <supplementary-material id="app1">
        <label>Multimedia Appendix 1</label>
        <p>Extraction and zero-shot verification prompts, baseline verification decoding settings, and mapping between reporting labels and the 29 verbatim goal/preference labels plus Others (30 total labels).</p>
        <media xlink:href="medinform_v14i1e96744_app1.docx" xlink:title="DOCX File , 20 KB"/>
      </supplementary-material>
      <supplementary-material id="app2">
        <label>Multimedia Appendix 2</label>
        <p>Supplementary category counts, per-category matched-pair and model-span counts, and unrounded pairwise overlap metrics underlying Tables 2–4, with reporting-label mappings, model-output flow counts, and frozen-input file hashes.</p>
        <media xlink:href="medinform_v14i1e96744_app2.zip" xlink:title="ZIP File  (Zip Archive), 6 KB"/>
      </supplementary-material>
      <supplementary-material id="app3">
        <label>Multimedia Appendix 3</label>
        <p>Confusion matrices, predicted Yes/No counts, and full-precision candidate-verification metrics for 4 large language models and a constant-No majority-class baseline on 217 held-out category-span pairs.</p>
        <media xlink:href="medinform_v14i1e96744_app3.zip" xlink:title="ZIP File  (Zip Archive), 1 KB"/>
      </supplementary-material>
    </app-group>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">ADL</term>
          <def>
            <p>activity of daily living</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">HIPAA</term>
          <def>
            <p>Health Insurance Portability and Accountability Act</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">LLM</term>
          <def>
            <p>large language model</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">QLoRA</term>
          <def>
            <p>quantized low-rank adaptation</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <ack>
      <p>The authors thank the clinical and research staff who supported data collection and study coordination. The views expressed in this article are those of the authors and do not necessarily reflect the position or policy of the Department of Veterans Affairs or the United States Government.</p>
    </ack>
    <notes>
      <sec>
        <title>Funding</title>
        <p>This work was partially supported by the US Department of Veterans Affairs under contract number 776C53014, the National Cancer Institute under grant 1R01CA285737-01A1 (to SF), and the Patient-Centered Outcomes Research Institute under award number ME-2023C2-31367 (to SF).</p>
      </sec>
    </notes>
    <notes>
      <sec>
        <title>Data Availability</title>
        <p>The portal communications contain protected health information and are not publicly available. Aggregate category counts that do not contain message text are provided in <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>. Aggregate confusion matrices and candidate-verification metrics are also provided in the supplementary CSV in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>.</p>
      </sec>
    </notes>
    <fn-group>
      <fn fn-type="con">
        <p>SF contributed to conceptualization, methodology, formal analysis, original draft, and writing, review, and editing. YW was responsible for investigation, formal analysis, and writing. MJ and JN contributed to clinical domain expertise, validation, and writing.</p>
      </fn>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <notes>
      <sec>
        <title>Generative AI Use</title>
        <p>OpenAI Codex was used during manuscript revision for language editing, formatting, and code review. The authors reviewed the resulting text and take responsibility for the manuscript’s content.</p>
      </sec>
    </notes>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Barry</surname>
              <given-names>MJ</given-names>
            </name>
            <name name-style="western">
              <surname>Edgman-Levitan</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Shared decision making—pinnacle of patient-centered care</article-title>
          <source>N Engl J Med</source>
          <year>2012</year>
          <volume>366</volume>
          <issue>9</issue>
          <fpage>780</fpage>
          <lpage>781</lpage>
          <pub-id pub-id-type="doi">10.1056/NEJMp1109283</pub-id>
          <pub-id pub-id-type="medline">22375967</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Charles</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Gafni</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Whelan</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>Shared decision-making in the medical encounter: what does it mean? (or it takes at least two to tango)</article-title>
          <source>Soc Sci Med</source>
          <year>1997</year>
          <volume>44</volume>
          <issue>5</issue>
          <fpage>681</fpage>
          <lpage>692</lpage>
          <pub-id pub-id-type="doi">10.1016/s0277-9536(96)00221-3</pub-id>
          <pub-id pub-id-type="medline">9032835</pub-id>
          <pub-id pub-id-type="pii">S0277953696002213</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Elwyn</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Frosch</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Thomson</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Joseph-Williams</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Lloyd</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Kinnersley</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Cording</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Tomson</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Dodd</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Rollnick</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Edwards</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Barry</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Shared decision making: a model for clinical practice</article-title>
          <source>J Gen Intern Med</source>
          <year>2012</year>
          <volume>27</volume>
          <issue>10</issue>
          <fpage>1361</fpage>
          <lpage>1367</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/22618581"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s11606-012-2077-6</pub-id>
          <pub-id pub-id-type="medline">22618581</pub-id>
          <pub-id pub-id-type="pmcid">PMC3445676</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Epstein</surname>
              <given-names>RM</given-names>
            </name>
            <name name-style="western">
              <surname>Street</surname>
              <given-names>RL</given-names>
            </name>
          </person-group>
          <article-title>The values and value of patient-centered care</article-title>
          <source>Ann Fam Med</source>
          <year>2011</year>
          <volume>9</volume>
          <issue>2</issue>
          <fpage>100</fpage>
          <lpage>103</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://www.annfammed.org/cgi/pmidlookup?view=long&#38;pmid=21403134"/>
          </comment>
          <pub-id pub-id-type="doi">10.1370/afm.1239</pub-id>
          <pub-id pub-id-type="medline">21403134</pub-id>
          <pub-id pub-id-type="pii">9/2/100</pub-id>
          <pub-id pub-id-type="pmcid">PMC3056855</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Fried</surname>
              <given-names>TR</given-names>
            </name>
            <name name-style="western">
              <surname>Street</surname>
              <given-names>RL</given-names>
            </name>
            <name name-style="western">
              <surname>Cohen</surname>
              <given-names>AB</given-names>
            </name>
          </person-group>
          <article-title>Chronic disease decision making and "what matters most"</article-title>
          <source>J Am Geriatr Soc</source>
          <year>2020</year>
          <volume>68</volume>
          <issue>3</issue>
          <fpage>474</fpage>
          <lpage>477</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/32043559"/>
          </comment>
          <pub-id pub-id-type="doi">10.1111/jgs.16371</pub-id>
          <pub-id pub-id-type="medline">32043559</pub-id>
          <pub-id pub-id-type="pmcid">PMC7197748</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Grudniewicz</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Gray</surname>
              <given-names>CS</given-names>
            </name>
            <name name-style="western">
              <surname>Boeckxstaens</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>De Maeseneer</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Mold</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>Operationalizing the chronic care model with goal-oriented care</article-title>
          <source>Patient</source>
          <year>2023</year>
          <volume>16</volume>
          <issue>6</issue>
          <fpage>569</fpage>
          <lpage>578</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/37642918"/>
          </comment>
          <pub-id pub-id-type="doi">10.1007/s40271-023-00645-8</pub-id>
          <pub-id pub-id-type="medline">37642918</pub-id>
          <pub-id pub-id-type="pii">10.1007/s40271-023-00645-8</pub-id>
          <pub-id pub-id-type="pmcid">PMC10570240</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Earp</surname>
              <given-names>BD</given-names>
            </name>
            <name name-style="western">
              <surname>Porsdam Mann</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Allen</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Salloch</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Suren</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Jongsma</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Braun</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Wilkinson</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Sinnott-Armstrong</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Rid</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Wendler</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Savulescu</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>A personalized patient preference predictor for substituted judgments in healthcare: technically feasible and ethically desirable</article-title>
          <source>Am J Bioeth</source>
          <year>2024</year>
          <volume>24</volume>
          <issue>7</issue>
          <fpage>13</fpage>
          <lpage>26</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.tandfonline.com/doi/10.1080/15265161.2023.2296402?url_ver=Z39.88-2003&#38;rfr_id=ori:rid:crossref.org&#38;rfr_dat=cr_pub  0pubmed"/>
          </comment>
          <pub-id pub-id-type="doi">10.1080/15265161.2023.2296402</pub-id>
          <pub-id pub-id-type="medline">38226965</pub-id>
          <pub-id pub-id-type="pmcid">PMC11248995</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>RY</given-names>
            </name>
            <name name-style="western">
              <surname>Brumback</surname>
              <given-names>LC</given-names>
            </name>
            <name name-style="western">
              <surname>Lober</surname>
              <given-names>WB</given-names>
            </name>
            <name name-style="western">
              <surname>Sibley</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Nielsen</surname>
              <given-names>EL</given-names>
            </name>
            <name name-style="western">
              <surname>Treece</surname>
              <given-names>PD</given-names>
            </name>
            <name name-style="western">
              <surname>Kross</surname>
              <given-names>EK</given-names>
            </name>
            <name name-style="western">
              <surname>Loggers</surname>
              <given-names>ET</given-names>
            </name>
            <name name-style="western">
              <surname>Fausto</surname>
              <given-names>JA</given-names>
            </name>
            <name name-style="western">
              <surname>Lindvall</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Engelberg</surname>
              <given-names>RA</given-names>
            </name>
            <name name-style="western">
              <surname>Curtis</surname>
              <given-names>JR</given-names>
            </name>
          </person-group>
          <article-title>Identifying goals of care conversations in the electronic health record using natural language processing and machine learning</article-title>
          <source>J Pain Symptom Manage</source>
          <year>2021</year>
          <volume>61</volume>
          <issue>1</issue>
          <fpage>136</fpage>
          <lpage>142.e2</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0885-3924(20)30710-7"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.jpainsymman.2020.08.024</pub-id>
          <pub-id pub-id-type="medline">32858164</pub-id>
          <pub-id pub-id-type="pii">S0885-3924(20)30710-7</pub-id>
          <pub-id pub-id-type="pmcid">PMC7769906</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>RY</given-names>
            </name>
            <name name-style="western">
              <surname>Kross</surname>
              <given-names>EK</given-names>
            </name>
            <name name-style="western">
              <surname>Torrence</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>KS</given-names>
            </name>
            <name name-style="western">
              <surname>Sibley</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Cohen</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Lober</surname>
              <given-names>WB</given-names>
            </name>
            <name name-style="western">
              <surname>Engelberg</surname>
              <given-names>RA</given-names>
            </name>
            <name name-style="western">
              <surname>Curtis</surname>
              <given-names>JR</given-names>
            </name>
          </person-group>
          <article-title>Assessment of natural language processing of electronic health records to measure goals-of-care discussions as a clinical trial outcome</article-title>
          <source>JAMA Netw Open</source>
          <year>2023</year>
          <volume>6</volume>
          <issue>3</issue>
          <fpage>e231204</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/36862411"/>
          </comment>
          <pub-id pub-id-type="doi">10.1001/jamanetworkopen.2023.1204</pub-id>
          <pub-id pub-id-type="medline">36862411</pub-id>
          <pub-id pub-id-type="pii">2801918</pub-id>
          <pub-id pub-id-type="pmcid">PMC9982698</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lindvall</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Deng</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Moseley</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Agaronnik</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>El-Jawahri</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Paasche-Orlow</surname>
              <given-names>MK</given-names>
            </name>
            <name name-style="western">
              <surname>Lakin</surname>
              <given-names>JR</given-names>
            </name>
            <name name-style="western">
              <surname>Volandes</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Tulsky</surname>
              <given-names>TAIJA</given-names>
            </name>
          </person-group>
          <article-title>Natural language processing to identify advance care planning documentation in a multisite pragmatic clinical trial</article-title>
          <source>J Pain Symptom Manage</source>
          <year>2022</year>
          <volume>63</volume>
          <issue>1</issue>
          <fpage>e29</fpage>
          <lpage>e36</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0885-3924(21)00428-0"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.jpainsymman.2021.06.025</pub-id>
          <pub-id pub-id-type="medline">34271146</pub-id>
          <pub-id pub-id-type="pii">S0885-3924(21)00428-0</pub-id>
          <pub-id pub-id-type="pmcid">PMC9124370</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Raisa</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Alpert</surname>
              <given-names>JM</given-names>
            </name>
            <name name-style="western">
              <surname>Bylund</surname>
              <given-names>CL</given-names>
            </name>
            <name name-style="western">
              <surname>Jarad-Fodeh</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Identifying the mechanisms of patient-centred communication in secure messages between clinicians and cancer patients</article-title>
          <source>PEC Innov</source>
          <year>2023</year>
          <volume>2</volume>
          <fpage>100161</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S2772-6282(23)00041-9"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.pecinn.2023.100161</pub-id>
          <pub-id pub-id-type="medline">37384151</pub-id>
          <pub-id pub-id-type="pii">S2772-6282(23)00041-9</pub-id>
          <pub-id pub-id-type="pmcid">PMC10294087</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ren</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Wu</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Fan</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Khurana</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Fu</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Wu</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Automatic uncovering of patient primary concerns in portal messages using a fusion framework of pretrained language models</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2024</year>
          <volume>31</volume>
          <issue>8</issue>
          <fpage>1714</fpage>
          <lpage>1724</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://academic.oup.com/jamia/article-lookup/doi/10.1093/jamia/ocae144"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamia/ocae144</pub-id>
          <pub-id pub-id-type="medline">38934289</pub-id>
          <pub-id pub-id-type="pii">7700019</pub-id>
          <pub-id pub-id-type="pmcid">PMC11258404</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Sivarajkumar</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Kelley</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Samolyk-Mazzanti</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Visweswaran</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>An empirical evaluation of prompting strategies for large language models in zero-shot clinical natural language processing: algorithm development and validation study</article-title>
          <source>JMIR Med Inform</source>
          <year>2024</year>
          <volume>12</volume>
          <fpage>e55318</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://medinform.jmir.org/2024//e55318/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/55318</pub-id>
          <pub-id pub-id-type="medline">38587879</pub-id>
          <pub-id pub-id-type="pii">v12i1e55318</pub-id>
          <pub-id pub-id-type="pmcid">PMC11036183</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wiest</surname>
              <given-names>IC</given-names>
            </name>
            <name name-style="western">
              <surname>Ferber</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Zhu</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>van Treeck</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Meyer</surname>
              <given-names>SK</given-names>
            </name>
            <name name-style="western">
              <surname>Juglan</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Carrero</surname>
              <given-names>ZI</given-names>
            </name>
            <name name-style="western">
              <surname>Paech</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kleesiek</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Ebert</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Truhn</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kather</surname>
              <given-names>JN</given-names>
            </name>
          </person-group>
          <article-title>Privacy-preserving large language models for structured medical information retrieval</article-title>
          <source>NPJ Digit Med</source>
          <year>2024</year>
          <volume>7</volume>
          <issue>1</issue>
          <fpage>257</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41746-024-01233-2"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41746-024-01233-2</pub-id>
          <pub-id pub-id-type="medline">39304709</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41746-024-01233-2</pub-id>
          <pub-id pub-id-type="pmcid">PMC11415382</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Gu</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Shao</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Liao</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Carducci</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Brufau</surname>
              <given-names>SR</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Desai</surname>
              <given-names>RJ</given-names>
            </name>
          </person-group>
          <article-title>Scalable information extraction from free text electronic health records using large language models</article-title>
          <source>BMC Med Res Methodol</source>
          <year>2025</year>
          <volume>25</volume>
          <issue>1</issue>
          <fpage>23</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-025-02470-z"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s12874-025-02470-z</pub-id>
          <pub-id pub-id-type="medline">39871166</pub-id>
          <pub-id pub-id-type="pii">10.1186/s12874-025-02470-z</pub-id>
          <pub-id pub-id-type="pmcid">PMC11773977</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Yuan</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Yoon</surname>
              <given-names>CH</given-names>
            </name>
            <name name-style="western">
              <surname>Gu</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Munby</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Walker</surname>
              <given-names>AS</given-names>
            </name>
            <name name-style="western">
              <surname>Zhu</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Eyre</surname>
              <given-names>DW</given-names>
            </name>
          </person-group>
          <article-title>Transformers and large language models are efficient feature extractors for electronic health record studies</article-title>
          <source>Commun Med (Lond)</source>
          <year>2025</year>
          <volume>5</volume>
          <issue>1</issue>
          <fpage>83</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s43856-025-00790-1"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s43856-025-00790-1</pub-id>
          <pub-id pub-id-type="medline">40119150</pub-id>
          <pub-id pub-id-type="pii">10.1038/s43856-025-00790-1</pub-id>
          <pub-id pub-id-type="pmcid">PMC11928488</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Wright</surname>
              <given-names>AP</given-names>
            </name>
            <name name-style="western">
              <surname>McCoy</surname>
              <given-names>AB</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>SS</given-names>
            </name>
            <name name-style="western">
              <surname>Steitz</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Wright</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2025</year>
          <volume>32</volume>
          <issue>6</issue>
          <fpage>1032</fpage>
          <lpage>1039</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://academic.oup.com/jamia/article-lookup/doi/10.1093/jamia/ocaf059"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamia/ocaf059</pub-id>
          <pub-id pub-id-type="medline">40220286</pub-id>
          <pub-id pub-id-type="pii">8112816</pub-id>
          <pub-id pub-id-type="pmcid">PMC12089757</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Singer</surname>
              <given-names>PA</given-names>
            </name>
            <name name-style="western">
              <surname>Martin</surname>
              <given-names>DK</given-names>
            </name>
            <name name-style="western">
              <surname>Kelner</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Quality end-of-life care: patients' perspectives</article-title>
          <source>JAMA</source>
          <year>1999</year>
          <volume>281</volume>
          <issue>2</issue>
          <fpage>163</fpage>
          <lpage>168</lpage>
          <pub-id pub-id-type="doi">10.1001/jama.281.2.163</pub-id>
          <pub-id pub-id-type="medline">9917120</pub-id>
          <pub-id pub-id-type="pii">jsc80231</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Steinhauser</surname>
              <given-names>KE</given-names>
            </name>
            <name name-style="western">
              <surname>Christakis</surname>
              <given-names>NA</given-names>
            </name>
            <name name-style="western">
              <surname>Clipp</surname>
              <given-names>EC</given-names>
            </name>
            <name name-style="western">
              <surname>McNeilly</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>McIntyre</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Tulsky</surname>
              <given-names>JA</given-names>
            </name>
          </person-group>
          <article-title>Factors considered important at the end of life by patients, family, physicians, and other care providers</article-title>
          <source>JAMA</source>
          <year>2000</year>
          <volume>284</volume>
          <issue>19</issue>
          <fpage>2476</fpage>
          <lpage>2482</lpage>
          <pub-id pub-id-type="doi">10.1001/jama.284.19.2476</pub-id>
          <pub-id pub-id-type="medline">11074777</pub-id>
          <pub-id pub-id-type="pii">joc00645</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Teno</surname>
              <given-names>JM</given-names>
            </name>
            <name name-style="western">
              <surname>Clarridge</surname>
              <given-names>BR</given-names>
            </name>
            <name name-style="western">
              <surname>Casey</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Welch</surname>
              <given-names>LC</given-names>
            </name>
            <name name-style="western">
              <surname>Wetle</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Shield</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Mor</surname>
              <given-names>V</given-names>
            </name>
          </person-group>
          <article-title>Family perspectives on end-of-life care at the last place of care</article-title>
          <source>JAMA</source>
          <year>2004</year>
          <volume>291</volume>
          <issue>1</issue>
          <fpage>88</fpage>
          <lpage>93</lpage>
          <pub-id pub-id-type="doi">10.1001/jama.291.1.88</pub-id>
          <pub-id pub-id-type="medline">14709580</pub-id>
          <pub-id pub-id-type="pii">291/1/88</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Gomes</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Calanzani</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Gysels</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Hall</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Higginson</surname>
              <given-names>IJ</given-names>
            </name>
          </person-group>
          <article-title>Heterogeneity and changes in preferences for dying at home: a systematic review</article-title>
          <source>BMC Palliat Care</source>
          <year>2013</year>
          <volume>12</volume>
          <fpage>7</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcpalliatcare.biomedcentral.com/articles/10.1186/1472-684X-12-7"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/1472-684X-12-7</pub-id>
          <pub-id pub-id-type="medline">23414145</pub-id>
          <pub-id pub-id-type="pii">1472-684X-12-7</pub-id>
          <pub-id pub-id-type="pmcid">PMC3623898</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Temel</surname>
              <given-names>JS</given-names>
            </name>
            <name name-style="western">
              <surname>Greer</surname>
              <given-names>JA</given-names>
            </name>
            <name name-style="western">
              <surname>Muzikansky</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Gallagher</surname>
              <given-names>ER</given-names>
            </name>
            <name name-style="western">
              <surname>Admane</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Jackson</surname>
              <given-names>VA</given-names>
            </name>
            <name name-style="western">
              <surname>Dahlin</surname>
              <given-names>CM</given-names>
            </name>
            <name name-style="western">
              <surname>Blinderman</surname>
              <given-names>CD</given-names>
            </name>
            <name name-style="western">
              <surname>Jacobsen</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Pirl</surname>
              <given-names>WF</given-names>
            </name>
            <name name-style="western">
              <surname>Billings</surname>
              <given-names>JA</given-names>
            </name>
            <name name-style="western">
              <surname>Lynch</surname>
              <given-names>TJ</given-names>
            </name>
          </person-group>
          <article-title>Early palliative care for patients with metastatic non-small-cell lung cancer</article-title>
          <source>N Engl J Med</source>
          <year>2010</year>
          <volume>363</volume>
          <issue>8</issue>
          <fpage>733</fpage>
          <lpage>742</lpage>
          <pub-id pub-id-type="doi">10.1056/NEJMoa1000678</pub-id>
          <pub-id pub-id-type="medline">20818875</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wiles</surname>
              <given-names>JL</given-names>
            </name>
            <name name-style="western">
              <surname>Leibing</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Guberman</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Reeve</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Allen</surname>
              <given-names>RES</given-names>
            </name>
          </person-group>
          <article-title>The meaning of "aging in place" to older people</article-title>
          <source>Gerontologist</source>
          <year>2012</year>
          <volume>52</volume>
          <issue>3</issue>
          <fpage>357</fpage>
          <lpage>366</lpage>
          <pub-id pub-id-type="doi">10.1093/geront/gnr098</pub-id>
          <pub-id pub-id-type="medline">21983126</pub-id>
          <pub-id pub-id-type="pii">gnr098</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kessler</surname>
              <given-names>RC</given-names>
            </name>
            <name name-style="western">
              <surname>Demler</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Frank</surname>
              <given-names>RG</given-names>
            </name>
            <name name-style="western">
              <surname>Olfson</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Pincus</surname>
              <given-names>HA</given-names>
            </name>
            <name name-style="western">
              <surname>Walters</surname>
              <given-names>EE</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Wells</surname>
              <given-names>KB</given-names>
            </name>
            <name name-style="western">
              <surname>Zaslavsky</surname>
              <given-names>AM</given-names>
            </name>
          </person-group>
          <article-title>Prevalence and treatment of mental disorders, 1990 to 2003</article-title>
          <source>N Engl J Med</source>
          <year>2005</year>
          <volume>352</volume>
          <issue>24</issue>
          <fpage>2515</fpage>
          <lpage>2523</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/15958807"/>
          </comment>
          <pub-id pub-id-type="doi">10.1056/NEJMsa043266</pub-id>
          <pub-id pub-id-type="medline">15958807</pub-id>
          <pub-id pub-id-type="pii">352/24/2515</pub-id>
          <pub-id pub-id-type="pmcid">PMC2847367</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Hofmann</surname>
              <given-names>SG</given-names>
            </name>
            <name name-style="western">
              <surname>Smits</surname>
              <given-names>JAJ</given-names>
            </name>
          </person-group>
          <article-title>Cognitive-behavioral therapy for adult anxiety disorders: a meta-analysis of randomized placebo-controlled trials</article-title>
          <source>J Clin Psychiatry</source>
          <year>2008</year>
          <volume>69</volume>
          <issue>4</issue>
          <fpage>621</fpage>
          <lpage>632</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/18363421"/>
          </comment>
          <pub-id pub-id-type="doi">10.4088/jcp.v69n0415</pub-id>
          <pub-id pub-id-type="medline">18363421</pub-id>
          <pub-id pub-id-type="pii">ej07m03585</pub-id>
          <pub-id pub-id-type="pmcid">PMC2409267</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nazarov</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Manuwald</surname>
              <given-names>U</given-names>
            </name>
            <name name-style="western">
              <surname>Leonardi</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Silvaggi</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Foucaud</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Lamore</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Guastafierro</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Scaratti</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Lindström</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Rothe</surname>
              <given-names>U</given-names>
            </name>
          </person-group>
          <article-title>Chronic diseases and employment: which interventions support the maintenance of work and return to work among workers with chronic illnesses? A systematic review</article-title>
          <source>Int J Environ Res Public Health</source>
          <year>2019</year>
          <volume>16</volume>
          <issue>10</issue>
          <fpage>1864</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=ijerph16101864"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/ijerph16101864</pub-id>
          <pub-id pub-id-type="medline">31137817</pub-id>
          <pub-id pub-id-type="pii">ijerph16101864</pub-id>
          <pub-id pub-id-type="pmcid">PMC6572561</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref27">
        <label>27</label>
        <nlm-citation citation-type="web">
          <article-title>GPT-4o mini: advancing cost-efficient intelligence</article-title>
          <source>OpenAI</source>
          <access-date>2026-08-17</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/">https://openai.com/index/gpt-4o-mini-advancing -cost-efficient-intelligence/</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref28">
        <label>28</label>
        <nlm-citation citation-type="web">
          <article-title>Llama-3.3-70B-instruct model card</article-title>
          <source>Hugging Face</source>
          <access-date>2026-08-17</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct">https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref29">
        <label>29</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Guo</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Song</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Zhu</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Xu</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Ma</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Bi</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>X</given-names>
            </name>
          </person-group>
          <article-title>DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning</article-title>
          <source>Nature</source>
          <year>2025</year>
          <volume>645</volume>
          <issue>8081</issue>
          <fpage>633</fpage>
          <lpage>638</lpage>
          <pub-id pub-id-type="doi">10.1038/s41586-025-09422-z</pub-id>
          <pub-id pub-id-type="medline">40962978</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41586-025-09422-z</pub-id>
          <pub-id pub-id-type="pmcid">PMC12443585</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
