<?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">v10i1e92871</article-id><article-id pub-id-type="doi">10.2196/92871</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 Performance in Structured Data Extraction From Neurosurgical Electronic Health Records: Comparative Benchmark Study</article-title></title-group><contrib-group><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>&#x010C;ern&#x00FD;</surname><given-names>Martin</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>M&#x00E1;jovsk&#x00FD;</surname><given-names>Martin</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Lama</surname><given-names>Sanju</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Guo</surname><given-names>Edward</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hallak</surname><given-names>Hana</given-names></name><degrees>MBBS</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Singh</surname><given-names>Rahul</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Riva-Cambrin</surname><given-names>Homer</given-names></name><degrees>BSc</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>&#x0160;ustek</surname><given-names>Petr</given-names></name><degrees>LLD, PhD</degrees><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>&#x0160;irok&#x00E1;</surname><given-names>Lucie</given-names></name><degrees>LLM</degrees><xref ref-type="aff" rid="aff6">6</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hor&#x010D;i&#x010D;&#x00E1;kov&#x00E1;</surname><given-names>Katarina</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff7">7</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hu&#x017E;ava</surname><given-names>Samuel</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff8">8</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Sajfr&#x00ED;dov&#x00E1;</surname><given-names>Kate&#x0159;ina</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff9">9</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>El-Haj Ahmadov&#x00E1;</surname><given-names>Kl&#x00E1;ra</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff9">9</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Sutherland</surname><given-names>Garnette Roy</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Netuka</surname><given-names>David</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib></contrib-group><aff id="aff1"><institution>Department of Neurosurgery and Neurooncology, 1st Faculty of Medicine, Charles University, Military University Hospital Prague</institution><addr-line>U Vojensk&#x00E9; nemocnice 1200</addr-line><addr-line>Prague</addr-line><country>Czech Republic</country></aff><aff id="aff2"><institution>Department of Clinical Neurosciences, Project neuroArm, Hotchkiss Brain Institute, University of Calgary</institution><addr-line>Calgary</addr-line><addr-line>AB</addr-line><country>Canada</country></aff><aff id="aff3"><institution>Department of Neurosurgery, Neurosurgery Residency Program, University of Toronto</institution><addr-line>Toronto</addr-line><addr-line>ON</addr-line><country>Canada</country></aff><aff id="aff4"><institution>Department of Neurosurgery, King Faisal Specialist Hospital &#x0026; Research Centre</institution><addr-line>Riyadh</addr-line><country>Saudi Arabia</country></aff><aff id="aff5"><institution>Department of Medical Law, Faculty of Law, Charles University</institution><addr-line>Prague</addr-line><country>Czech Republic</country></aff><aff id="aff6"><institution>Department of Civil Law, Faculty of Law, Charles University</institution><addr-line>Prague</addr-line><country>Czech Republic</country></aff><aff id="aff7"><institution>Jessenius Faculty of Medicine, Comenius University Bratislava</institution><addr-line>Martin</addr-line><addr-line>Bratislava Region</addr-line><country>Slovakia</country></aff><aff id="aff8"><institution>2nd Faculty of Medicine, Charles University</institution><addr-line>Prague</addr-line><country>Czech Republic</country></aff><aff id="aff9"><institution>1st Faculty of Medicine, Charles University</institution><addr-line>Prague</addr-line><country>Czech Republic</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>MacNeill</surname><given-names>Luke</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Kahl</surname><given-names>Fabian</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Sun</surname><given-names>Wenzheng</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to David Netuka, MD, PhD, Department of Neurosurgery and Neurooncology, 1st Faculty of Medicine, Charles University, Military University Hospital Prague, U Vojensk&#x00E9; nemocnice 1200, Prague, 16902, Czech Republic, +420 973 202 963; <email>david.netuka@uvn.cz</email></corresp><fn fn-type="equal" id="equal-contrib1"><label>*</label><p>these authors contributed equally</p></fn></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>24</day><month>11</month><year>2026</year></pub-date><volume>10</volume><elocation-id>e92871</elocation-id><history><date date-type="received"><day>04</day><month>02</month><year>2026</year></date><date date-type="rev-request"><day>28</day><month>04</month><year>2026</year></date><date date-type="rev-recd"><day>09</day><month>07</month><year>2026</year></date><date date-type="accepted"><day>10</day><month>07</month><year>2026</year></date></history><copyright-statement>&#x00A9; Martin &#x010C;ern&#x00FD;, Martin M&#x00E1;jovsk&#x00FD;, Sanju Lama, Edward Guo, Hana Hallak, Rahul Singh, Homer Riva-Cambrin, Petr &#x0160;ustek, Lucie &#x0160;irok&#x00E1;, Katarina Hor&#x010D;i&#x010D;&#x00E1;kov&#x00E1;, Samuel Hu&#x017E;ava, Kate&#x0159;ina Sajfr&#x00ED;dov&#x00E1;, Kl&#x00E1;ra El-Haj Ahmadov&#x00E1;, Garnette Roy Sutherland, David Netuka. Originally published in JMIR Formative Research (<ext-link ext-link-type="uri" xlink:href="https://formative.jmir.org">https://formative.jmir.org</ext-link>), 24.11.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/e92871"/><abstract><sec><title>Background</title><p>Large language models (LLMs) are increasingly used to extract information from electronic health records (EHRs). Given the rapid pace of LLM development, robust scenario-specific benchmarks are essential to evaluate clinical usefulness and support safe deployment.</p></sec><sec><title>Objective</title><p>This study aimed to compare contemporary LLMs for structured data extraction from real neurosurgical EHRs written in Czech.</p></sec><sec sec-type="methods"><title>Methods</title><p>In a prospective single-center cohort, 172 hospitalized patients provided informed consent for the use of anonymized EHRs. For each patient, predefined records were collected and concatenated. Ground truth for 35 data points was established by dual extraction with consensus. A standardized prompt requesting JSON output was submitted to 19 LLMs. The primary outcome was overall accuracy; secondary outcomes were category-level accuracy and the proportion of complete machine-readable outputs.</p></sec><sec sec-type="results"><title>Results</title><p>A total of 6264 documents were collected (median 33, IQR 25-41 per patient). Ground truth was established with 92.6% initial interrater agreement before consensus. Several models produced complete JSON outputs for 100% of cases (Claude 4.1 Opus, Grok 4, and Gemini 2.5 Flash); GPT-4.1 (DeepSearch) and GPT-5 completed 99.4%. The highest accuracy was achieved by GPT-4.1 (87.6%), followed by GPT-4.5 (85.6%), Claude 4.1 (84.8%), and Grok 4 (84.2%). Accuracy declined by data type: binary (up to 95%), numeric (~89%), multiple-choice (~75%), and short text (~78%).</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>Current LLMs can reliably extract structured clinical information from full, non-English EHRs, while older or smaller models show major limitations. A hybrid workflow&#x2014;automated extraction with targeted validation&#x2014;appears practical for research use.</p></sec></abstract><kwd-group><kwd>large language models</kwd><kwd>electronic health records</kwd><kwd>neurosurgery</kwd><kwd>data extraction</kwd><kwd>patient records</kwd><kwd>artificial intelligence</kwd><kwd>AI</kwd><kwd>data protection</kwd><kwd>prompt engineering</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Large language models (LLMs) have rapidly become a general-purpose technology for natural language processing (NLP) and text generation across a wide range of domains. In medicine, they are increasingly explored as tools for information retrieval, summarization, documentation support, and decision assistance. Multiple standardized tests have been proposed to measure LLM performance across many different domains, such as the Massive Multitask Language Understanding benchmark and its later versions [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref3">3</xref>]. Both the potential and the risks of using LLMs in clinical settings have been described, drawing attention to issues such as hallucinated outputs, bias, data security, and the need for consistent and transparent evaluation standards [<xref ref-type="bibr" rid="ref4">4</xref>-<xref ref-type="bibr" rid="ref8">8</xref>].</p><p>Within health care, LLMs, which are particularly well suited for processing unstructured clinical text, are now being applied to diverse tasks including querying medical questions, evidence summarization, biomedical literature mining, and patient communication. Systems such as Med-PaLM and related models have achieved or approached expert-level performance on medical exam&#x2013;style benchmarks, while domain-specific evaluations have compared closed- and open-source models across multiple biomedical NLP tasks [<xref ref-type="bibr" rid="ref9">9</xref>-<xref ref-type="bibr" rid="ref11">11</xref>]. However, work in this area is characterized by substantial heterogeneity in task definitions, evaluation metrics, and reporting standards [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref12">12</xref>].</p><p>Benchmarking efforts tailored to medicine have started to move beyond exam questions toward more realistic day-to-day clinical scenarios. Multilingual benchmarks such as BRIDGE and biomedical NLP suites assess LLMs across question answering, information extraction, classification, and summarization using real-world clinical and biomedical sources [<xref ref-type="bibr" rid="ref10">10</xref>,<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref13">13</xref>]. Several recent studies have specifically evaluated LLMs for structured data extraction from electronic health records (EHRs), generally reporting encouraging performance but also notable variability between models, tasks, and clinical settings [<xref ref-type="bibr" rid="ref14">14</xref>-<xref ref-type="bibr" rid="ref16">16</xref>]. These studies consistently underscore that model choice, prompt design, and domain shift can substantially impact extraction accuracy.</p><p>However, the LLM landscape is evolving extremely quickly, with new proprietary and open-weight models released at short intervals and substantial improvements in reasoning, context length, and instruction following [<xref ref-type="bibr" rid="ref17">17</xref>-<xref ref-type="bibr" rid="ref34">34</xref>]. To expand the current evidence base, we designed a benchmark study specifically targeting the ability of contemporary LLMs (all prompts were submitted on December 8 and 9, 2025) to extract predefined structured clinical data points from real-world neurosurgical non-English (Czech) EHRs and to compare their performance in terms of both machine-readable completeness and extraction accuracy. The aim of this study was to provide practical actionable recommendations based on the performance of the compared models on various tasks.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Study Design</title><p>This was a prospective, single-center, cross-sectional benchmark study comparing 19 contemporary LLMs for structured data extraction from real-world neurosurgical EHRs. Models were evaluated against a consensus-derived human ground truth for completeness and accuracy of extraction for 35 predefined clinical data points. This study was reported in accordance with the TRIPOD-LLM (Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2013;Large Language Model) reporting guideline [<xref ref-type="bibr" rid="ref35">35</xref>].</p></sec><sec id="s2-2"><title>Patients</title><p>Patients hospitalized at the Department of Neurosurgery and Neurooncology of the Military University Hospital Prague during a 1-month enrollment period (November 2023) were screened for inclusion in the study. Eligible participants were adults (aged &#x2265;18 years) admitted during the enrollment window who had the capacity to provide informed consent and signed written informed consent to participate in the study. Patients who declined participation, were unable to provide written informed consent, or were not discharged during the enrollment period or within 7 days thereafter were excluded. Individuals with multiple qualifying hospitalizations during the enrollment period were included as separate participants.</p></sec><sec id="s2-3"><title>Ground Truth Extraction</title><p>A total of 35 predefined data points were extracted from the EHR at the time of discharge (<xref ref-type="table" rid="table1">Table 1</xref>). Data points were categorized as binary (yes or no; n=13), free-text (n=7), numeric (n=8), or multiple-choice variables (n=7). Two authors (KH and SH) independently reviewed the complete patient records and recorded each data point. Ground truth was established by comparing both extractions. In cases of disagreement or ambiguity, 2 senior authors (M&#x010C; and MM) jointly rereviewed the source documentation and resolved discrepancies by consensus. If unable to establish a consensus or if the information was not present, the data point was omitted for the respective case. <xref ref-type="fig" rid="figure1">Figure 1</xref> presents a schematic overview of the experimental design.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Predefined clinical data points extracted from patient records.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Category</td><td align="left" valign="bottom">Data points (type)</td></tr></thead><tbody><tr><td align="left" valign="top">Hospitalization</td><td align="left" valign="top">Admission diagnosis (text), admission diagnosis <italic>International Classification of Diseases</italic> code (text), hospitalization purpose (therapeutic or diagnostic), surgery (text), further patient course (discharge or transfer), number of days in ICU (number), and revision surgery (text, if the patient underwent a revision)</td></tr><tr><td align="left" valign="top">Neurological state on admission</td><td align="left" valign="top">Glasgow Coma Scale (number), speech impairment (yes or no), motor impairment (no, upper extremity monoparesis, lower extremity monoparesis, hemiparesis, paraparesis, quadriparesis, or cranial nerve paresis), sensory impairment (yes or no), upper motor neuron signs (yes or no), pain intensity (number and visual analog scale), pain localization (text), and visual impairment (yes or no)</td></tr><tr><td align="left" valign="top">Neurological state at the first postoperative day</td><td align="left" valign="top">Same as on admission</td></tr><tr><td align="left" valign="top">Neurological state at discharge</td><td align="left" valign="top">Same as on admission</td></tr><tr><td align="left" valign="top">Therapy</td><td align="left" valign="top">Corticotherapy (yes or no), algotherapy (no, peroral, intravenous, or parenteral opioids), antibiotics (no, peroral, or intravenous, excluding perioperative prophylaxis), and antibiotics (number of days, excluding perioperative prophylaxis)</td></tr></tbody></table></table-wrap><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Schematic overview of the experimental design, illustrating the parallel processes of human ground truth extraction (green) and automated model&#x2013;based extraction (red), converging on the final accuracy comparison. LLM: large language model.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e92871_fig01.png"/></fig><p>List of the 35 structured clinical data points used for model evaluation, categorized by hospitalization course, neurological status, and therapeutic interventions. Variables are grouped by data type.</p></sec><sec id="s2-4"><title>Dataset Collection and Anonymization</title><p>For each participant, a predefined set of EHR document types was collected (<xref ref-type="table" rid="table2">Table 2</xref>). All documents were exported automatically from the institutional hospital information system (AMIS*H version 2.0; ICZ sro).</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Types of electronic health record (EHR) documents collected for each participant.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">EHR types</td><td align="left" valign="bottom">Description</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="2">EHR types collected for the hospitalization period</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Clinical summaries</td><td align="left" valign="top">A brief summary of the patient, usually 1 or 2 paragraphs, includes relevant patient history, presenting symptoms, performed procedures, and imaging exams; at least one at admission, with possibly multiple such summaries during the hospitalization</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>History of present illness</td><td align="left" valign="top">Usually 1 or 2 paragraphs, including the nature and onset of symptoms, their duration, severity, and progression, as well as factors that exacerbate or alleviate them</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neurological assessment on admission</td><td align="left" valign="top">An examination report detailing consciousness, orientation, speech, cranial nerve functions, motor functions, sensory system functions, reflexes, gait, cerebellar functions, and meningeal signs</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Consultation notes</td><td align="left" valign="top">Reports from interdisciplinary consultations requested during the hospitalization</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Progress notes</td><td align="left" valign="top">Daily notes reporting any changes in patient signs and symptoms and performed procedures</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Prescription orders</td><td align="left" valign="top">Daily drug prescriptions</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Therapeutic orders</td><td align="left" valign="top">Prescriptions for nonpharmacological therapy, including physiotherapy, ergotherapy, wound management, catheters, and dietary measures</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Nursing assessment</td><td align="left" valign="top">Includes vital signs, physical and mental status assessment, fluid intakes and outputs, pain assessment, patient education, and communication and safety measures</td></tr><tr><td align="left" valign="top" colspan="2">EHR types collected for the 2 years before hospitalization</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Neurosurgery and neurology outpatient consult notes</td><td align="left" valign="top">Include the patient&#x2019;s medical history, neurological findings, diagnosis, treatment plan, and follow-up instructions relevant to their neurological condition</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Emergency department visit summaries</td><td align="left" valign="top">Typically include the reason for the visit, initial assessment, interventions provided, results of diagnostic tests, final diagnosis, and any follow-up plans or referrals</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Radiology reports</td><td align="left" valign="top">Detailed findings from imaging studies, including information about the technique used, area imaged, findings, and any potential abnormalities or diagnostic clues relevant to the patient&#x2019;s condition</td></tr></tbody></table></table-wrap><p>Anonymization was performed manually by the authors (KS and KA). All direct identifiers (including patient names, personal identification numbers, and names of health care professionals or institutions) were removed. Temporal information was transformed into relative references (eg, &#x201C;September 27th&#x201D; to &#x201C;second postoperative day&#x201D;). Names and serial numbers of medical devices were removed from imaging reports. No information that could reasonably facilitate reidentification was retained. The order of documents in the resulting dataset was randomized.</p><p>The English terms were chosen to match terminology commonly used in Epic (Epic Systems Corporation). The right column provides a brief explanation of each EHR type.</p></sec><sec id="s2-5"><title>LLM Prompting</title><p>For each patient, all collected and deidentified clinical records were concatenated into a single text document. A standardized prompt was appended to the end of this document, instructing the model to extract 35 predefined clinical data points and to return the results in machine-readable JSON format, using the exact field names specified in the study protocol.</p><p>Each concatenated input was submitted to all evaluated language models under identical prompting conditions. The following models were included in the experiment: OpenAI GPT-4 [<xref ref-type="bibr" rid="ref17">17</xref>], OpenAI GPT-4 o [<xref ref-type="bibr" rid="ref18">18</xref>], OpenAI GPT-3.5 [<xref ref-type="bibr" rid="ref19">19</xref>], OpenAI GPT-4.1 (DeepSearch mode) [<xref ref-type="bibr" rid="ref20">20</xref>], OpenAI GPT-4.5 [<xref ref-type="bibr" rid="ref21">21</xref>], OpenAI GPT-5 [<xref ref-type="bibr" rid="ref22">22</xref>], Google Bard (Legacy) [<xref ref-type="bibr" rid="ref23">23</xref>], Google Gemini 2.5 Flash [<xref ref-type="bibr" rid="ref24">24</xref>], Anthropic Claude 2 [<xref ref-type="bibr" rid="ref25">25</xref>], Anthropic Claude 4 Sonnet [<xref ref-type="bibr" rid="ref26">26</xref>], Anthropic Claude 4.1 Opus [<xref ref-type="bibr" rid="ref27">27</xref>], xAI Grok 3 [<xref ref-type="bibr" rid="ref28">28</xref>], xAI Grok 4 [<xref ref-type="bibr" rid="ref29">29</xref>], DeepSeek V2 [<xref ref-type="bibr" rid="ref30">30</xref>], neuroGPT-X [<xref ref-type="bibr" rid="ref31">31</xref>], Cohere Command R+ [<xref ref-type="bibr" rid="ref32">32</xref>], Meta LLaMA-2 [<xref ref-type="bibr" rid="ref33">33</xref>], and Meta LLaMA-3 [<xref ref-type="bibr" rid="ref34">34</xref>]. All prompts were submitted to the evaluated models on December 8 and 9, 2025.</p><p>All clinical source texts and prompts were written in Czech, reflecting the language of the institutional EHR and ensuring a consistent linguistic setting across models. The standardized prompt used in this study is provided in full in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> (original Czech version) and <xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref> (English translation). The actual patient documentation is represented by a placeholder in the multimedia appendices.</p></sec><sec id="s2-6"><title>Correctness Evaluation</title><p>Responses that did not contain syntactically valid JSON were classified as fully incorrect, and all data points within such responses were considered incorrect. Within valid JSON outputs, missing fields were treated as incorrect extractions.</p><p>For binary (yes or no) variables, model outputs were compared directly against the ground truth Boolean value. For numeric variables, exact numeric equivalence was required. For multiple-choice variables, the model output was required to match one of the predefined enumerated values.</p><p>For free-text variables (admission diagnosis, <italic>International Classification of Diseases</italic> code, surgical procedure name, revision surgery name, pain localization, and 2 additional text fields), exact string matching was not required. Instead, model outputs were evaluated manually by 2 authors (M&#x010C; and MM) against the ground truth, with semantic equivalence considered correct. Responses were accepted as correct if they conveyed the same clinical meaning as the ground truth, regardless of wording, abbreviation style, or level of detail, provided no clinically meaningful information was added or omitted. For example, &#x201C;HGG PO dx.&#x201D; and &#x201C;glioblastoma of the right parietal lobe&#x201D; were both accepted as correct for the same ground truth value. Responses that introduced clinically incorrect information, omitted a key qualifier, or described a meaningfully different entity were marked as incorrect. In cases of disagreement between the two evaluating authors, a consensus decision was reached through discussion.</p></sec><sec id="s2-7"><title>Outcomes</title><p>The primary outcome was the overall extraction accuracy, defined as the percentage of correctly extracted data points out of all evaluable ground truth values. Secondary outcomes were the percentage of correctly extracted data points within each question category (yes or no, text, numeric, and multiple choice), and the proportion of complete, machine-readable JSON replies (ie, syntactically valid JSON containing all 35 data points).</p></sec><sec id="s2-8"><title>Statistical Analysis</title><p>Descriptive statistics were reported as means with 95% CI for continuous outcomes and as absolute counts with percentages for categorical outcomes. Interrater agreement for ground truth establishment was assessed using Cohen &#x03BA;. For JSON completeness, pairwise comparisons between the best-performing model and each remaining model were conducted using the McNemar test on paired binary outcomes (df=1 for all tests). For extraction accuracy, per-patient scores were computed by aggregating binary correct or incorrect outcomes across all applicable data points, yielding one continuous score per patient per model. Pairwise comparisons of per-patient scores against the best-performing model were conducted using paired-samples 2-tailed <italic>t</italic> tests (df=171 for all comparisons). Normality of pairwise differences was assessed using the Shapiro-Wilk test; where the assumption of normality was violated (Shapiro-Wilk, <italic>P</italic>&#x003C;.05), Wilcoxon signed-rank tests were used instead. Effect sizes are reported as Cohen <italic>d</italic> for <italic>t</italic> tests and rank-biserial correlation for Wilcoxon tests (nonparametric test, df not applicable; n=172). To control for multiple comparisons, Bonferroni correction was applied within each outcome family (18 comparisons per outcome). A corrected <italic>P</italic> value below .05 was considered statistically significant. The detailed statistical outcomes are available in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>.</p></sec><sec id="s2-9"><title>Ethical Considerations</title><p>This study was approved by the Institutional Review Board of the Military University Hospital Prague (108/18-101/2023). Written informed consent was obtained from all participants, explicitly covering the use of anonymized EHRs by third-party systems and the publication of aggregated results. All direct patient identifiers, including names, personal identification numbers, and names of health care professionals and institutions, were removed prior to processing; temporal references were replaced with relative descriptors. The study was conducted in accordance with the ethical standards of the Declaration of Helsinki. No participant compensation was provided.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Patients and Data</title><p>During the enrollment period, 223 patients were hospitalized at our institution. Of 196 (87.9%, 196/223) eligible and invited patients, 176 (89.8%, 176/196) agreed to participate. A total of 172 (97.7%, 172/176) patients were discharged during the enrollment period or within 1 week thereafter and were included in the study sample. The flow of patient inclusion is illustrated in <xref ref-type="fig" rid="figure2">Figure 2</xref>. The cohort consisted of 81 (47.1%, 81/172) male patients and 91 (52.9%, 91/172) female patients, with a mean age of 59.1 (SD 15.3) years at admission. The median length of hospitalization was 6 (IQR 5-7) days.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Flowchart of patient inclusion, from initial screening through enrollment in the study sample.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e92871_fig02.png"/></fig><p>Most patients were treated for spinal conditions (n=88), followed by brain tumors (n=40), vascular disorders (n=24), functional disorders (n=9), surgical complications (n=9), and peripheral nerve conditions (n=2).</p><p>In total, 6264 individual patient record items were collected (<xref ref-type="table" rid="table3">Table 3</xref>), corresponding to a median of 33 items per patient (IQR 25-41). The mean length of the concatenated preoperative documentation was 906.0 (SD 158.7) words. Ground truth could be established for 91.9% of data points. The initial interrater agreement prior to consensus was 92.6% (&#x03BA;=0.46).</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Total number and median per-patient counts of collected patient record types.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Patient record type</td><td align="left" valign="bottom">Per patient, median (IQR)</td></tr></thead><tbody><tr><td align="left" valign="top">Clinical summaries (n=224)</td><td align="left" valign="top">1 (1-1)</td></tr><tr><td align="left" valign="top">History of present illness (n=172)</td><td align="left" valign="top">1 (1-1)</td></tr><tr><td align="left" valign="top">Neurological assessment on admission (n=172)</td><td align="left" valign="top">1 (1-1)</td></tr><tr><td align="left" valign="top">Consultation notes (n=67)</td><td align="left" valign="top">0 (0-1)</td></tr><tr><td align="left" valign="top">Progress notes (n=998)</td><td align="left" valign="top">6 (4-7)</td></tr><tr><td align="left" valign="top">Prescription orders (n=891)</td><td align="left" valign="top">5 (4-6)</td></tr><tr><td align="left" valign="top">Therapeutic orders (n=905)</td><td align="left" valign="top">5 (4-6)</td></tr><tr><td align="left" valign="top">Nursing assessment (n=2170)</td><td align="left" valign="top">10 (6-14)</td></tr><tr><td align="left" valign="top">Outpatient neurosurgery consults (n=314)</td><td align="left" valign="top">1 (1-2)</td></tr><tr><td align="left" valign="top">Outpatient neurology consults (n=54)</td><td align="left" valign="top">0 (0-0)</td></tr><tr><td align="left" valign="top">Emergency department visit summaries (n=33)</td><td align="left" valign="top">0 (0-0)</td></tr><tr><td align="left" valign="top">Radiology reports (n=264)</td><td align="left" valign="top">1 (0-2)</td></tr><tr><td align="left" valign="top">Total (n=6264)</td><td align="left" valign="top">33 (25-41)</td></tr></tbody></table></table-wrap><p>The table summarizes the volume of documentation extracted for each record type across all enrolled patients, reported as the total number of documents and the median number per patient with IQR.</p></sec><sec id="s3-2"><title>Machine Readability and Completeness of Responses</title><p>Claude Opus 4.1, Grok 4, and Gemini 2.5 Flash generated 100% complete JSON outputs with no parsing failures. Performance in the near-state-of-the-art tier remained stable, with models such as GPT-4.1 (DeepSearch mode), GPT-5, GPT-4, and Claude Sonnet 4 demonstrating minimal failure modes. The lowest performance was observed with LLaMA 2, for which almost all outputs were unusable due to excessively long prompts or malformed structure. For early or smaller models, the dominant failure mode was structural unreadability, in which the JSON response was unparsable, whereas for the strongest models, the rare failures were almost exclusively due to partial outputs in which one or more fields were omitted.</p><p>Pairwise McNemar tests showed that the reference model was significantly more complete than most older or smaller models. Newer top-tier models&#x2014;GPT-4.1, GPT-5, GPT-4.5, DeepSeek V2, and Claude 4 Sonnet&#x2014;performed comparably to the reference, with no meaningful difference between them, while GPT-4, GPT-4o, and neuroGPT-X showed lower completeness rates than the reference that did not reach statistical significance after Bonferroni correction (<italic>P</italic>=.07).</p><p>A visual comparison of the distribution of output types for each model is shown in <xref ref-type="fig" rid="figure3">Figure 3</xref>. Detailed machine-readability outcomes, including the classification of each response (complete, incomplete, unparsable, declined, or prompt too long) and pairwise McNemar test results against the reference model, are available in <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>, reported separately given the large number of pairwise statistical comparisons performed.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Distribution of machine-readable JSON outputs across models. Bars represent the percentage of outcomes relative to 172 test cases per model. Models are ordered by completeness rate.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="formative_v10i1e92871_fig03.png"/></fig></sec><sec id="s3-3"><title>Data Extraction Accuracy</title><p>Across all evaluated data points, the highest overall accuracy was achieved by OpenAI GPT-4.1 (DeepSearch mode), followed closely by OpenAI GPT-4.5, Anthropic Claude 4.1 Opus, and xAI Grok 4. A group of models, including DeepSeek V2, Anthropic Claude 4 Sonnet, and OpenAI GPT-5, reached comparable performance levels. By contrast, older or smaller-scale models showed substantially lower accuracy, with LLaMA 2 performing close to random output. Paired 2-tailed <italic>t</italic> tests with Bonferroni correction confirmed that GPT-4.1 significantly outperformed all models except GPT-4.5, against which no significant difference was detected (<italic>t</italic><sub>171</sub>=&#x2013;1.747; <italic>P</italic>=.99). Among the remaining top-tier models, Claude 4.1 Opus (<italic>P</italic>&#x003C;.001), Grok 4 (<italic>P</italic>&#x003C;.001), Claude 4 Sonnet (<italic>P</italic>&#x003C;.001), DeepSeek V2 (<italic>P</italic>&#x003C;.001), and GPT-5 (<italic>P</italic>&#x003C;.001) all differed significantly from the reference despite their numerically close accuracy values.</p><p>When stratified by question type, all models performed best on binary (yes or no) queries. Accuracy decreased for numeric extraction tasks, with top models achieving 89% to 90%, and declined further for multiple-choice classification, where performance for the best models ranged from 74% to 80%. The lowest performance was observed for open-ended textual output, indicating that free-text generation remained the most error-prone task in automated clinical data extraction.</p><p>A summary of the total accuracy and the performance across the 4 question categories for all evaluated models is provided in <xref ref-type="table" rid="table4">Table 4</xref>. Complete per-patient accuracy results, including pairwise statistical comparisons against the reference model and associated effect sizes, are presented in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Overall and category-level accuracy of evaluated language models<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup>.</p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Models</td><td align="left" valign="bottom">Overall accuracy (%), mean (SD; 95% CI)</td><td align="left" valign="bottom">Yes or no questions (%), mean (SD; 95% CI)</td><td align="left" valign="bottom">Numeric questions (%), mean (SD; 95% CI)</td><td align="left" valign="bottom">Multiple-choice questions (%), mean (SD; 95% CI)</td><td align="left" valign="bottom">Text questions (%), mean (SD; 95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">OpenAI GPT-4.1 (DeepSearch mode)</td><td align="left" valign="top">87.6 (0.330; 86.7-88.5)</td><td align="left" valign="top">95.2 (0.215; 94.3-96.1)</td><td align="left" valign="top">89.5 (0.306; 87.8-91.3)</td><td align="left" valign="top">80.4 (0.397; 78.1-82.6)</td><td align="left" valign="top">77.6 (0.417; 75.0-80.1)</td></tr><tr><td align="left" valign="top">OpenAI GPT-4.5</td><td align="left" valign="top">85.6 (0.352; 0.35; 84.6-86.5)</td><td align="left" valign="top">91.6 (0.278; 90.4-92.7)</td><td align="left" valign="top">87.2 (0.334; 85.3-89.1)</td><td align="left" valign="top">80.5 (0.397; 78.2-82.7)</td><td align="left" valign="top">76.7 (0.423; 74.1-79.3)</td></tr><tr><td align="left" valign="top">Anthropic Claude 4.1 Opus</td><td align="left" valign="top">84.8 (0.359; 83.8-85.7)</td><td align="left" valign="top">93.6 (0.244; 92.6-94.7)</td><td align="left" valign="top">85.0 (0.357; 83.0-87.1)</td><td align="left" valign="top">74.1 (0.438; 71.6-76.6)</td><td align="left" valign="top">77.9 (0.415; 75.3-80.4)</td></tr><tr><td align="left" valign="top">xAI Grok 4</td><td align="left" valign="top">84.2 (0.365; 83.2-85.1)</td><td align="left" valign="top">91.7 (0.277; 90.5-92.8)</td><td align="left" valign="top">88.1 (0.324; 86.2-89.9)</td><td align="left" valign="top">72.8 (0.445; 70.3-75.4)</td><td align="left" valign="top">76.9 (0.422; 74.3-79.5)</td></tr><tr><td align="left" valign="top">DeepSeek V2</td><td align="left" valign="top">83.9 (0.367; 82.9-84.9)</td><td align="left" valign="top">92.1 (0.270; 90.9-93.2)</td><td align="left" valign="top">86.8 (0.339; 84.9-88.7)</td><td align="left" valign="top">71.6 (0.451; 69.0-74.2)</td><td align="left" valign="top">77.4 (0.419; 74.8-79.9)</td></tr><tr><td align="left" valign="top">Anthropic Claude 4 Sonnet</td><td align="left" valign="top">83.9 (0.368; 82.9-84.8)</td><td align="left" valign="top">92.2 (0.269; 91.0-93.3)</td><td align="left" valign="top">86.2 (0.345; 84.2-88.2)</td><td align="left" valign="top">72.2 (0.448; 69.7-74.8)</td><td align="left" valign="top">77.0 (0.421; 74.4-79.6)</td></tr><tr><td align="left" valign="top">OpenAI GPT-5</td><td align="left" valign="top">83.0 (0.376; 82.0-84.0)</td><td align="left" valign="top">93.5 (0.246; 92.5-94.5)</td><td align="left" valign="top">79.6 (0.403; 77.3-81.9)</td><td align="left" valign="top">71.5 (0.451; 69.0-74.1)</td><td align="left" valign="top">77.7 (0.417; 75.1-80.2)</td></tr><tr><td align="left" valign="top">Google Gemini 2.5 Flash</td><td align="left" valign="top">81.4 (0.389; 80.4-82.4)</td><td align="left" valign="top">90.2 (0.298; 88.9-91.4)</td><td align="left" valign="top">81.1 (0.391; 78.9-83.4)</td><td align="left" valign="top">72.9 (0.445; 70.4-75.4)</td><td align="left" valign="top">72.8 (0.445; 70.1-75.6)</td></tr><tr><td align="left" valign="top">xAI Grok 3</td><td align="left" valign="top">78.8 (0.409; 77.7-79.9)</td><td align="left" valign="top">85.0 (0.357; 83.5-86.5)</td><td align="left" valign="top">82.3 (0.382; 80.1-84.5)</td><td align="left" valign="top">68.1 (0.466; 65.4-70.7)</td><td align="left" valign="top">74.0 (0.439; 71.3-76.7)</td></tr><tr><td align="left" valign="top">OpenAI GPT-4o</td><td align="left" valign="top">76.4 (0.425; 75.3-77.5)</td><td align="left" valign="top">90.1 (0.298; 88.9-91.4)</td><td align="left" valign="top">74.9 (0.434; 72.4-77.4)</td><td align="left" valign="top">57.6 (0.494; 54.8-60.4)</td><td align="left" valign="top">70.5 (0.456; 67.7-73.3)</td></tr><tr><td align="left" valign="top">OpenAI GPT-4</td><td align="left" valign="top">76.0 (0.427; 74.9-77.2)</td><td align="left" valign="top">88.6 (0.318; 87.2-89.9)</td><td align="left" valign="top">72.8 (0.445; 70.3-75.4)</td><td align="left" valign="top">67.7 (0.468; 65.0-70.4)</td><td align="left" valign="top">62.6 (0.484; 59.6-65.6)</td></tr><tr><td align="left" valign="top">neuroGPT-X</td><td align="left" valign="top">70.1 (0.458; 68.9-71.3)</td><td align="left" valign="top">89.1 (0.312; 87.8-90.4)</td><td align="left" valign="top">61.4 (0.487; 58.6-64.1)</td><td align="left" valign="top">58.4 (0.493; 55.6-61.2)</td><td align="left" valign="top">53.2 (0.499; 50.2-56.3)</td></tr><tr><td align="left" valign="top">Anthropic Claude 2</td><td align="left" valign="top">69.4 (0.461; 68.2-70.6)</td><td align="left" valign="top">85.5 (0.352; 84.1-87.0)</td><td align="left" valign="top">66.7 (0.472; 64.0-69.4)</td><td align="left" valign="top">54.1 (0.499; 51.3-57.0)</td><td align="left" valign="top">55.6 (0.497; 52.6-58.7)</td></tr><tr><td align="left" valign="top">Meta LLaMA 3</td><td align="left" valign="top">38.6 (0.487; 37.3-39.9)</td><td align="left" valign="top">45.2 (0.498; 43.1-47.3)</td><td align="left" valign="top">37.1 (0.483; 34.3-39.9)</td><td align="left" valign="top">34.0 (0.474; 31.3-36.7)</td><td align="left" valign="top">31.6 (0.465; 28.7-34.5)</td></tr><tr><td align="left" valign="top">OpenAI GPT-3.5</td><td align="left" valign="top">32.5 (0.469; 31.3-33.8)</td><td align="left" valign="top">36.7 (0.482; 34.6-38.7)</td><td align="left" valign="top">27.1 (0.445; 24.5-29.6)</td><td align="left" valign="top">33.6 (0.472; 30.9-36.3)</td><td align="left" valign="top">28.8 (0.453; 26.1-31.6)</td></tr><tr><td align="left" valign="top">Google Bard (Legacy)</td><td align="left" valign="top">32.0 (0.466; 30.7-33.2)</td><td align="left" valign="top">40.5 (0.491; 38.5-42.6)</td><td align="left" valign="top">33.8 (0.473; 31.0-36.5)</td><td align="left" valign="top">17.7 (0.382; 15.5-19.9)</td><td align="left" valign="top">28.1 (0.450; 25.4-30.9)</td></tr><tr><td align="left" valign="top">Cohere Command R+</td><td align="left" valign="top">5.1 (0.219; 4.5-5.6)</td><td align="left" valign="top">4.1 (0.199; 3.3-5.0)</td><td align="left" valign="top">6.3 (0.242; 4.9-7.6)</td><td align="left" valign="top">3.0 (0.170; 2.0-3.9)</td><td align="left" valign="top">8.1 (0.273; 6.4-9.7)</td></tr><tr><td align="left" valign="top">Meta LLaMA 2</td><td align="left" valign="top">0.3 (0.055; 0.2-0.5)</td><td align="left" valign="top">0.2 (0.043; 0.0-0.4)</td><td align="left" valign="top">0.5 (0.072; 0.1-0.9)</td><td align="left" valign="top">0.3 (0.050; 0.0-0.5)</td><td align="left" valign="top">0.4 (0.063; 0.0-0.8)</td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>Values represent mean per-patient accuracy (the proportion of correctly extracted data points per patient, averaged across all 172 patients), with 95% CIs calculated via the <italic>t</italic> distribution; this is the same unit of analysis used for the paired-samples comparisons in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>. Columns represent the overall accuracy across all data points and stratified performance in 4 question categories: binary (yes or no), numeric extraction, multiple-choice classification, and free-text interpretation. The complete results for individual data points, including pairwise statistical comparisons, and effect sizes are presented in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p></fn></table-wrap-foot></table-wrap></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>In this study, we evaluated 19 contemporary LLMs on structured data extraction from real neurosurgical EHRs written in Czech. The results demonstrated that current frontier models could achieve near-perfect machine-readability and high extraction accuracy under real-world conditions, with GPT-4.1 achieving the highest overall accuracy (87.6%), while older or smaller systems showed substantial limitations. GPT-4.1 significantly outperformed all models except GPT-4.5, against which no significant difference was detected.</p></sec><sec id="s4-2"><title>Interpretation and Comparison With Prior Work</title><p>Several state-of-the-art models (Claude 4.1 Opus, Grok 4, and Gemini 2.5 Flash) produced 100% valid JSON outputs across all cases, and models such as GPT-4.1, GPT-5, GPT-4.5, and DeepSeek V2 performed similarly, failing only on isolated prompts. This indicates that syntactic correctness is now effectively solved for top-tier systems, at least for structured extraction tasks. In contrast, earlier models&#x2014;GPT-3.5, Bard, Command R+, and LLaMA-2&#x2014;often failed at the basic level of producing complete JSON outputs, illustrating that model choice is a primary determinant of feasibility in automated data extraction.</p><p>Beyond structure, the strongest models reached 85% to 88% correctness, even though they operated on long, heterogeneous documents spanning multiple note types without curation. Accuracy followed a consistent gradient: highest for binary variables, slightly lower for numerical values, and lowest for multiple-choice and open-text fields. This pattern aligns with prior work showing that constrained outputs (eg, yes or no and numbers) are easier for LLMs to reliably extract than unconstrained text interpretation from EHRs [<xref ref-type="bibr" rid="ref36">36</xref>-<xref ref-type="bibr" rid="ref40">40</xref>]. In practical terms, this suggests that operationalizing clinical variables into structured formats&#x2014;where possible&#x2014;is key to robust automated extraction.</p><p>Most previous benchmarks have evaluated LLMs on English-language exam questions or short, synthetic tasks rather than full EHRs [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref3">3</xref>]. A smaller body of work addresses information extraction from clinical notes, but typically relies on retrospective datasets without explicit consent, with narrower task definitions and more controlled inputs [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Our design expands on this by using prospectively collected, consent-based EHRs in a non-English language and by enforcing both machine-readability and strict field completeness, a requirement that reflects real needs in registry building and retrospective chart review [<xref ref-type="bibr" rid="ref41">41</xref>].</p><p>The strong performance observed in our dataset supports emerging evidence that frontier LLMs now provide generalist medical competence that extends beyond English and beyond exam-style testing [<xref ref-type="bibr" rid="ref36">36</xref>,<xref ref-type="bibr" rid="ref37">37</xref>]. Notably, a neurosurgery-focused, context-enriched model (neuroGPT-X [<xref ref-type="bibr" rid="ref31">31</xref>]) did not outperform the newest general models despite domain adaptation. This aligns with recent findings showing that baseline model capacity and alignment now outweigh narrow domain tuning for many extraction tasks [<xref ref-type="bibr" rid="ref37">37</xref>,<xref ref-type="bibr" rid="ref42">42</xref>]. Domain-specialized approaches may remain useful for rare conditions or specific reasoning tasks, but for structured data mining, starting from the strongest base model appears more important than specialty fine-tuning.</p><p>For clinical research workflows such as retrospective chart review, disease registries, or quality audits, our findings support a hybrid approach: automated extraction of all structured variables using a frontier LLM, particularly binary and numeric fields, combined with targeted manual abstraction in a small subset of records to validate accuracy and detect systematic errors. This approach mirrors established practice in medical informatics, where automated pipelines are supplemented by manual gold-standard validation to maintain reliability while minimizing human workload [<xref ref-type="bibr" rid="ref43">43</xref>-<xref ref-type="bibr" rid="ref45">45</xref>]. A strict output schema (eg, JSON) and automatic parsing also ensure that single-field failures do not silently contaminate downstream datasets.</p><p>In addition, performance differences across question types suggest that prompt design matters. Clear field names, explicit answer formats, and reduction of inferential steps likely contribute to accuracy. While frontier models demonstrated robust multilingual performance on Czech EHRs, maintaining the original documentation language is important: translation introduces ambiguity and may degrade extraction [<xref ref-type="bibr" rid="ref46">46</xref>]. For institutions with non-English records, native-language prompting appears preferable.</p><p>We deliberately used fully anonymized data with written informed consent, aligning with core data protection principles such as the General Data Protection Regulation definition of anonymized data falling outside the scope of personal data regulation [<xref ref-type="bibr" rid="ref47">47</xref>,<xref ref-type="bibr" rid="ref48">48</xref>]. This design represents a conservative but transparent approach. Future work may explore whether high-performing models on secure on-premise hardware offer a viable balance between performance and data protection when cloud-hosted models are not acceptable [<xref ref-type="bibr" rid="ref49">49</xref>]. While regulatory questions surrounding LLM-assisted EHR analysis are evolving, our study demonstrates that meaningful benchmarking is already possible within an ethically straightforward framework.</p></sec><sec id="s4-3"><title>Limitations</title><p>This was a single-center neurosurgical cohort with specific documentation patterns, which may limit generalizability. We evaluated a fixed set of 35 variables; performance for more complex phenotypes may differ. Although we used a consensus human standard, ground truth extraction is not perfect; initial interrater agreement, while high in absolute terms (92.6%), corresponded to only moderate chance-corrected agreement (&#x03BA;=0.46), reflecting both kappa&#x2019;s sensitivity to skewed category distributions and genuine ambiguity in some source documentation. Only a single standardized prompt was used across all models; the impact of alternative prompting strategies, including chain-of-thought reasoning or few-shot examples, was not evaluated. Finally, model capabilities change rapidly; performance and rankings may evolve as new versions are released. These factors underscore the need for continuous domain-specific reevaluation rather than relying on static benchmarks.</p></sec><sec id="s4-4"><title>Conclusions</title><p>This study demonstrates the significant potential of LLMs for extracting structured data from patient records. This has direct relevance for international clinical registries, multicenter research, and health care systems where manual chart review has historically been the only viable approach.</p><p>The consistent performance gradient across question types&#x2014;binary &#x003E; numeric &#x003E; multiple-choice &#x003E; free text&#x2014;provides actionable guidance for study design: structuring data collection instruments to favor binary and numeric variables will maximize the reliability of automated extraction pipelines. The approach may be better suited to expediting initial data processing, enabling human professionals to rapidly obtain and interpret the results for meaningful research or clinical use. The rapid obsolescence of older models observed in this study also underscores the need for continuous, prospective benchmarking as new model generations emerge. Our study is unique in its use of prospectively collected patient records, obtained with explicit patient consent, ensuring a robust and ethically sound approach to this type of research. We discuss ethical and legal aspects of LLM use for such purposes and believe that the consent-based, fully anonymized framework demonstrated here provides a replicable model for future studies seeking to balance analytical capability with data protection obligations.</p></sec></sec></body><back><notes><sec><title>Generative AI Use</title><p>The authors declare that generative AI was not used in the preparation of this manuscript.</p></sec><sec><title>Funding</title><p>This work was supported by the Donatio Universitatis Carolinae fund of Charles University in Prague (research project &#x201C;Pr&#x00E1;vn&#x00ED; podpora nov&#x00FD;ch technologi&#x00ED; a inovac&#x00ED; v medic&#x00ED;n&#x011B;: Legal Support for New Technologies and Innovations in Medicine&#x201D;), the Cooperatio Program of the 1st Medical Faculty of Charles University, and a project of the Ministry of Defense of the Czech Republic (grant MO 1012). The funders had no role in study design, data collection, analysis, interpretation of results, or writing of the manuscript.</p></sec><sec><title>Data Availability</title><p>Due to the sensitive nature of the data used in this study, the dataset supporting the conclusions of this article is not openly available.</p></sec></notes><fn-group><fn fn-type="con"><p>M&#x010C; and MM contributed equally as main authors.</p><p>Conceptualization: M&#x010C;, MM</p><p>Data curation: M&#x010C;, MM, KH, SH, KS, KE-HA</p><p>Formal analysis: M&#x010C;, MM</p><p>Funding acquisition: GRS, DN, P&#x0160;</p><p>Investigation: M&#x010C;, MM, SL, RS, EG, HR-C, KH, SH</p><p>Methodology: M&#x010C;, MM, HH</p><p>Project administration: M&#x010C;, MM</p><p>Software: M&#x010C;</p><p>Supervision: GRS, DN</p><p>Writing&#x2014;original draft: M&#x010C;, MM, P&#x0160;, L&#x0160;, IT</p><p>Writing&#x2014;review and editing: M&#x010C;, MM, HH, SL, RS, EG, HR-C, P&#x0160;, L&#x0160;, IT, KH, SH, KS, KE-HA, GRS, DN</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb2">LLM</term><def><p>large language model</p></def></def-item><def-item><term id="abb3">NLP</term><def><p>natural language processing</p></def></def-item><def-item><term id="abb4">TRIPOD-LLM</term><def><p>Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis or Diagnosis&#x2013;Large Language Model</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Hendrycks</surname><given-names>D</given-names> </name><name name-style="western"><surname>Burns</surname><given-names>C</given-names> </name><name name-style="western"><surname>Basart</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Measuring massive multitask language understanding</article-title><source>arXiv</source><comment>Preprint posted online on  Sep 7, 2020</comment><pub-id pub-id-type="doi">10.48550/arXiv.2009.03300</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Zhao</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Lv</surname><given-names>T</given-names> </name><etal/></person-group><article-title>MMLU-CF: a contamination-free multi-task language understanding benchmark</article-title><source>Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics</source><year>2025</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>13371</fpage><lpage>13391</lpage><pub-id pub-id-type="doi">10.18653/v1/2025.acl-long.656</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Ma</surname><given-names>X</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>G</given-names> </name><etal/></person-group><article-title>MMLU-Pro: a more robust and challenging multi-task language understanding benchmark</article-title><source>arXiv</source><comment>Preprint posted online on  Jun 3, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2406.01574</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>Thirunavukarasu</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Ting</surname><given-names>DS</given-names> </name><name name-style="western"><surname>Elangovan</surname><given-names>K</given-names> </name><name name-style="western"><surname>Gutierrez</surname><given-names>L</given-names> </name><name name-style="western"><surname>Tan</surname><given-names>TF</given-names> </name><name name-style="western"><surname>Ting</surname><given-names>DS</given-names> </name></person-group><article-title>Large language models in medicine</article-title><source>Nat Med</source><year>2023</year><month>08</month><volume>29</volume><issue>8</issue><fpage>1930</fpage><lpage>1940</lpage><pub-id pub-id-type="doi">10.1038/s41591-023-02448-8</pub-id><pub-id pub-id-type="medline">37460753</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meng</surname><given-names>X</given-names> </name><name name-style="western"><surname>Yan</surname><given-names>X</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>K</given-names> </name><etal/></person-group><article-title>The application of large language models in medicine: a scoping review</article-title><source>iScience</source><year>2024</year><volume>27</volume><issue>5</issue><fpage>109713</fpage><pub-id pub-id-type="doi">10.1016/j.isci.2024.109713</pub-id><pub-id pub-id-type="medline">38746668</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Du</surname><given-names>X</given-names> </name><name name-style="western"><surname>Zhou</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Testing and evaluation of generative large language models in electronic health record applications: a systematic review</article-title><source>medRxiv</source><year>2025</year><month>06</month><day>22</day><fpage>2024.08.11.24311828</fpage><pub-id pub-id-type="doi">10.1101/2024.08.11.24311828</pub-id><pub-id pub-id-type="medline">39228726</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>Liang</surname><given-names>EN</given-names> </name><name name-style="western"><surname>Pei</surname><given-names>S</given-names> </name><name name-style="western"><surname>Staibano</surname><given-names>P</given-names> </name><name name-style="western"><surname>van der Woerd</surname><given-names>B</given-names> </name></person-group><article-title>Clinical applications of large language models in medicine and surgery: a scoping review</article-title><source>J Int Med Res</source><year>2025</year><month>07</month><volume>53</volume><issue>7</issue><fpage>3000605251347556</fpage><pub-id pub-id-type="doi">10.1177/03000605251347556</pub-id><pub-id pub-id-type="medline">40615349</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>Agrawal</surname><given-names>M</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>IY</given-names> </name><name name-style="western"><surname>Gulamali</surname><given-names>F</given-names> </name><name name-style="western"><surname>Joshi</surname><given-names>S</given-names> </name></person-group><article-title>The evaluation illusion of large language models in medicine</article-title><source>NPJ Digit Med</source><year>2025</year><month>10</month><day>7</day><volume>8</volume><issue>1</issue><fpage>600</fpage><pub-id pub-id-type="doi">10.1038/s41746-025-01963-x</pub-id><pub-id pub-id-type="medline">41057566</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>Singhal</surname><given-names>K</given-names> </name><name name-style="western"><surname>Tu</surname><given-names>T</given-names> </name><name name-style="western"><surname>Gottweis</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Toward expert-level medical question answering with large language models</article-title><source>Nat Med</source><year>2025</year><month>03</month><volume>31</volume><issue>3</issue><fpage>943</fpage><lpage>950</lpage><pub-id pub-id-type="doi">10.1038/s41591-024-03423-7</pub-id><pub-id pub-id-type="medline">39779926</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>Chen</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Hu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Peng</surname><given-names>X</given-names> </name><etal/></person-group><article-title>Benchmarking large language models for biomedical natural language processing applications and recommendations</article-title><source>Nat Commun</source><year>2025</year><volume>16</volume><issue>1</issue><fpage>3280</fpage><pub-id pub-id-type="doi">10.1038/s41467-025-56989-2</pub-id><pub-id pub-id-type="medline">40188094</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>Lu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Peng</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Cohen</surname><given-names>T</given-names> </name><name name-style="western"><surname>Ghassemi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Weng</surname><given-names>C</given-names> </name><name name-style="western"><surname>Tian</surname><given-names>S</given-names> </name></person-group><article-title>Large language models in biomedicine and health: current research landscape and future directions</article-title><source>J Am Med Inform Assoc</source><year>2024</year><month>09</month><day>1</day><volume>31</volume><issue>9</issue><fpage>1801</fpage><lpage>1811</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocae202</pub-id><pub-id pub-id-type="medline">39169867</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>Maity</surname><given-names>S</given-names> </name><name name-style="western"><surname>Saikia</surname><given-names>MJ</given-names> </name></person-group><article-title>Large language models in healthcare and medical applications: a review</article-title><source>Bioengineering (Basel)</source><year>2025</year><month>06</month><day>10</day><volume>12</volume><issue>6</issue><fpage>631</fpage><pub-id pub-id-type="doi">10.3390/bioengineering12060631</pub-id><pub-id pub-id-type="medline">40564447</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>Wu</surname><given-names>J</given-names> </name><name name-style="western"><surname>Gu</surname><given-names>B</given-names> </name><name name-style="western"><surname>Zhou</surname><given-names>R</given-names> </name><etal/></person-group><article-title>BRIDGE: benchmarking large language models for understanding real-world clinical practice texts</article-title><source>Nat Biomed Eng</source><year>2026</year><month>06</month><day>17</day><pub-id pub-id-type="doi">10.1038/s41551-026-01719-2</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Jesus</surname><given-names>BG</given-names> </name><name name-style="western"><surname>Figueiredo</surname><given-names>TC</given-names> </name><name name-style="western"><surname>Anjos</surname><given-names>BH</given-names> </name><etal/></person-group><article-title>Benchmarking large language models for clinical data extraction from Portuguese medical notes in a university hospital</article-title><source>TechRxiv</source><comment>Preprint posted online on  Jun 23, 2025</comment><pub-id pub-id-type="doi">10.36227/techrxiv.175070182.28016701/v1</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>Ntinopoulos</surname><given-names>V</given-names> </name><name name-style="western"><surname>Rodriguez Cetina Biefer</surname><given-names>H</given-names> </name><name name-style="western"><surname>Tudorache</surname><given-names>I</given-names> </name><etal/></person-group><article-title>Large language models for data extraction from unstructured and semi-structured electronic health records: a multiple model performance evaluation</article-title><source>BMJ Health Care Inform</source><year>2025</year><month>01</month><day>19</day><volume>32</volume><issue>1</issue><fpage>e101139</fpage><pub-id pub-id-type="doi">10.1136/bmjhci-2024-101139</pub-id><pub-id pub-id-type="medline">39832824</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Naemi</surname><given-names>A</given-names> </name><name name-style="western"><surname>Sahafi</surname><given-names>A</given-names> </name></person-group><article-title>Benchmarking large language models for MIMIC-IV clinical note summarization</article-title><source>J Healthc Inform Res</source><year>2025</year><volume>10</volume><issue>1</issue><fpage>95</fpage><lpage>115</lpage><pub-id pub-id-type="doi">10.1007/s41666-025-00221-9</pub-id><pub-id pub-id-type="medline">41658398</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="other"><person-group person-group-type="author"><collab>OpenAI</collab><name name-style="western"><surname>Achiam</surname><given-names>J</given-names> </name><name name-style="western"><surname>Adler</surname><given-names>S</given-names> </name><name name-style="western"><surname>Agarwal</surname><given-names>S</given-names> </name><etal/></person-group><article-title>GPT-4 technical report</article-title><source>arXiv</source><comment>Preprint posted online on  Mar 15, 2023</comment><pub-id pub-id-type="doi">10.48550/arXiv.2303.08774</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="other"><person-group person-group-type="author"><collab>OpenAI</collab><name name-style="western"><surname>Hurst</surname><given-names>A</given-names> </name><name name-style="western"><surname>Lerer</surname><given-names>A</given-names> </name><name name-style="western"><surname>Goucher</surname><given-names>AP</given-names> </name><etal/></person-group><article-title>GPT-4o system card</article-title><source>arXiv</source><comment>Preprint posted online on  Oct 25, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2410.21276</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="web"><article-title>GPT-3.5 Turbo</article-title><source>OpenAI Developers</source><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://platform.openai.com/docs/models/gpt-3.5-turbo">https://platform.openai.com/docs/models/gpt-3.5-turbo</ext-link></comment></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="web"><article-title>GPT-4.1 model</article-title><source>OpenAI Developers</source><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://platform.openai.com/docs/models/gpt-4.1">https://platform.openai.com/docs/models/gpt-4.1</ext-link></comment></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="web"><article-title>OpenAI GPT&#x2011;4.5 system card</article-title><source>OpenAI Developers</source><year>2025</year><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://openai.com/index/gpt-4-5-system-card/">https://openai.com/index/gpt-4-5-system-card/</ext-link></comment></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="web"><article-title>Introducing GPT-5</article-title><source>OpenAI</source><year>2025</year><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://openai.com/index/introducing-gpt-5/">https://openai.com/index/introducing-gpt-5/</ext-link></comment></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="web"><article-title>An important next step on our AI journey</article-title><source>Google</source><year>2023</year><month>02</month><day>6</day><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://blog.google/technology/ai/bard-google-ai-search-updates/">https://blog.google/technology/ai/bard-google-ai-search-updates/</ext-link></comment></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="web"><article-title>Gemini 2.5: our most intelligent AI model</article-title><source>Google</source><year>2025</year><month>03</month><day>25</day><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://blog.google/technology/google-deepmind/gemini-model-thinking-updates-march-2025/">https://blog.google/technology/google-deepmind/gemini-model-thinking-updates-march-2025/</ext-link></comment></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="web"><article-title>Claude 2</article-title><source>Anthropic</source><year>2023</year><month>07</month><day>11</day><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.anthropic.com/news/claude-2">https://www.anthropic.com/news/claude-2</ext-link></comment></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="web"><article-title>Introducing Claude 4</article-title><source>Anthropic</source><year>2025</year><month>05</month><day>22</day><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.anthropic.com/news/claude-4">https://www.anthropic.com/news/claude-4</ext-link></comment></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="web"><article-title>Claude Opus 4.1</article-title><source>Anthropic</source><year>2025</year><month>08</month><day>5</day><access-date>2026-08-18</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.anthropic.com/news/claude-opus-4-1">https://www.anthropic.com/news/claude-opus-4-1</ext-link></comment></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="web"><article-title>Grok 3 models launch on API</article-title><source>SpaceXAI Docs</source><year>2025</year><access-date>2026-08-19</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://docs.x.ai/developers/release-notes#grok-3-models-launch-on-api">https://docs.x.ai/developers/release-notes#grok-3-models-launch-on-api</ext-link></comment></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="web"><article-title>Grok 4.6</article-title><source>SpaceXAI Docs</source><access-date>2026-08-19</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://docs.x.ai/docs/models/grok-4">https://docs.x.ai/docs/models/grok-4</ext-link></comment></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="other"><person-group person-group-type="author"><collab>DeepSeek-AI</collab><name name-style="western"><surname>Liu</surname><given-names>A</given-names> </name><name name-style="western"><surname>Feng</surname><given-names>B</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>B</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>B</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>B</given-names> </name><etal/></person-group><article-title>DeepSeek-V2: a strong, economical, and efficient mixture-of-experts language model</article-title><source>arXiv</source><comment>Preprint posted online on  May 7, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2405.04434</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>Guo</surname><given-names>E</given-names> </name><name name-style="western"><surname>Gupta</surname><given-names>M</given-names> </name><name name-style="western"><surname>Sinha</surname><given-names>S</given-names> </name><etal/></person-group><article-title>neuroGPT-X: toward a clinic-ready large language model</article-title><source>J Neurosurg</source><year>2023</year><volume>140</volume><issue>4</issue><fpage>1041</fpage><lpage>1053</lpage><pub-id pub-id-type="doi">10.3171/2023.7.JNS23573</pub-id><pub-id pub-id-type="medline">38564804</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="web"><source>Cohere</source><access-date>2026-08-19</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://cohere.com">https://cohere.com</ext-link></comment></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Touvron</surname><given-names>H</given-names> </name><name name-style="western"><surname>Martin</surname><given-names>L</given-names> </name><name name-style="western"><surname>Stone</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Llama 2: open foundation and fine-tuned chat models</article-title><source>arXiv</source><comment>Preprint posted online on  Jul 18, 2023</comment><pub-id pub-id-type="doi">10.48550/arXiv.2307.09288</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Grattafiori</surname><given-names>A</given-names> </name><name name-style="western"><surname>Dubey</surname><given-names>A</given-names> </name><name name-style="western"><surname>Jauhri</surname><given-names>A</given-names> </name><etal/></person-group><article-title>The Llama 3 herd of models</article-title><source>arXiv</source><comment>Preprint posted online on  Jul 31, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2407.21783</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>Gallifant</surname><given-names>J</given-names> </name><name name-style="western"><surname>Afshar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Ameen</surname><given-names>S</given-names> </name><etal/></person-group><article-title>The TRIPOD-LLM reporting guideline for studies using large language models</article-title><source>Nat Med</source><year>2025</year><month>01</month><volume>31</volume><issue>1</issue><fpage>60</fpage><lpage>69</lpage><pub-id pub-id-type="doi">10.1038/s41591-024-03425-5</pub-id><pub-id pub-id-type="medline">39779929</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Moor</surname><given-names>M</given-names> </name><name name-style="western"><surname>Banerjee</surname><given-names>O</given-names> </name><name name-style="western"><surname>Abad</surname><given-names>ZS</given-names> </name><etal/></person-group><article-title>Foundation models for generalist medical artificial intelligence</article-title><source>Nature</source><year>2023</year><month>04</month><volume>616</volume><issue>7956</issue><fpage>259</fpage><lpage>265</lpage><pub-id pub-id-type="doi">10.1038/s41586-023-05881-4</pub-id><pub-id pub-id-type="medline">37045921</pub-id></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>Builtjes</surname><given-names>L</given-names> </name><name name-style="western"><surname>Bosma</surname><given-names>J</given-names> </name><name name-style="western"><surname>Prokop</surname><given-names>M</given-names> </name><name name-style="western"><surname>van Ginneken</surname><given-names>B</given-names> </name><name name-style="western"><surname>Hering</surname><given-names>A</given-names> </name></person-group><article-title>Leveraging open-source large language models for clinical information extraction in resource-constrained settings</article-title><source>JAMIA Open</source><year>2025</year><month>10</month><volume>8</volume><issue>5</issue><fpage>ooaf109</fpage><pub-id pub-id-type="doi">10.1093/jamiaopen/ooaf109</pub-id><pub-id pub-id-type="medline">41041625</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ahsan</surname><given-names>H</given-names> </name><name name-style="western"><surname>McInerney</surname><given-names>DJ</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Retrieving evidence from EHRs with LLMs: possibilities and challenges</article-title><source>Proc Mach Learn Res</source><year>2024</year><month>06</month><volume>248</volume><fpage>489</fpage><lpage>505</lpage><pub-id pub-id-type="medline">39224857</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Agrawal</surname><given-names>M</given-names> </name><name name-style="western"><surname>Hegselmann</surname><given-names>S</given-names> </name><name name-style="western"><surname>Lang</surname><given-names>H</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Sontag</surname><given-names>D</given-names> </name></person-group><article-title>Large language models are few-shot clinical information extractors</article-title><source>Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing</source><year>2022</year><publisher-name>Association for Computational Linguistics</publisher-name><fpage>1998</fpage><lpage>2012</lpage><pub-id pub-id-type="doi">10.18653/v1/2022.emnlp-main.130</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hu</surname><given-names>D</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>B</given-names> </name><name name-style="western"><surname>Zhu</surname><given-names>X</given-names> </name><name name-style="western"><surname>Lu</surname><given-names>X</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>N</given-names> </name></person-group><article-title>Zero-shot information extraction from radiological reports using ChatGPT</article-title><source>Int J Med Inform</source><year>2024</year><month>03</month><volume>183</volume><fpage>105321</fpage><pub-id pub-id-type="doi">10.1016/j.ijmedinf.2023.105321</pub-id><pub-id pub-id-type="medline">38157785</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vassar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Holzmann</surname><given-names>M</given-names> </name></person-group><article-title>The retrospective chart review: important methodological considerations</article-title><source>J Educ Eval Health Prof</source><year>2013</year><volume>10</volume><fpage>12</fpage><pub-id pub-id-type="doi">10.3352/jeehp.2013.10.12</pub-id><pub-id pub-id-type="medline">24324853</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>J</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>C</given-names> </name><name name-style="western"><surname>Deng</surname><given-names>W</given-names> </name><etal/></person-group><article-title>Enhancing phenotype recognition in clinical notes using large language models: PhenoBCBERT and PhenoGPT</article-title><source>Patterns</source><year>2024</year><month>01</month><day>12</day><volume>5</volume><issue>1</issue><fpage>100887</fpage><pub-id pub-id-type="doi">10.1016/j.patter.2023.100887</pub-id><pub-id pub-id-type="medline">38264716</pub-id></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yin</surname><given-names>AL</given-names> </name><name name-style="western"><surname>Guo</surname><given-names>WL</given-names> </name><name name-style="western"><surname>Sholle</surname><given-names>ET</given-names> </name><etal/></person-group><article-title>Comparing automated vs. manual data collection for COVID-specific medications from electronic health records</article-title><source>Int J Med Inform</source><year>2022</year><month>01</month><volume>157</volume><fpage>104622</fpage><pub-id pub-id-type="doi">10.1016/j.ijmedinf.2021.104622</pub-id><pub-id pub-id-type="medline">34741892</pub-id></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Joseph</surname><given-names>N</given-names> </name><name name-style="western"><surname>Lindblad</surname><given-names>I</given-names> </name><name name-style="western"><surname>Zaker</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Automated data extraction of electronic medical records: validity of data mining to construct research databases for eligibility in gastroenterological clinical trials</article-title><source>Ups J Med Sci</source><year>2022</year><volume>127</volume><pub-id pub-id-type="doi">10.48101/ujms.v127.8260</pub-id><pub-id pub-id-type="medline">35173908</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Goel</surname><given-names>A</given-names> </name><name name-style="western"><surname>Gueta</surname><given-names>A</given-names> </name><name name-style="western"><surname>Gilon</surname><given-names>O</given-names> </name><etal/></person-group><article-title>LLMs accelerate annotation for medical information extraction</article-title><source>arXiv</source><comment>Preprint posted online on  Dec 4, 2023</comment><pub-id pub-id-type="doi">10.48550/arXiv.2312.02296</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Qiu</surname><given-names>P</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>C</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>X</given-names> </name><etal/></person-group><article-title>Towards building multilingual language model for medicine</article-title><source>Nat Commun</source><year>2024</year><month>09</month><day>27</day><volume>15</volume><issue>1</issue><fpage>8384</fpage><pub-id pub-id-type="doi">10.1038/s41467-024-52417-z</pub-id><pub-id pub-id-type="medline">39333468</pub-id></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Langarizadeh</surname><given-names>M</given-names> </name><name name-style="western"><surname>Orooji</surname><given-names>A</given-names> </name><name name-style="western"><surname>Sheikhtaheri</surname><given-names>A</given-names> </name></person-group><article-title>Effectiveness of anonymization methods in preserving patients&#x2019; privacy: a systematic literature review</article-title><source>Stud Health Technol Inform</source><year>2018</year><volume>248</volume><fpage>80</fpage><lpage>87</lpage><pub-id pub-id-type="medline">29726422</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="web"><article-title>Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation) (Text with EEA relevance)</article-title><source>European Union</source><year>2016</year><access-date>2025-12-09</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A32016R0679">https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX%3A32016R0679</ext-link></comment></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Li</surname><given-names>H</given-names> </name><name name-style="western"><surname>Moon</surname><given-names>JT</given-names> </name><name name-style="western"><surname>Purkayastha</surname><given-names>S</given-names> </name><name name-style="western"><surname>Celi</surname><given-names>LA</given-names> </name><name name-style="western"><surname>Trivedi</surname><given-names>H</given-names> </name><name name-style="western"><surname>Gichoya</surname><given-names>JW</given-names> </name></person-group><article-title>Ethics of large language models in medicine and medical research</article-title><source>Lancet Digit Health</source><year>2023</year><month>06</month><volume>5</volume><issue>6</issue><fpage>e333</fpage><lpage>e335</lpage><pub-id pub-id-type="doi">10.1016/S2589-7500(23)00083-3</pub-id><pub-id pub-id-type="medline">37120418</pub-id></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Standardized prompt used for all model submissions, in the original Czech language. Patient documentation is represented by a placeholder.</p><media xlink:href="formative_v10i1e92871_app1.txt" xlink:title="TXT File, 5 KB"/></supplementary-material><supplementary-material id="app2"><label>Multimedia Appendix 2</label><p>English translation of the standardized prompt used for all model submissions. Patient documentation is represented by a placeholder.</p><media xlink:href="formative_v10i1e92871_app2.txt" xlink:title="TXT File, 5 KB"/></supplementary-material><supplementary-material id="app3"><label>Multimedia Appendix 3</label><p>Machine readability of JSON outputs by model, including absolute counts and percentages for each output category and pairwise McNemar test results against the reference model with Bonferroni correction.</p><media xlink:href="formative_v10i1e92871_app3.xlsx" xlink:title="XLSX File, 10 KB"/></supplementary-material><supplementary-material id="app4"><label>Multimedia Appendix 4</label><p>Extraction accuracy by model and question type, including mean accuracy with 95% confidence intervals and pairwise paired-samples 2-tailed <italic>t</italic>-test results against the reference model with Bonferroni correction and Cohen d effect sizes.</p><media xlink:href="formative_v10i1e92871_app4.xlsx" xlink:title="XLSX File, 8 KB"/></supplementary-material></app-group></back></article>