<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Form Res</journal-id><journal-id journal-id-type="publisher-id">formative</journal-id><journal-id journal-id-type="index">27</journal-id><journal-title>JMIR Formative Research</journal-title><abbrev-journal-title>JMIR Form Res</abbrev-journal-title><issn pub-type="epub">2561-326X</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">v10i1e97117</article-id><article-id pub-id-type="doi">10.2196/97117</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Large Language Model Framework for Structured Biomarker Extraction and Triple-Negative Breast Cancer Identification From Pathology Reports: Development and Evaluation Study</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Jain</surname><given-names>Nirmit</given-names></name><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Annambhotla</surname><given-names>Trisha</given-names></name><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Siddharthan</surname><given-names>Akshara</given-names></name><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Kanala</surname><given-names>Harshini</given-names></name><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Budhiraja</surname><given-names>Armaan</given-names></name><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Goutam Sinha</surname><given-names>Manglam</given-names></name><degrees>BTech</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Charan</surname><given-names>Devyani</given-names></name><degrees>Msc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ahmad Dar</surname><given-names>Muzaffar</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Patel</surname><given-names>Trupti</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>C L</surname><given-names>Biji</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib></contrib-group><aff id="aff1"><institution>School of Computer Science and Engineering, Vellore Institute of Technology</institution><addr-line>Vellore Campus, Tiruvalam Road, Katpadi</addr-line><addr-line>Vellore</addr-line><addr-line>Tamil Nadu</addr-line><country>India</country></aff><aff id="aff2"><institution>School of Bio Sciences and Technology, Vellore Institute of Technology</institution><addr-line>Vellore</addr-line><addr-line>Tamil Nadu</addr-line><country>India</country></aff><aff id="aff3"><institution>School of Advanced Sciences, Vellore Institute of Technology</institution><addr-line>Vellore</addr-line><addr-line>Tamil Nadu</addr-line><country>India</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Sarvestan</surname><given-names>Javad</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Buch</surname><given-names>Archana C</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Jani</surname><given-names>Mehul</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Podder</surname><given-names>Soumyajit</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Vijay</surname><given-names>U</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Biji C L, PhD, School of Computer Science and Engineering, Vellore Institute of Technology, Vellore Campus, Tiruvalam Road, Katpadi, Vellore, Tamil Nadu, 632014, India, 91 9446171877; <email>biji.cl@vit.ac.in</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>23</day><month>10</month><year>2026</year></pub-date><volume>10</volume><elocation-id>e97117</elocation-id><history><date date-type="received"><day>03</day><month>04</month><year>2026</year></date><date date-type="rev-recd"><day>06</day><month>09</month><year>2026</year></date><date date-type="accepted"><day>23</day><month>09</month><year>2026</year></date></history><copyright-statement>&#x00A9; Nirmit Jain, Trisha Annambhotla, Akshara Siddharthan, Harshini Kanala, Armaan Budhiraja, Manglam Goutam Sinha, Devyani Charan, Muzaffar Ahmad Dar, Trupti Patel, Biji C L. Originally published in JMIR Formative Research (<ext-link ext-link-type="uri" xlink:href="https://formative.jmir.org">https://formative.jmir.org</ext-link>), 23.10.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 (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://formative.jmir.org">https://formative.jmir.org</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://formative.jmir.org/2026/1/e97117"/><abstract><sec><title>Background</title><p>Triple-negative breast cancer (TNBC) is an aggressive molecular subtype of breast cancer that needs to be identified accurately from pathology reports to inform decision-making. Large language models (LLMs) have been reported to show great potential in the automatic extraction of important oncology information from unstructured medical text.</p></sec><sec><title>Objective</title><p>We aimed to create and test an LLM-based approach for automatic biomarker extraction and TNBC subtype classification based on breast cancer pathology reports using prompt-engineering techniques.</p></sec><sec sec-type="methods"><title>Methods</title><p>In total, 532 breast cancer pathology reports from The Cancer Genome Atlas (TCGA) were used. Our approach extracted structured oncology features, such as estrogen receptor status, progesterone receptor status, HER2 status, tumor size, tumor grade, and tumor histology, which were used to identify TNBC. We tested 4 frontier models: GPT-4o mini (released July 18, 2024), GPT-4.1 nano (released April 14, 2025), GPT-5 nano (released August 7, 2025), and Gemini 2.5 Flash-Lite.</p></sec><sec sec-type="results"><title>Results</title><p>The designed framework was able to extract relevant biomarkers and clinicopathological attributes from unstructured pathology reports and allowed for the automated identification of patients with TNBC. Gemini 2.5 Flash-Lite showed superior performance in the extraction of clinicopathological attributes. For all models investigated, chain-of-thought (CoT) prompting was shown to outperform other strategies, such as zero-shot and few-shot prompting, for both biomarker extraction and TNBC classification. GPT-4o mini using CoT prompts reported the highest performance for TNBC classification.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>Using prompt-engineering techniques based on LLMs proved to be an efficient method of translating unstructured breast cancer pathology reports into structured clinical information. Moreover, it can be used to accurately identify the TNBC subtype.</p></sec></abstract><kwd-group><kwd>large language model</kwd><kwd>breast cancer</kwd><kwd>histology</kwd><kwd>chain of thought</kwd><kwd>generative pretrained transformer</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Breast cancer is one of the major health burdens for women globally, with one of the highest mortality rates. Based on the expression of molecular markers such as estrogen receptor (ER), progesterone receptor (PR), and human epidermal growth factor receptor 2 (HER2), breast cancer is classified into 4 molecular subtypes: Luminal A, Luminal B, HER2-enriched, and triple-negative. In Luminal A breast cancers, ER and/or PR are expressed, but HER2 and Ki-67 are not; Ki-67 is a proliferative marker that shows very little expression. Such tumors are low grade, slow growing, and endocrine-therapy sensitive. In contrast, in Luminal B tumors, ER and/or PR are expressed and either HER2+ or Ki-67 is also present abundantly; Luminal B tumors are of a higher grade than Luminal A tumors and can grow at a faster pace. In the HER2-enriched subtype, HER2 is overexpressed, while ER and PR are absent. Such tumors are highly aggressive but respond well to HER2-targeted therapies. In contrast, triple-negative breast cancer (TNBC) is marked by the absence of these molecular markers: ER, PR, and HER2 are absent or expressed negligibly [<xref ref-type="bibr" rid="ref1">1</xref>]. It is essential to identify the subtype accurately for precision oncology, as most treatments are strategized based on hormone receptor and HER2 status.</p><p>Among all the subtypes of breast cancer, TNBC is a higher-grade cancer with the highest recurrence rates. TNBC is a difficult and complex disease entity for researchers, physicians, and patients, as it is often highly sensitive to chemotherapy in the initial stages but more prone to resistance and relapse [<xref ref-type="bibr" rid="ref2">2</xref>,<xref ref-type="bibr" rid="ref3">3</xref>]. In clinical practice, cancers are categorized first by the status of receptors and then refined by biological variables, such as molecular features, histology, and genomic signatures [<xref ref-type="bibr" rid="ref4">4</xref>,<xref ref-type="bibr" rid="ref5">5</xref>]. This unique receptor-negative profile not only excludes endocrine and HER2-targeted therapies but also indicates that patients with TNBC have fast disease progression. Therefore, the overall survival outcome remains poorer among patients with TNBC than among patients with receptor-positive cancers [<xref ref-type="bibr" rid="ref6">6</xref>].</p><p>Pathology reports contain information about diagnostic and molecular classifications. These include the presence or absence of biomarkers, such as ER, PR, and HER2, as well as Ki-67 status, along with other histopathological details. Most of this information is unstructured, appearing in the form of free text, which varies in reporting style and has no standardization. With the increasing number of cases of breast cancer, there has been a significant increase in the volume and complexity of pathology reports. This can contribute to an increase in the burden of interpreting these reports and can also be time-consuming. Often, early detection of this type of cancer can save patients&#x2019; lives [<xref ref-type="bibr" rid="ref7">7</xref>]. Conventional methods to study clinical tests computationally involve rule-based natural language processing systems or traditional machine learning techniques. Such methods show practical value, yet they restrict users because they require manual feature development and use fixed rules and structured data. With advances in technology, large language models (LLMs) are now being used to comprehend medical texts [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref10">10</xref>]. However, their accuracy in identifying pathological features has not been sufficiently evaluated. This research gap may limit the adoption of LLM-based approaches in the medical field.</p><p>There are multiple models and options that can be used for feature extraction. This paper explores commonly used LLMs paired with suitable prompting techniques and aims to identify the models&#x2019; accuracy in extracting biomarkers that are used to determine the status of TNBC [<xref ref-type="bibr" rid="ref8">8</xref>]. It aims to identify a suitable model that is cost-efficient, fast at processing, and high in accuracy. Accuracy is defined here as the similarity between the LLM&#x2019;s extracted feature data and manually extracted ground-truth values [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>]. Additionally, we evaluate different prompting techniques to identify approaches that improve efficiency in downstream clinical data processing. The major contributions of this paper are as follows: (1) development of an LLM pipeline to extract structured oncological features from unstructured pathology reports; (2) evaluation and comparison of multiple prompting strategies, including zero-shot, few-shot, and chain of thought (CoT), on pathology report extraction tasks; and (3) development and evaluation of an automated approach for identifying TNBC cases from unstructured pathology reports using LLM-based information extraction.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Background</title><p>We created an LLM framework to extract oncological biomarker features and identify TNBC subtype statuses from pathology reports, as depicted in <xref ref-type="fig" rid="figure1">Figure 1</xref>.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Suggested process flow for triple-negative breast cancer pathology report analysis: data gathering, optical character recognition (OCR) preprocessing, generative AI (genAI) biomarker extraction (GPT vs Gemini), and comparative dashboard creation. LLM: large language model; RAG: retrieval-augmented generation; TCGA: The Cancer Genome Atlas.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e97117_fig01.png"/></fig></sec><sec id="s2-2"><title>Data Collection and Sources</title><p>The dataset used in this analysis was obtained from The Cancer Genome Atlas/Genomic Data Commons (TCGA/GDC) data portal. The reports were downloaded as PDF files using the GDC API. Each downloaded pathology report was assigned the corresponding GDC file&#x2019;s universally unique identifier (UUID) to ensure traceability throughout preprocessing, feature extraction, and evaluation. A total of 532 pathology reports, including both scanned and text-based documents, were included in this study. Feature selection was based on a curated Breast Cancer Feature Checklist consisting of 4 clinically relevant domains, as shown in <xref ref-type="fig" rid="figure2">Figure 2</xref>. First, core receptor status, such as ER, PR, HER2, and TNBC definition, was selected, which helped differentiate hormone receptor&#x2013;positive, HER2-enriched, and triple-negative breast cancer. Receptor status helps in choosing systemic therapy. Second, tumor status, such as tumor size category, histologic grade, and histology type, was selected, as this reflects primary tumor burden and intrinsic aggressiveness. Third, proliferation and molecular markers, such as Ki-67 index, p53 status, and the basal markers CK5/6 and EGFR, were selected because they are associated with tumor growth rate. Finally, nodal status, such as lymph node stage and lymphovascular invasion, was selected because it reflects metastatic potential. However, since the pathology reports were not uniform, not all features were obtained from all reports.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Extraction of pathology features related to oncology based on large language model framework: manually annotated pathology report of triple-negative breast cancer (TNBC; left) mapped against the corresponding biomarker checklist (right).</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e97117_fig02.png"/></fig></sec><sec id="s2-3"><title>Preprocessing</title><sec id="s2-3-1"><title>Overview</title><p>Along with their lack of uniformity, pathology reports tend to exceed optimal context size. Also, there are sections in pathology reports that are interrelated. To maintain semantic integrity, a hierarchical chunking approach was used. Information dilution and loss are common problems when working with long clinical documents such as pathology reports, and the semantic chunking approach is a common solution [<xref ref-type="bibr" rid="ref13">13</xref>]. Using a sliding window approach, the pathology reports were segmented based on clinically relevant boundaries, such as immunohistochemistry, diagnosis, and microscopic findings. We used optical character recognition (OCR) technology, which is used for unstructured data formats such as scanned documents. PDFs of the pathology reports in our dataset were first converted to images with a resolution of 300 DPI through the pdf2image package. The OCR process was then carried out with the use of the pytesseract tool in Tesseract OCR (version 4.x), which processed each page independently. The resulting page-by-page texts were combined using pytesseract to form the whole pathology report before any further processing. This technology was necessary, as a real-world scenario may include handwritten notes, unclear scanned documents, or documents in which pages have been rotated. We achieved a high volume of report processing with OCR technology by using parallelization through Python&#x2019;s ProcessPoolExecutor package. Each pathology report was considered a different task to be processed by a dedicated worker, which improved the speed of preprocessing without changing OCR parameters. Furthermore, each report was treated as a separate task that had to be executed by a worker process using multiple central processing unit threads, which significantly accelerated the process. The extracted text chunks were input into the LLM using schema-constrained prompts that ensured structured output in JSON format with fields for ER_status, PR_status, HER2_status, and Tumor_size [<xref ref-type="bibr" rid="ref14">14</xref>]. For few-shot and CoT prompting methods, more biomarkers, namely, Ki-67 and p53, were also extracted if present in the pathology report. Missing biomarkers were clearly noted as &#x201C;not reported&#x201D; rather than guessed by the model. For the categorical biomarkers (ER, PR, HER2), accuracy was computed as exact label agreement between the LLM-extracted value and the manually curated ground truth. For tumor size, which is reported in free text with heterogeneous units and varying dimensions, the largest reported dimension was first extracted programmatically (with mm to cm normalization applied where appropriate) and then mapped to one of three clinically relevant size categories (&#x003C;2 cm, 2&#x2010;5 cm, &#x003E;5 cm). Tumor size accuracy therefore reflects category-level agreement between the predicted and ground-truth size bins rather than exact numerical or tolerance-based agreement on the raw measurement.</p></sec><sec id="s2-3-2"><title>Generative AI Integration</title><p>Pretrained LLMs from Google&#x2019;s Gemini family and OpenAI&#x2019;s GPT series were evaluated for structured extraction from pathology text [<xref ref-type="bibr" rid="ref15">15</xref>-<xref ref-type="bibr" rid="ref17">17</xref>]. To maximize structured data extraction from clinical texts, 4 prompting methods were studied: zero-shot, one-shot, few-shot, and CoT. In all methods, the same set of pathology reports was used and only the prompts were varied, in order to observe the impact of prompt engineering. This produced accurate identification of target features and their corresponding values. Categorizing breast tumors based on receptor status helps to predict outcomes and assist in the management of breast cancer [<xref ref-type="bibr" rid="ref18">18</xref>]. A lightweight knowledge base was constructed based on World Health Organization immunohistochemical (IHC) interpretation rules. To reduce variation due to terminological inconsistency, synonym normalization was included in the prompt specifications. Thus, terms such as &#x201C;estrogen receptor&#x201D; and &#x201C;ER receptor&#x201D; were normalized to the term &#x201C;ER,&#x201D; while &#x201C;HER2,&#x201D; &#x201C;HER-2,&#x201D; &#x201C;HER2/neu,&#x201D; and &#x201C;HER2 amplification&#x201D; were normalized to the term &#x201C;HER2.&#x201D; The rules stated that both ER and PR are negative if their reported value is less than 1% and positive if it is greater than or equal to 1%. HER2 was interpreted on the basis of the IHC score. In this scoring system, a score of 0 or 1+ is interpreted as negative, a score of 2+ it is interpreted as equivocal or borderline, and a score of 3+ is interpreted as positive. Our knowledge base was injected during prompting conditioning and was also used in OCR-extracted data, which were aligned to the curated biomedical markers. This helped in reducing latency and avoiding OCR-driven retrieval failures, which were observed in early experiments.</p><p>Our goal was to find the LLM that provided the best possible results while performing feature extraction. We examined 3 OpenAI models (GPT-4o mini, released July 18, 2024; GPT-4.1 nano, released April 14, 2025; and GPT-5 nano, released August 7, 2025) and 1 Google model (Gemini 2.5 Flash-Lite). GPT-4o mini was integrated using API calls. It used the instruction hierarchy method, which improved security and also increased robustness by almost 63%. This model is also more economical in comparison [<xref ref-type="bibr" rid="ref19">19</xref>]. In terms of following instructions, GPT-4.1 nano outperformed GPT-4o mini. GPT-4.1 nano has a better context window and improved long-context comprehension, a benchmark used to evaluate an LLM&#x2019;s instruction-following ability. This nano model is the fastest and least expensive of the GPT models we tested. It has a context window of 1 million tokens and scored 80.1% on the Massive Multitask Language Understanding (MMLU) benchmark. Gemini 2.5 Flash-Lite is fast and cost-efficient, works well with high volumes, and is latency sensitive for classification-related tasks. Gemini 2.5 models have shown improvements in coding tasks, mathematics, reasoning, and image understanding. The model we tested has a context window of 1 million tokens and an MMLU benchmark score of 72.9%.</p><p>The OpenAI language models were queried through the Chat Completions API, while Gemini 2.5 Flash-Lite was tested via the google.generativeai.GenerativeModel framework. In all experiments, the temperature value was set to 0 to generate deterministic results.</p></sec><sec id="s2-3-3"><title>Prompting Strategies</title><p>We used 3 prompting strategies. The zero-shot strategy is used to generate a response based on its pretrained knowledge and generalization ability without any guidance on format, style, or reasoning. The prompt provides only a question or instruction; therefore, the model interprets the task on its own, which makes this strategy flexible but sometimes less predictable. It is preferred when minimal prompting is desired or examples are unavailable [<xref ref-type="bibr" rid="ref20">20</xref>].</p><p>A few-shot prompt includes a few examples to guide the model to respond in a particular way. The included reasoning style, output format, and level of detail lead to more controlled and reliable responses. This strategy is useful for complex tasks or when consistent output quality is required.</p><p>CoT prompting takes the form of logical steps and can deliver accurate results with reduced errors. In this strategy, no examples are provided to the LLM; instead, only the methodology for arriving at a logical way to process the instructions is injected [<xref ref-type="bibr" rid="ref21">21</xref>].</p><p>For the one-shot prompting approach, the system was initially presented with an example pathology report along with structured JSON output. In few-shot prompting, in addition to the example pathology report and JSON output, examples of several other annotated pathology reports demonstrating the extraction of tumor size, ER/PR status, HER2 score, Ki-67 category, and the structure of the output were also shown to the model. In CoT prompting, the model was asked to extract step-wise evidence followed by generating the structured output.</p><p>The main objective of this task was to mine the clinicopathological biomarkers as structured data from the unstructured pathology reports. The main variables mined were tumor size, ER status, PR status, and HER2 status. In few-shot and CoT prompting, Ki-67 and p53 information was also mined wherever available. The clinical rules were encoded in the prompts, such as ER/PR positivity (greater than or equal to 1%), HER2 score interpretation (0&#x2010;1+, 2+, 3+), and Ki-67 categories (&#x003C;10%, 10%&#x2010;20%, &#x003E;20%).</p><p>Gemini 2.5 Flash-Lite and the 3 GPT models were considered in order to observe variance in model robustness. Various prompting techniques, as shown in <xref ref-type="fig" rid="figure3">Figure 3</xref>, were studied to improve the overall performance of the LLM models. The overall accuracy performance was calculated as an average of the accuracies per pathological feature, namely, HER2, ER, PR, and tumor size, for each pairing [<xref ref-type="bibr" rid="ref22">22</xref>,<xref ref-type="bibr" rid="ref23">23</xref>].</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Prompt-engineering techniques that are structured to facilitate the extraction and standardization of clinically important breast cancer biomarkers: tumor size, estrogen receptor (ER), progesterone receptor (PR), human epidermal growth factor receptor 2 (HER2), Ki-67, and P53).</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e97117_fig03.png"/></fig><p>Automated extraction was performed using the json.loads() function in Python for model responses. In cases where parsing was not successful, the extraction process took the first JSON object inside the braces and repeated the parsing process. A default value of &#x201C;not reported&#x201D; was used to fill in missing fields. API errors were handled via try-except statements, with unsuccessful API calls resulting in an error label for all extraction fields. Reports that had insufficient OCR text were skipped and labeled as such. Extracted biomarkers were then exported to Microsoft Excel via the openpyxl package. The automated extraction pipeline incorporated comprehensive error-handling methods such as try-except statements to catch failures during API calls and heuristics to exclude reports with low amounts of text extracted by OCR. Although these error-handling mechanisms proved invaluable for achieving robustness of the extraction process, no reports were filtered out from the analysis because of fatal API errors. Thus, 532 pathology reports were evaluated with each model and prompting strategy. If the report contained only a partial parsing error or if a model failed to extract one of the biomarkers, then the corresponding field value was set to &#x201C;not reported.&#x201D; Importantly, the values were not filtered out from the dataset and were scored using ground-truth labels. Therefore, a failure in extraction resulting in a &#x201C;not reported&#x201D; label of a present biomarker would be counted as a false negative.</p></sec><sec id="s2-3-4"><title>Performance Metrics and Statistical Analysis</title><p>To standardize the performance measures of each model in extracting a biomarker, we used a 4-tier taxonomy: positive, negative, equivocal, and not reported (<xref ref-type="table" rid="table1">Table 1</xref>). Confusion matrices for all 4 features using all combinations of models and prompting strategies were computed to compare performances. Evaluation of the models&#x2019; performance was conducted based on the following metrics: accuracy, precision, recall, <italic>F</italic><sub>1</sub>-score, and specificity.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Standardized taxonomy for the evaluation of oncology feature extraction.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Category</td><td align="left" valign="bottom">Matched from</td></tr></thead><tbody><tr><td align="left" valign="top">Positive</td><td align="left" valign="top">Contains &#x201C;positive&#x201D; or is &#x201C;3+&#x201D; / &#x201C;3&#x201D;</td></tr><tr><td align="left" valign="top">Negative</td><td align="left" valign="top">Contains &#x201C;negative&#x201D; or is &#x201C;0&#x201D; / &#x201C;1+&#x201D; / &#x201C;1&#x201D;</td></tr><tr><td align="left" valign="top">Equivocal</td><td align="left" valign="top">Contains &#x201C;equivocal&#x201D; or is &#x201C;2+&#x201D; / &#x201C;2&#x201D;</td></tr><tr><td align="left" valign="top">Not reported</td><td align="left" valign="top">Blank/NaN<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> or contains &#x201C;not,&#x201D; &#x201C;pending,&#x201D; &#x201C;skipped&#x201D;</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>NaN indicates instances when the data-extraction algorithm encountered a medical record where the test result field was completely empty, unrecorded, or missing.</p></fn></table-wrap-foot></table-wrap><p>For robust statistical evaluation and to compute reliable CIs for the prediction accuracy of each model&#x2013;prompting strategy pairing, we used a nonparametric bootstrap algorithm with replacement. For all combinations of model, prompting strategy, and biomarker feature (HER2, ER, and PR) separately, the bootstrap process was performed 2000 times. The individual pathology report was taken as the unit of sampling to account for the underlying dependency structure of the data, such that predictions derived from the same pathology report would not be sampled independently of each other. A resampled index set identical to the original matched dataset in size was created, and the overall accuracy statistic was recomputed solely on the bootstrap sample in each iteration. The 95% CIs were computed using the percentile bootstrap approach, which is based on the 2.5th and 97.5th percentiles of the 2000 resampled accuracy distributions. While bootstrapping was performed independently for each model-prompt-feature combination due to the design of our experiment, in that each combination was trained separately on its own matched dataset, no further stratification by either true class label or pathology report covariates was applied. With regard to handling missing or incorrect inferences and predictions, those that were marked with &#x201C;skipped&#x201D; or &#x201C;error&#x201D; labels were not dropped from the study but instead normalized to the &#x201C;not reported&#x201D; class during preprocessing. They were then incorporated into the computation of accuracy as well as the bootstrapping process. This conservative method guaranteed that the computed CIs represent the true failure rate of the models and do not artificially inflate model performance through omission of unprocessed instances. Finally, in order to ensure the full reproducibility of the results, a random seed of 42 was used for all resampling processes.</p></sec><sec id="s2-3-5"><title>TNBC Classification and Evaluation</title><p>We report the evaluation of TNBC classification using accuracy, precision, recall, specificity, and <italic>F</italic><sub>1</sub>-score. The measures were computed using the categories of true positive, true negative, false positive, and false negative based on the available ground-truth labels.</p><disp-formula id="equWL1"><mml:math id="eqn1"><mml:mtext>Accuracy=</mml:mtext><mml:mfrac><mml:mrow><mml:mtext>TP+TN</mml:mtext></mml:mrow><mml:mrow><mml:mtext>TP+TN+FP+TN</mml:mtext></mml:mrow></mml:mfrac></mml:math></disp-formula><disp-formula id="equWL2"><mml:math id="eqn2"><mml:mtext>Precision=</mml:mtext><mml:mfrac><mml:mrow><mml:mtext>TP</mml:mtext></mml:mrow><mml:mrow><mml:mtext>TP+FP</mml:mtext></mml:mrow></mml:mfrac></mml:math></disp-formula><disp-formula id="equWL3"><mml:math id="eqn3"><mml:mtext>Recall=</mml:mtext><mml:mfrac><mml:mrow><mml:mtext>TP</mml:mtext></mml:mrow><mml:mrow><mml:mtext>TP+FN</mml:mtext></mml:mrow></mml:mfrac></mml:math></disp-formula><disp-formula id="equWL4"><mml:math id="eqn4"><mml:mtext>Specificity=</mml:mtext><mml:mfrac><mml:mrow><mml:mtext>TN</mml:mtext></mml:mrow><mml:mrow><mml:mtext>TN+FP</mml:mtext></mml:mrow></mml:mfrac></mml:math></disp-formula><disp-formula id="E6"><mml:math id="eqn5"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>F</mml:mi><mml:mn>1</mml:mn><mml:mo>=</mml:mo><mml:mn>2</mml:mn><mml:mo>&#x00D7;</mml:mo><mml:mfrac><mml:mrow><mml:mtext>Precision</mml:mtext><mml:mo>&#x00D7;</mml:mo><mml:mtext>Recall</mml:mtext></mml:mrow><mml:mrow><mml:mtext>Precision</mml:mtext><mml:mo>+</mml:mo><mml:mtext>Recall</mml:mtext></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where TP means true positive, TN means true negative, FP means false positive, and FN means false negative.</p></sec></sec><sec id="s2-4"><title>Ethical Considerations</title><p>Deidentified pathology reports of patients with breast cancer were sourced from The Cancer Genome Atlas (TCGA) via the Genomic Data Commons (GDC) Data Portal. Since the experiment only analyzed secondary, deidentified data, no need for ethics committee approval and informed consent was required due to the nature of the experiment itself. All data were accessed and analyzed according to the rules set forth by TCGA/GDC. In future deployment in clinics, proper patient data privacy should be observed when using commercial LLMs.</p><p>Although this study evaluated commercial large language models through API-based inference, only deidentified pathology reports from The Cancer Genome Atlas were processed. In real-world clinical deployment, identifiable pathology reports should undergo appropriate deidentification before external processing. Institutions should ensure compliance with applicable privacy regulations and evaluate the security implications of transmitting clinical data to third-party AI services.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>Four different LLMs were compared based on 3 prompting methods (zero-shot, few-shot, and CoT) for the extraction of 4 clinical features (HER2, ER, PR, and tumor size) from pathology reports. Great variability in performance was seen among models, prompting methods, and targeted clinical features. As reported in <xref ref-type="table" rid="table2">Table 2</xref>, out of all of the models analyzed, Gemini 2.5 Flash-Lite performed the best, with an accuracy of 91.38%, <italic>F</italic><sub>1</sub>-score of 86.48%, and precision of 87.81%. GPT-5 nano produced the highest accuracy (91.69%), but its precision and recall values were slightly lower than Gemini&#x2019;s. The highest specificity value (93.39%) was observed for GPT-4o mini, which means this model showed the best performance in recognizing negative samples; however, its precision (78.39%) and recall (77.48%) values were relatively low. GPT-4.1 nano showed the lowest accuracy value (87.61%), but its precision-recall balance was moderate (<italic>F</italic><sub>1</sub>-score=81.46%).</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Performance of large language models in extracting oncology features.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">Accuracy, %</td><td align="left" valign="bottom">Precision, %</td><td align="left" valign="bottom">Recall, %</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score, %</td><td align="left" valign="bottom">Specificity, %</td></tr></thead><tbody><tr><td align="left" valign="top">GPT-4o mini</td><td align="left" valign="top">89.22</td><td align="left" valign="top">78.39</td><td align="left" valign="top">77.48</td><td align="left" valign="top">77.65</td><td align="left" valign="top">93.39</td></tr><tr><td align="left" valign="top">GPT-4.1 nano</td><td align="left" valign="top">87.61</td><td align="left" valign="top">84.70</td><td align="left" valign="top">80.17</td><td align="left" valign="top">81.46</td><td align="left" valign="top">88.14</td></tr><tr><td align="left" valign="top">GPT-5 nano</td><td align="left" valign="top">91.69</td><td align="left" valign="top">87.32</td><td align="left" valign="top">84.73</td><td align="left" valign="top">85.76</td><td align="left" valign="top">91.24</td></tr><tr><td align="left" valign="top">Gemini 2.5 Flash-Lite</td><td align="left" valign="top">91.38</td><td align="left" valign="top">87.81</td><td align="left" valign="top">85.63</td><td align="left" valign="top">86.48</td><td align="left" valign="top">92.17</td></tr></tbody></table></table-wrap><p>The Gemini 2.5 Flash-Lite model is known for its feasibility in workflows consisting of bulk data, meeting the requirements to perform sensitive tasks (eg, extraction tasks for which errors carry substantial clinical consequences, such as determining ER, PR, and HER2 receptor status, which directly informs the classification of TNBC). This model shows strong dependence on structured prompting. CoT prompting was superior to both zero-shot and few-shot prompting in terms of the extraction of molecular markers (ER, PR, and HER2). For instance, in the Gemini 2.5 Flash-Lite model with CoT prompting, the highest <italic>F</italic><sub>1</sub>-score was observed for the HER2 marker (85.61%), which was far better than with zero-shot (54.32%) and few-shot (43.56%) prompting. On the other hand, there was no clear advantage shown for few-shot prompting compared to zero-shot prompting for some models, including GPT-4.1 nano, for which zero-shot and few-shot showed exactly the same performance for all targets.</p><p>The key takeaway from our analysis is the trade-off between precision and recall and between accuracy and specificity among the models and prompting approaches. Models with high precision often had low recall and vice versa. For instance, GPT-5 nano with zero-shot had very good precision for tumor size (68.96%) but low recall (51.30%), meaning that even though the model was accurate in its prediction, it often failed to detect true positives. On the other hand, Gemini 2.5 Flash-Lite with zero-shot had better recall (75.79%) compared to precision (74.73%). GPT-4o mini was the model with the highest specificity (up to 96.76% for PR) but the lowest accuracy in terms of positive predictions (precision). It seems that the model is very conservative in its prediction, meaning that it tries not to generate false positives. On the other hand, GPT-5 nano with zero-shot generated predictions with much lower specificity (77.78% for HER2, 81.55% for ER). The task of HER2 status extraction showed the highest variability and depended greatly on both the model used and the prompting approach applied. The best <italic>F</italic><sub>1</sub>-score and precision were observed for Gemini 2.5 Flash-Lite with CoT (<italic>F</italic><sub>1</sub>-score=85.61%, precision=91.14%), whereas GPT-4o mini with few-shot prompting showed the worst results (<italic>F</italic><sub>1</sub>-score=50.92%). It is important to mention that zero-shot prompting produced superior results compared to few-shot prompting for HER2 status extraction in all tested models except for GPT-4o mini, where the best <italic>F</italic><sub>1</sub>-score was obtained using CoT (56.58%). This task appears to be complicated due to various conventions of reporting HER2 status. The extraction of tumor size information was a much tougher task than others, with varying results depending on the model used. The best result was recorded by GPT-5 nano with CoT (<italic>F</italic><sub>1</sub>-score=76.28%, accuracy=83.37%), while the poorest result was achieved through the use of GPT-4o mini with CoT (<italic>F</italic><sub>1</sub>-score=68.49%, accuracy=73.16%). The poor results for tumor size information might be attributed to the differences in reporting format (such as 2.3 cm, 23 mm, and pT1c), among other reasons.</p><p>We calculated 95% CIs for accuracy using bootstrapping for each model, strategy, and target (HER2, ER, PR), as reported in <xref ref-type="table" rid="table3">Table 3</xref>. The results showed that consistent improvement was made possible with CoT prompting with higher point estimates and narrower CIs in comparison to zero-shot and few-shot strategies. For example, GPT-4o mini reached an accuracy of 0.938 to 0.973 when HER2 was used as the target, a result considerably better than in zero-shot and few-shot cases, with an accuracy interval of 0.765 to 0.833. This improvement can be seen for both ER and PR targets, with a CI width around 0.035 to 0.042. Also, there were clear differences for each model. GPT-4.1 nano had a rather low level of accuracy in zero-shot and few-shot conditions (HER2, 0.721&#x2010;0.794); nevertheless, with CoT prompting, the accuracy interval became much higher (0.922&#x2010;0.962). In the case of GPT-5 nano, the pattern is somewhat opposite: although the model showed a rather poor level of zero-shot accuracy (intervals centering at 0.65&#x2010;0.73 for ER and PR), CoT prompting increased the accuracy above 0.93 with narrow CIs. Finally, Gemini 2.5 Flash-Lite with CoT prompting had the smallest CI width in PR (0.038), ER (0.036), and HER2 (0.033). CI widths helped to prove the reliability of CoT prompting for the biomarker extraction task.</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Bootstrap 95% CIs by model, prompting strategy, and extraction target (human epidermal growth factor receptor 2 [HER2], estrogen receptor [ER], and progesterone receptor [PR]), with 95% CI widths indicating stability of estimates.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model and prompting strategy</td><td align="left" valign="bottom">Feature</td><td align="left" valign="bottom">Accuracy 95% CI</td><td align="left" valign="bottom">CI width</td></tr></thead><tbody><tr><td align="left" valign="top">GPT-4o mini</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.765, 0.833]</td><td align="left" valign="top">0.068</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.921, 0.961]</td><td align="left" valign="top">0.04</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.914, 0.956]</td><td align="left" valign="top">0.042</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.765, 0.833]</td><td align="left" valign="top">0.068</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.912, 0.954]</td><td align="left" valign="top">0.042</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.903, 0.948]</td><td align="left" valign="top">0.045</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup></td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.938, 0.973]</td><td align="left" valign="top">0.035</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.930, 0.968]</td><td align="left" valign="top">0.038</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.912, 0.954]</td><td align="left" valign="top">0.042</td></tr><tr><td align="left" valign="top">GPT-4.1 nano</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.721, 0.794]</td><td align="left" valign="top">0.073</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.851, 0.906]</td><td align="left" valign="top">0.055</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.851, 0.906]</td><td align="left" valign="top">0.055</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.721, 0.794]</td><td align="left" valign="top">0.073</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.851, 0.906]</td><td align="left" valign="top">0.055</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.851, 0.906]</td><td align="left" valign="top">0.055</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.922, 0.962]</td><td align="left" valign="top">0.04</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.895, 0.941]</td><td align="left" valign="top">0.046</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.847, 0.903]</td><td align="left" valign="top">0.056</td></tr><tr><td align="left" valign="top">GPT-5 nano</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.860, 0.914]</td><td align="left" valign="top">0.054</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.656, 0.734]</td><td align="left" valign="top">0.078</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.648, 0.727]</td><td align="left" valign="top">0.079</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.930, 0.967]</td><td align="left" valign="top">0.037</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.930, 0.967]</td><td align="left" valign="top">0.037</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.916, 0.957]</td><td align="left" valign="top">0.041</td></tr><tr><td align="left" valign="top">Gemini 2.5 Flash-Lite</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.840, 0.898]</td><td align="left" valign="top">0.058</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.912, 0.954]</td><td align="left" valign="top">0.042</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Zero-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.904, 0.949]</td><td align="left" valign="top">0.045</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.847, 0.903]</td><td align="left" valign="top">0.056</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.883, 0.932]</td><td align="left" valign="top">0.049</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Few-shot</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.870, 0.922]</td><td align="left" valign="top">0.052</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">HER2</td><td align="left" valign="top">[0.942, 0.975]</td><td align="left" valign="top">0.033</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">ER</td><td align="left" valign="top">[0.930, 0.968]</td><td align="left" valign="top">0.038</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>CoT</td><td align="left" valign="top">PR</td><td align="left" valign="top">[0.912, 0.954]</td><td align="left" valign="top">0.042</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>CoT: chain of thought.</p></fn></table-wrap-foot></table-wrap><p>Out of 53 actual TNBC cases (according to the golden standard of TNBC that involves the ER-, PR-, and HER2-negative status), 45 cases were detected correctly using the most effective pairing, the GPT-4o mini model with CoT prompting, while 8 cases were misclassified as non-TNBC. Out of 479 actual non-TNBC cases, 477 cases were detected correctly, with only 2 false-positive detections. However, the discrimination ability of the TNBC cases is excellent. GPT-4o mini using CoT prompts demonstrated the highest sensitivity of 84.9% for TNBC detection. It had a specificity of 99.6%, which demonstrates perfect classification of non-TNBC cases with an extremely low false-positive rate of 0.4%. The performance of GPT-5 nano using zero-shot prompting was slightly inferior in sensitivity (83.0%) compared to GPT-4o mini using CoT (84.9%) while maintaining perfect specificity (99.6%), which accurately detected 477 out of 479 non-TNBC cases. The minor difference in sensitivity (1.9%) between the two models indicates that both models are practically suitable for TNBC diagnosis. Supplementary figure S12 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> shows the confusion matrix for TNBC detection.</p></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>A critical consideration in deploying LLMs for clinical applications is the risk of hallucination. Getting results with greater accuracy and minimizing hallucinated results may be the scope of future research. Hallucination is a common complication during feature extraction. While direct hallucination quantification was beyond the scope of this study, the observed precision-recall trade-offs provide indirect evidence of extraction reliability. Zero-shot prompting of models with lower precision, such as GPT-4o mini for HER2 extraction (precision, 56.40%&#x2010;59.57%), may be at elevated risk of false-positive extractions. Conversely, models with lower recall, such as GPT-5 nano with zero-shot prompting for ER extraction (recall, 62.20%), may be more likely to miss true values than to fabricate them. These performance characteristics should inform model selection based on the clinical priority of minimizing false positives versus false negatives. Due to various factors determining tumor size, as well as indirect references to immunohistochemistry, it is essential to extract contextually and factually accurate information [<xref ref-type="bibr" rid="ref24">24</xref>,<xref ref-type="bibr" rid="ref25">25</xref>]. Therefore, a thorough ground-truth analysis was performed manually with domain experts to check the precision of the model extraction. For instance, various sizes of tumor were present in most of the pathology reports, and thus, determining the largest circumference and most detrimental carcinoma was extremely crucial. Prompt generation must be specific and succinct. CoT prompting applies this technique of performing a deeper analysis of the meaning of the IHC indicators and extracting the relevant values. Tumor size had different formats throughout the pathology reports, and hence, extracting not only the largest diameter but also the complete dimensions became necessary. This had a better outcome in few-shot prompting through the use of examples given on how to extract the dimensions [<xref ref-type="bibr" rid="ref26">26</xref>,<xref ref-type="bibr" rid="ref27">27</xref>]. Thus, prompt generation requires being extremely specific and providing a clear context for medical terms as well as pairing prompts with proper examples to extract information in the desired manner. These strategies help in reducing hallucinations and can also be used for training future models.</p><p>In the current study, results show that prompt engineering is crucial in boosting the performance of clinical information extraction from heterogeneous pathology reports. This observation is similar to the conclusions drawn in recent studies, in which reasoning greatly boosts the performance of LLMs in clinical natural language processing due to its ability to facilitate structured reasoning of the narrative [<xref ref-type="bibr" rid="ref28">28</xref>-<xref ref-type="bibr" rid="ref31">31</xref>]. The better performance demonstrated by CoT prompting is due to the ability of CoT prompting to help the LLM break down complex extraction tasks into reasoning steps prior to responding. The pathology reports of breast cancer have free-text narratives, inconsistency in style of reporting, multiple lesions, and variations in IHC format. This makes the task more complex, as it needs more than matching with keywords. CoT prompting is helpful for accurately identifying clinical biomarkers without any ambiguity. The advantages of reasoning-based prompts have also been highlighted by several studies related to clinical summarization, information extraction, and question answering in medicine [<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref32">32</xref>].</p><p>From the analyzed models, Gemini-2.5 Flash-Lite showed the best overall accuracy in extraction despite being one of the smallest models, implying improvement in the domain of instruction following and reasoning skills. Therefore, small, instruction-tuned models are more practical due to their efficiency and better computational capabilities [<xref ref-type="bibr" rid="ref28">28</xref>,<xref ref-type="bibr" rid="ref30">30</xref>]. Moreover, the comparison showed that the prompt design impacted the extraction performance of all models, showing that the optimization of prompts is just as crucial as the choice of the model in healthcare tasks.</p><p>In line with previous studies, extraction accuracy was higher for ER, PR, and HER2 status compared to tumor size [<xref ref-type="bibr" rid="ref33">33</xref>]. However, hormone receptor status is usually expressed in a standardized language, while tumor size may involve various measurements, macro- and microdimensions, or even multiple lesions in one report. Therefore, contextual reasoning is needed to recognize the clinically relevant measurement of the primary tumor. This demonstrates that the performance of extraction depends not only on the model but also on the complexity of pathology reports. Reasoning-based models for LLMs are able to provide help to pathologists as they are capable of extracting clinically relevant markers from unstructured pathology reports through automation. However, expert review is necessary prior to clinical application.</p><p>Hallucination is an important drawback that hinders the clinical implementation of LLMs. Ambiguous language, multiple numerical measurements, and indirect indication of immunohistochemistry in the pathology reports may lead to clinically plausible but incorrect results. To prevent this problem, manual verification of each extracted variable was conducted in the current study. Prompt engineering cannot solve the issue completely, and human verification is still needed [<xref ref-type="bibr" rid="ref34">34</xref>,<xref ref-type="bibr" rid="ref35">35</xref>].</p><p>This research faces certain limitations. It used 532 pathology reports and considered only 4 important clinical parameters (ER, PR, HER2, and tumor size). Generalizability needs to be enhanced through validation on more comprehensive datasets at multiple sites and through consideration of other pathological parameters. In addition, using proprietary LLM models may impact reproducibility due to the constant development of these commercial models. Thus, future research should explore medical LLM models for specific domains, as well as RAG methods and clinical validation.</p><p>In summary, the results show that reasoning-driven prompt engineering improved the performance of LLMs in identifying clinically important biomarkers from unstructured breast cancer pathology reports. The consistently superior results obtained using the CoT prompting method in various models illustrate the potential of prompt engineering as a viable approach to automating the extraction of clinical data. Innovations in the fields of prompt engineering, prevention of hallucinations, and external validation on different clinical datasets, as well as the creation of medically validated LLMs, will pave the way for the incorporation of AI in digital pathology and precision oncology pipelines [<xref ref-type="bibr" rid="ref28">28</xref>,<xref ref-type="bibr" rid="ref29">29</xref>,<xref ref-type="bibr" rid="ref35">35</xref>].</p></sec><sec id="s4-2"><title>Limitations and Future Scope</title><p>One limitation of the current study is the absence of baseline evaluation when compared with other approaches for information extraction, which include the rule-based or regular expression&#x2013;based approaches. Since the aim of the current research was to conduct evaluation of lightweight LLMs with different prompt formats, the comparison with rule-based approaches was out of scope. Future research should conduct analyses of the computational efficiency, implementation ease, and performance of LLM approaches compared with traditional rule-based approaches.</p><p>The current study was conducted on 1 dataset only, comprising 532 TCGA breast cancer pathology reports. While the dataset allowed us to perform a comprehensive comparison among different prompting approaches, future research must be conducted on multi-institutional pathology reports written in different styles.</p><p>Another limitation is that the current study concentrated on finding clinically relevant biomarkers (ER, PR, HER2, and tumor size) and TNBC. Classification of other molecular subtypes, such as Luminal A, Luminal B, and HER2-enriched breast cancer, and TNM staging based on American Joint Committee on Cancer criteria were out of the scope of the study. The future work would include integration of more pathological factors in order to perform classification of other molecular subtypes and TNM staging automatically.</p><p>In the current study, the tested LLMs produced categorical predictions but not probability-based predictions; thus, receiver operating characteristic&#x2013;area under the curve analysis could not be performed. In future work, confidence-based prompting techniques or probability-based LLM output would need to be considered to perform threshold-based performance analysis.</p><p>While GPT-5 nano demonstrated 83% sensitivity for TNBC detection, this false-negative rate is not adequate for autonomous clinical decision-making. Thus, the proposed framework should be considered a clinical decision support framework that requires review by a professional pathologist. Finally, reproducibility is bound to change with future model developments of commercials LLMs. Validation through domain-specific medical LLMs, RAG, and clinical validation will add more robustness to the proposed framework.</p><p>This study did not follow a formal AI-diagnostic reporting checklist such as TRIPOD-AI (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis Using Artificial Intelligence) or STARD-AI (Standards for Reporting of Diagnostic Accuracy Studies Involving Artificial Intelligence). While model settings and error-handling procedures were reported, dataset flow and prompt templates were described narratively rather than as a fully reproducible pipeline, and ground-truth annotation protocol details (number of annotators, interannotator agreement) along with external validation on independent, multi-institutional datasets were outside the scope of the original study design. Future work will adopt a formal AI-reporting checklist and incorporate multiannotator ground-truth curation with agreement statistics, along with prospective external validation, to strengthen the reproducibility and clinical generalizability of this framework.</p></sec><sec id="s4-3"><title>Conclusions</title><p>This study highlights the use of LLMs with appropriate prompting techniques for oncology feature extraction from pathology reports. Gemini 2.5 Flash-lite, GPT-5 nano, and GPT-4o mini achieved the highest accuracy in biomarker status extraction. Among these, GPT-5 nano paired with CoT prompting gave the best results in the detection of tumor size. This finding shows that smaller and more cost-efficient nano models can give better results compared to larger models for information extraction in clinical documents when prompted properly. However, GPT-5 nano had considerably higher processing time for all reports. This could make it less suitable for large-scale deployment. It has immense potential in assisting pathologists and oncologists by automating the extraction of key pathological features from unstructured reports, thereby increasing efficiency and reducing the possibility of human error. This would minimize manual efforts and improving clinical workflow efficiency. Furthermore, when integrated with agentic model context protocol&#x2013;based workflows [<xref ref-type="bibr" rid="ref36">36</xref>,<xref ref-type="bibr" rid="ref37">37</xref>], such systems could continuously validate extracted results, flag TNBC cases in real time, and trigger clinical actions, leading to an AI-driven precision oncology system. This could transform how high-risk breast cancer subtypes such as TNBC are identified and managed in routine clinical practice [<xref ref-type="bibr" rid="ref38">38</xref>,<xref ref-type="bibr" rid="ref39">39</xref>].</p></sec></sec></body><back><ack><p>The authors acknowledge the Vellore Institute of Technology, Vellore, India, for providing a strong research impetus.</p><p>All authors declared that they had insufficient or no funding to support open access publication of this manuscript, including from affiliated organizations or institutions, funding agencies, or other organizations. JMIR Publications provided APF support for the publication of this article.</p></ack><notes><sec><title>Data Availability</title><p>The sample dataset, framework, and codes are available in our GitHub repository [<xref ref-type="bibr" rid="ref40">40</xref>].</p></sec></notes><fn-group><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">CoT </term><def><p>chain of thought</p></def></def-item><def-item><term id="abb2">ER </term><def><p>estrogen receptor</p></def></def-item><def-item><term id="abb3">GDC </term><def><p>Genomic Data Commons</p></def></def-item><def-item><term id="abb4">HER2</term><def><p>human epidermal growth factor receptor 2</p></def></def-item><def-item><term id="abb5">IHC</term><def><p>immunohistochemical</p></def></def-item><def-item><term id="abb6">LLM </term><def><p>large language model</p></def></def-item><def-item><term id="abb7">MMLU</term><def><p>Massive Multitask Language Understanding</p></def></def-item><def-item><term id="abb8">OCR</term><def><p>optical character recognition</p></def></def-item><def-item><term id="abb9">PR</term><def><p>progesterone receptor</p></def></def-item><def-item><term id="abb10">TCGA </term><def><p>The Cancer Genome Atlas</p></def></def-item><def-item><term id="abb11">TNBC </term><def><p>triple-negative breast cancer</p></def></def-item><def-item><term id="abb12">UUID</term><def><p>universally unique identifier</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Abramson</surname><given-names>VG</given-names> </name><name name-style="western"><surname>Mayer</surname><given-names>IA</given-names> </name></person-group><article-title>Molecular heterogeneity of triple negative breast cancer</article-title><source>Curr Breast Cancer Rep</source><year>2014</year><month>09</month><day>1</day><volume>6</volume><issue>3</issue><fpage>154</fpage><lpage>158</lpage><pub-id pub-id-type="doi">10.1007/s12609-014-0152-1</pub-id><pub-id pub-id-type="medline">25419441</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>Aysola</surname><given-names>K</given-names> </name><name name-style="western"><surname>Desai</surname><given-names>A</given-names> </name><name name-style="western"><surname>Welch</surname><given-names>C</given-names> </name><etal/></person-group><article-title>Triple negative breast cancer - an overview</article-title><source>Hereditary Genet</source><year>2013</year><volume>2013</volume><issue>Suppl 2</issue><fpage>001</fpage><pub-id pub-id-type="doi">10.4172/2161-1041.S2-001</pub-id><pub-id pub-id-type="medline">25285241</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>Dent</surname><given-names>R</given-names> </name><name name-style="western"><surname>Trudeau</surname><given-names>M</given-names> </name><name name-style="western"><surname>Pritchard</surname><given-names>KI</given-names> </name><etal/></person-group><article-title>Triple-negative breast cancer: clinical features and patterns of recurrence</article-title><source>Clin Cancer Res</source><year>2007</year><month>08</month><day>1</day><volume>13</volume><issue>15 Pt 1</issue><fpage>4429</fpage><lpage>4434</lpage><pub-id pub-id-type="doi">10.1158/1078-0432.CCR-06-3045</pub-id><pub-id pub-id-type="medline">17671126</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>Hammond</surname><given-names>MEH</given-names> </name><name name-style="western"><surname>Hayes</surname><given-names>DF</given-names> </name><name name-style="western"><surname>Wolff</surname><given-names>AC</given-names> </name><name name-style="western"><surname>Mangu</surname><given-names>PB</given-names> </name><name name-style="western"><surname>Temin</surname><given-names>S</given-names> </name></person-group><article-title>American Society of Clinical Oncology/College of American Pathologists guideline recommendations for immunohistochemical testing of estrogen and progesterone receptors in breast cancer</article-title><source>J Oncol Pract</source><year>2010</year><month>07</month><volume>6</volume><issue>4</issue><fpage>195</fpage><lpage>197</lpage><pub-id pub-id-type="doi">10.1200/JOP.777003</pub-id><pub-id pub-id-type="medline">21037871</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Deka</surname><given-names>P</given-names> </name></person-group><article-title>BioBERT-mnli-snli-scinli-scitail-mednli-stsb</article-title><source>Hugging Face</source><access-date>2026-09-30</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://huggingface.co/pritamdeka/BioBERT-mnli-snli-scinli-scitail-mednli-stsb">https://huggingface.co/pritamdeka/BioBERT-mnli-snli-scinli-scitail-mednli-stsb</ext-link></comment></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>Vaz-Gon&#x00E7;alves</surname><given-names>L</given-names> </name><name name-style="western"><surname>Marquart-Wilson</surname><given-names>L</given-names> </name><name name-style="western"><surname>Protani</surname><given-names>MM</given-names> </name><etal/></person-group><article-title>Capturing breast cancer subtypes in cancer registries: insights into real-world incidence and survival</article-title><source>J Cancer Policy</source><year>2025</year><month>06</month><volume>44</volume><fpage>100567</fpage><pub-id pub-id-type="doi">10.1016/j.jcpo.2025.100567</pub-id><pub-id pub-id-type="medline">40043886</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>Ramchandwani</surname><given-names>S</given-names> </name><name name-style="western"><surname>Dash</surname><given-names>M</given-names> </name><name name-style="western"><surname>Panda</surname><given-names>D</given-names> </name><name name-style="western"><surname>Sahoo</surname><given-names>SS</given-names> </name></person-group><article-title>Molecular and histopathological correlation of breast cancer subtypes with prognostic markers in Eastern India: a study from a tertiary care center</article-title><source>Eur J Cardiovasc Med</source><year>2025</year><volume>15</volume><issue>1</issue><fpage>77</fpage><lpage>81</lpage><pub-id pub-id-type="doi">10.5083/ejcm/25-01-13</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>Chen</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Lyu</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Classifications of triple-negative breast cancer: insights and current therapeutic approaches</article-title><source>Cell Biosci</source><year>2025</year><month>02</month><day>1</day><volume>15</volume><issue>1</issue><fpage>13</fpage><pub-id pub-id-type="doi">10.1186/s13578-025-01359-0</pub-id><pub-id pub-id-type="medline">39893480</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>Xing</surname><given-names>K</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>B</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>Z</given-names> </name><etal/></person-group><article-title>Systemically identifying triple-negative breast cancer subtype-specific prognosis signatures, based on single-cell RNA-seq data</article-title><source>Cells</source><year>2023</year><month>01</month><day>19</day><volume>12</volume><issue>3</issue><fpage>367</fpage><pub-id pub-id-type="doi">10.3390/cells12030367</pub-id><pub-id pub-id-type="medline">36766710</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>Hu</surname><given-names>H</given-names> </name><name name-style="western"><surname>Tong</surname><given-names>K</given-names> </name><name name-style="western"><surname>Tsang</surname><given-names>JY</given-names> </name><etal/></person-group><article-title>Subtyping of triple-negative breast cancers: its prognostication and implications in diagnosis of breast origin</article-title><source>ESMO Open</source><year>2024</year><month>04</month><volume>9</volume><issue>4</issue><fpage>102993</fpage><pub-id pub-id-type="doi">10.1016/j.esmoop.2024.102993</pub-id><pub-id pub-id-type="medline">38613910</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>Ramanan</surname><given-names>N</given-names> </name><name name-style="western"><surname>Malik</surname><given-names>MN</given-names> </name><name name-style="western"><surname>Upneja</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Clinical significance of tumor grade in triple-negative breast cancer: a retrospective cohort analysis</article-title><source>Biomedicines</source><year>2025</year><month>05</month><day>1</day><volume>13</volume><issue>5</issue><fpage>1100</fpage><pub-id pub-id-type="doi">10.3390/biomedicines13051100</pub-id><pub-id pub-id-type="medline">40426927</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>Singhal</surname><given-names>K</given-names> </name><name name-style="western"><surname>Azizi</surname><given-names>S</given-names> </name><name name-style="western"><surname>Tu</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Large language models encode clinical knowledge</article-title><source>Nature</source><year>2023</year><month>08</month><volume>620</volume><issue>7972</issue><fpage>172</fpage><lpage>180</lpage><pub-id pub-id-type="doi">10.1038/s41586-023-06291-2</pub-id><pub-id pub-id-type="medline">37438534</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>Truhn</surname><given-names>D</given-names> </name><name name-style="western"><surname>Loeffler</surname><given-names>CM</given-names> </name><name name-style="western"><surname>M&#x00FC;ller-Franzes</surname><given-names>G</given-names> </name><etal/></person-group><article-title>Extracting structured information from unstructured histopathology reports using generative pre-trained transformer 4 (GPT-4)</article-title><source>J Pathol</source><year>2024</year><month>03</month><volume>262</volume><issue>3</issue><fpage>310</fpage><lpage>319</lpage><pub-id pub-id-type="doi">10.1002/path.6232</pub-id><pub-id pub-id-type="medline">38098169</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>Wang</surname><given-names>D</given-names> </name><name name-style="western"><surname>Ye</surname><given-names>J</given-names> </name><name name-style="western"><surname>Li</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Enhancing large language models for improved accuracy and safety in medical question answering: comparative study</article-title><source>JMIR Med Educ</source><year>2025</year><month>12</month><day>2</day><volume>11</volume><fpage>e70190</fpage><pub-id pub-id-type="doi">10.2196/70190</pub-id><pub-id pub-id-type="medline">41329953</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>Lopresti</surname><given-names>D</given-names> </name></person-group><article-title>Optical character recognition errors and their effects on natural language processing</article-title><source>Int J Doc Anal Recognit</source><year>2009</year><month>09</month><volume>12</volume><issue>3</issue><fpage>141</fpage><lpage>151</lpage><pub-id pub-id-type="doi">10.1007/s10032-009-0094-8</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Shuster</surname><given-names>K</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kiela</surname><given-names>D</given-names> </name><name name-style="western"><surname>Weston</surname><given-names>J</given-names> </name></person-group><article-title>Retrieval augmentation reduces hallucination in conversation</article-title><source>arXiv</source><comment>Preprint posted online on 2021</comment><pub-id pub-id-type="doi">10.48550/arXiv.2104.07567</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>Kung</surname><given-names>TH</given-names> </name><name name-style="western"><surname>Cheatham</surname><given-names>M</given-names> </name><name name-style="western"><surname>Medenilla</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Performance of ChatGPT on USMLE: potential for AI-assisted medical education using large language models</article-title><source>PLOS Digit Health</source><year>2023</year><month>02</month><volume>2</volume><issue>2</issue><fpage>e0000198</fpage><pub-id pub-id-type="doi">10.1371/journal.pdig.0000198</pub-id><pub-id pub-id-type="medline">36812645</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>Zubeda</surname><given-names>S</given-names> </name><name name-style="western"><surname>Kaipa</surname><given-names>PR</given-names> </name><name name-style="western"><surname>Shaik</surname><given-names>NA</given-names> </name><name name-style="western"><surname>Mohiuddin</surname><given-names>MK</given-names> </name><name name-style="western"><surname>Vaidya</surname><given-names>S</given-names> </name><name name-style="western"><surname>Pavani</surname><given-names>B</given-names> </name><etal/></person-group><article-title>Her-2/neu status: a neglected marker of prognostication and management of breast cancer patients in India</article-title><source>Asian Pac J Cancer Prev</source><year>2013</year><volume>14</volume><issue>4</issue><fpage>2231</fpage><lpage>2235</lpage><pub-id pub-id-type="doi">10.7314/apjcp.2013.14.4.2231</pub-id><pub-id pub-id-type="medline">23725118</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Wallace</surname><given-names>E</given-names> </name><name name-style="western"><surname>Xiao</surname><given-names>K</given-names> </name><name name-style="western"><surname>Leike</surname><given-names>RH</given-names> </name><name name-style="western"><surname>Weng</surname><given-names>L</given-names> </name><name name-style="western"><surname>Heidecke</surname><given-names>J</given-names> </name><name name-style="western"><surname>Beutel</surname><given-names>A</given-names> </name></person-group><article-title>The instruction hierarchy: training LLMs to prioritize privileged instructions</article-title><source>arXiv</source><comment>Preprint posted online on 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2404.13208</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Kojima</surname><given-names>T</given-names> </name><name name-style="western"><surname>Gu</surname><given-names>S (Shane</given-names> </name><name name-style="western"><surname>Reid</surname><given-names>M</given-names> </name><name name-style="western"><surname>Matsuo</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Iwasawa</surname><given-names>Y</given-names> </name></person-group><article-title>Large language models are zero-shot reasoners</article-title><conf-name>NIPS&#x2019;22: Proceedings of the 36th International Conference on Neural Information Processing Systems</conf-name><conf-date>Nov 28 to Dec 9, 2022</conf-date><conf-loc>New Orleans, Louisiana, USA</conf-loc><fpage>22199</fpage><lpage>22213</lpage><pub-id pub-id-type="doi">10.52202/068431-1613</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Wei</surname><given-names>J</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Schuurmans</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Chain-of-thought prompting elicits reasoning in large language models</article-title><conf-name>NIPS&#x2019;22: Proceedings of the 36th International Conference on Neural Information Processing Systems</conf-name><conf-date>Nov 28 to Dec 9, 2022</conf-date><conf-loc>New Orleans, Louisiana, USA</conf-loc><fpage>24824</fpage><lpage>24837</lpage><comment><ext-link ext-link-type="uri" xlink:href="http://www.proceedings.com/68431.html">http://www.proceedings.com/68431.html</ext-link></comment><pub-id pub-id-type="doi">10.52202/068431-1800</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>Zagami</surname><given-names>P</given-names> </name><name name-style="western"><surname>Carey</surname><given-names>LA</given-names> </name></person-group><article-title>Triple negative breast cancer: pitfalls and progress</article-title><source>NPJ Breast Cancer</source><year>2022</year><month>08</month><day>20</day><volume>8</volume><issue>1</issue><fpage>95</fpage><pub-id pub-id-type="doi">10.1038/s41523-022-00468-0</pub-id><pub-id pub-id-type="medline">35987766</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>Cai</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Li</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>W</given-names> </name><etal/></person-group><article-title>A machine-learning model for the prediction of triple-negative breast cancer based on multiparameter MRI</article-title><source>Breast Cancer (Dove Med Press)</source><year>2025</year><volume>17</volume><fpage>611</fpage><lpage>625</lpage><pub-id pub-id-type="doi">10.2147/BCTT.S513779</pub-id><pub-id pub-id-type="medline">40686520</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>Srinivasu</surname><given-names>PN</given-names> </name><name name-style="western"><surname>Aruna Kumari</surname><given-names>GL</given-names> </name><name name-style="western"><surname>Ahmed</surname><given-names>S</given-names> </name><name name-style="western"><surname>Alhumam</surname><given-names>A</given-names> </name></person-group><article-title>Exploring agentic AI in healthcare: a study on its working mechanism</article-title><source>Front Med (Lausanne)</source><year>2025</year><volume>12</volume><fpage>1753443</fpage><pub-id pub-id-type="doi">10.3389/fmed.2025.1753443</pub-id><pub-id pub-id-type="medline">41685258</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>Anh-Hoang</surname><given-names>D</given-names> </name><name name-style="western"><surname>Tran</surname><given-names>V</given-names> </name><name name-style="western"><surname>Nguyen</surname><given-names>LM</given-names> </name></person-group><article-title>Survey and analysis of hallucinations in large language models: attribution to prompting strategies or model behavior</article-title><source>Front Artif Intell</source><year>2025</year><volume>8</volume><fpage>1622292</fpage><pub-id pub-id-type="doi">10.3389/frai.2025.1622292</pub-id><pub-id pub-id-type="medline">41098969</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Wei</surname><given-names>J</given-names> </name><name name-style="western"><surname>Schuurmans</surname><given-names>D</given-names> </name><name name-style="western"><surname>Le</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Chi</surname><given-names>E</given-names> </name><name name-style="western"><surname>Zhou</surname><given-names>D</given-names> </name></person-group><article-title>Self-consistency improves chain of thought reasoning in language models</article-title><source>arXiv</source><comment>Preprint posted online on 2022</comment><pub-id pub-id-type="doi">10.48550/arXiv.2203.11171</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Wei</surname><given-names>J</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Schuurmans</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Advances in neural information processing systems 35: 36th conference on neural information processing systems (neurips 2022)</article-title><comment>Preprint posted online on 2022</comment><pub-id pub-id-type="doi">10.52202/068431-1800</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hein</surname><given-names>D</given-names> </name><name name-style="western"><surname>Christie</surname><given-names>A</given-names> </name><name name-style="western"><surname>Holcomb</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Iterative refinement and goal articulation to optimize large language models for clinical information extraction</article-title><source>NPJ Digit Med</source><year>2025</year><month>05</month><day>23</day><volume>8</volume><issue>1</issue><fpage>301</fpage><pub-id pub-id-type="doi">10.1038/s41746-025-01686-z</pub-id><pub-id pub-id-type="medline">40410408</pub-id></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>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><month>04</month><day>8</day><volume>12</volume><fpage>e55318</fpage><pub-id pub-id-type="doi">10.2196/55318</pub-id><pub-id pub-id-type="medline">38587879</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Joseph</surname><given-names>E</given-names> </name><name name-style="western"><surname>Vallee</surname><given-names>P</given-names> </name><name name-style="western"><surname>Perennec</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Development and assessment of a pipeline for extracting structured data from free-text medical reports using a large language model</article-title><source>JCO Clin Cancer Inform</source><year>2026</year><month>02</month><volume>10</volume><fpage>e2500133</fpage><pub-id pub-id-type="doi">10.1200/CCI-25-00133</pub-id><pub-id pub-id-type="medline">41707099</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shool</surname><given-names>S</given-names> </name><name name-style="western"><surname>Adimi</surname><given-names>S</given-names> </name><name name-style="western"><surname>Saboori Amleshi</surname><given-names>R</given-names> </name><name name-style="western"><surname>Bitaraf</surname><given-names>E</given-names> </name><name name-style="western"><surname>Golpira</surname><given-names>R</given-names> </name><name name-style="western"><surname>Tara</surname><given-names>M</given-names> </name></person-group><article-title>A systematic review of large language model (LLM) evaluations in clinical medicine</article-title><source>BMC Med Inform Decis Mak</source><year>2025</year><month>03</month><day>7</day><volume>25</volume><issue>1</issue><fpage>117</fpage><pub-id pub-id-type="doi">10.1186/s12911-025-02954-4</pub-id><pub-id pub-id-type="medline">40055694</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Reichenpfader</surname><given-names>D</given-names> </name><name name-style="western"><surname>M&#x00FC;ller</surname><given-names>H</given-names> </name><name name-style="western"><surname>Denecke</surname><given-names>K</given-names> </name></person-group><article-title>A scoping review of large language model based approaches for information extraction from radiology reports</article-title><source>NPJ Digit Med</source><year>2024</year><month>08</month><day>24</day><volume>7</volume><issue>1</issue><fpage>222</fpage><pub-id pub-id-type="doi">10.1038/s41746-024-01219-0</pub-id><pub-id pub-id-type="medline">39182008</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Choi</surname><given-names>HS</given-names> </name><name name-style="western"><surname>Song</surname><given-names>JY</given-names> </name><name name-style="western"><surname>Shin</surname><given-names>KH</given-names> </name><name name-style="western"><surname>Chang</surname><given-names>JH</given-names> </name><name name-style="western"><surname>Jang</surname><given-names>BS</given-names> </name></person-group><article-title>Developing prompts from large language model for extracting clinical information from pathology and ultrasound reports in breast cancer</article-title><source>Radiat Oncol J</source><year>2023</year><month>09</month><volume>41</volume><issue>3</issue><fpage>209</fpage><lpage>216</lpage><pub-id pub-id-type="doi">10.3857/roj.2023.00633</pub-id><pub-id pub-id-type="medline">37793630</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Omiye</surname><given-names>JA</given-names> </name><name name-style="western"><surname>Gui</surname><given-names>H</given-names> </name><name name-style="western"><surname>Rezaei</surname><given-names>SJ</given-names> </name><name name-style="western"><surname>Zou</surname><given-names>J</given-names> </name><name name-style="western"><surname>Daneshjou</surname><given-names>R</given-names> </name></person-group><article-title>Large language models in medicine: the potentials and pitfalls: a narrative review</article-title><source>Ann Intern Med</source><year>2024</year><month>02</month><volume>177</volume><issue>2</issue><fpage>210</fpage><lpage>220</lpage><pub-id pub-id-type="doi">10.7326/M23-2772</pub-id><pub-id pub-id-type="medline">38285984</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wornow</surname><given-names>M</given-names> </name><name name-style="western"><surname>Xu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Thapa</surname><given-names>R</given-names> </name><etal/></person-group><article-title>The shaky foundations of large language models and foundation models for electronic health records</article-title><source>NPJ Digit Med</source><year>2023</year><month>07</month><day>29</day><volume>6</volume><issue>1</issue><fpage>135</fpage><pub-id pub-id-type="doi">10.1038/s41746-023-00879-8</pub-id><pub-id pub-id-type="medline">37516790</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="web"><article-title>Model context protocol</article-title><source>Anthropic</source><access-date>2026-09-30</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.anthropic.com/news/model-context-protocol">https://www.anthropic.com/news/model-context-protocol</ext-link></comment></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Choi</surname><given-names>JY</given-names> </name><name name-style="western"><surname>Yoo</surname><given-names>TK</given-names> </name></person-group><article-title>Transforming clinical medicine with multimodal artificial intelligence, agentic systems, and the model-context protocol: a perspective on future directions</article-title><source>Discov Health Syst</source><year>2026</year><volume>5</volume><issue>1</issue><fpage>6</fpage><pub-id pub-id-type="doi">10.1007/s44250-026-00343-w</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Zeng</surname><given-names>KG</given-names> </name><name name-style="western"><surname>Dutt</surname><given-names>T</given-names> </name><name name-style="western"><surname>Witowski</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Improving information extraction from pathology reports using named entity recognition</article-title><source>Res Sq</source><year>2023</year><month>07</month><day>3</day><fpage>rs.3.rs-3035772</fpage><pub-id pub-id-type="doi">10.21203/rs.3.rs-3035772/v1</pub-id><pub-id pub-id-type="medline">37461545</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Leaman</surname><given-names>R</given-names> </name><name name-style="western"><surname>Khare</surname><given-names>R</given-names> </name><name name-style="western"><surname>Lu</surname><given-names>Z</given-names> </name></person-group><article-title>Challenges in clinical natural language processing for automated disorder normalization</article-title><source>J Biomed Inform</source><year>2015</year><month>10</month><volume>57</volume><fpage>28</fpage><lpage>37</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2015.07.010</pub-id><pub-id pub-id-type="medline">26187250</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="web"><article-title>Nirmitjain2110/large-language-model-framework-for-structured-biomarker-extraction-and-triplenegative-breast-cancer</article-title><source>GitHub</source><access-date>2026-10-01</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://github.com/nirmitjain2110/Large-Language-Model-Framework-for-Structured-Biomarker-Extraction-and-TripleNegative-Breast-Cancer">https://github.com/nirmitjain2110/Large-Language-Model-Framework-for-Structured-Biomarker-Extraction-and-TripleNegative-Breast-Cancer</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Additional experimental details on structured prompting approaches for the extraction of oncology features.</p><media xlink:href="formative_v10i1e97117_app1.docx" xlink:title="DOCX File, 4714 KB"/></supplementary-material></app-group></back></article>