<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMIR</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR AI</journal-id>
      <journal-title>JMIR AI</journal-title>
      <issn pub-type="epub">2817-1705</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">v5i1e112610</article-id>
      <article-id pub-id-type="pmid">43071958</article-id>
      <article-id pub-id-type="doi">10.2196/112610</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Clinical Free-Text Retrieval Across an Acute Physiological Derangement Composite in Intensive Care Unit Discharge Summaries: Stratified Evaluation Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Nicora</surname>
            <given-names>Giovanna</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Ayyagari</surname>
            <given-names>Vallikranth</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Khairnar</surname>
            <given-names>Neha</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Kury Rivas</surname>
            <given-names>Andrés </given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Mikkelsen</surname>
            <given-names>Yngve</given-names>
          </name>
          <degrees>MD, MSc, DBA</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution/>
            <institution>Saïd Business School</institution>
            <institution>University of Oxford</institution>
            <addr-line>Park End Street</addr-line>
            <addr-line>Oxford, England, OX1 1HP</addr-line>
            <country>United Kingdom</country>
            <phone>44 1865 288800</phone>
            <email>yngve.mikkelsen@sbs.ox.ac.uk</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-1543-3805</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Saïd Business School</institution>
        <institution>University of Oxford</institution>
        <addr-line>Oxford, England</addr-line>
        <country>United Kingdom</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Yngve Mikkelsen <email>yngve.mikkelsen@sbs.ox.ac.uk</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>23</day>
        <month>11</month>
        <year>2026</year>
      </pub-date>
      <volume>5</volume>
      <elocation-id>e112610</elocation-id>
      <history>
        <date date-type="received">
          <day>21</day>
          <month>9</month>
          <year>2026</year>
        </date>
        <date date-type="rev-request">
          <day>12</day>
          <month>10</month>
          <year>2026</year>
        </date>
        <date date-type="rev-recd">
          <day>9</day>
          <month>11</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>11</day>
          <month>11</month>
          <year>2026</year>
        </date>
      </history>
      <copyright-statement>©Yngve Mikkelsen. Originally published in JMIR AI (https://ai.jmir.org), 23.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 (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR AI, is properly cited. The complete bibliographic information, a link to the original publication on https://www.ai.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="https://ai.jmir.org/2026/1/e112610" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>Retrieval over clinical free text underpins record search, cohort identification, and retrieval-augmented language systems. Performance is usually summarized by a single corpus-level mean, which can obscure systematic heterogeneity across patients.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>This study tests whether known-item retrieval performance varies across an early acute physiological derangement composite measured independently of the text, whether it reproduces under a validated severity-of-illness score, and whether it is robust to alternative outcome, retrieval, and explanatory specifications.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We linked 4078 MIMIC-IV (Medical Information Mart for Intensive Care IV) discharge summaries to an adult medical intensive care unit (ICU) cohort and built a pooled, length-matched index of 2956 documents drawn equally from 4 strata of a prespecified composite of early acute physiological derangement, comprising vital signs and Glasgow Coma Scale, mechanical ventilation, and age. A held-out 2-sentence passage had to retrieve its originating summary after removal. Eight contrastively trained dense retrievers, 5 masked language model controls, and BM25 were evaluated. Reciprocal rank at 10 (RR@10) was regressed on exposure stratum with patient-clustered SEs and Holm correction. The analysis was repeated under the Oxford Acute Severity of Illness Score (OASIS), a validated first-day score. Additional analyses examined categorical exposure shape, untruncated target rank, hit@10 (hit at 10), lexical representation, query characteristics, age removal, organ dysfunction, and measured covariates.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>Mean RR@10 across dense retrievers fell from 0.127 to 0.080 between the lowest and highest composite stratum (−0.047; mean relative decline 37.2%), with Holm-significant negative slopes in all 8; a pooled model gave −0.0145 per stratum (95% CI −0.0207 to −0.0082; <italic>P</italic>&#60;.001; 23,648 observations). Under OASIS, it fell from 0.127 to 0.078 (−0.049; mean relative decline 38.7%); again, 8 of 8 were Holm-significant. The geometric mean rank of the correct document worsened by a factor of 1.17 per stratum under the composite and 1.24 under OASIS, 8 of 8 significant. BM25 also deteriorated, although from a higher baseline. It persisted across alternative query, indexing, rank, and hit@10 specifications; joint covariate adjustment attenuated the mean coefficient by 21.6%. Removing age attenuated but did not eliminate the pattern: all 8 retained negative slopes, the mean decline fell to 29.7%, and 3 of 8 remained Holm-significant.</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>Clinical free-text retrievability declined systematically with worsening early acute physiological derangement. The association held under an externally defined and validated severity-of-illness score as well as the study-specific composite and in lexical as well as dense retrieval. Corpus-level averages can therefore conceal clinically ordered heterogeneity, and clinical retrieval systems should be evaluated across patient strata rather than overall performance alone.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>clinical information retrieval</kwd>
        <kwd>information storage and retrieval</kwd>
        <kwd>electronic health records</kwd>
        <kwd>natural language processing</kwd>
        <kwd>patient heterogeneity</kwd>
        <kwd>intensive care units</kwd>
        <kwd>benchmarking</kwd>
        <kwd>MIMIC-IV</kwd>
        <kwd>Medical Information Mart for Intensive Care IV</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <p>Retrieval over clinical free text underpins record search, cohort identification, and retrieval-augmented language systems. Retrieval performance over a corpus is conventionally summarized by a single mean estimate, which can conceal systematic heterogeneity within the population that corpus represents.</p>
      <p>There is reason to test heterogeneity by physiological derangement. Documentation associated with greater physiological derangement may contain more competing problems, interventions, and shifts in clinical focus, any of which could alter how well a small passage identifies the larger record. Systematic reviews have synthesized the literature on retrieval-augmented generation in health care [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref2">2</xref>]. Within it, electronic health record (EHR) retrieval work has concentrated on models, query types, and retrieval settings, including EHR-specific dense retrievers, single- vs multipatient benchmarks, retrieval of related discharge reports for clinical question answering, benchmarking of pooling strategies, and fine-tuning on real-world clinical documents [<xref ref-type="bibr" rid="ref3">3</xref>-<xref ref-type="bibr" rid="ref7">7</xref>]. Heterogeneity has also been examined at the level of the document and its context, where corpus type and query format together explained as much retrieval variance as the choice of embedding model [<xref ref-type="bibr" rid="ref8">8</xref>]. The present study holds the retriever fixed and varies the patient. We found no prior study asking whether retrieval performance over real clinical notes varies systematically with a derangement measure derived independently of the text.</p>
      <p>We use known-item retrieval as a controlled assay of this question. A 2-sentence passage extracted from a discharge summary must retrieve its originating summary after that passage has been removed from the target. Ground truth is unambiguous, and all queries compete against the same candidate population. The task is not intended to reproduce a deployed clinical search; it isolates whether retrievability itself varies across patient strata.</p>
      <p>We asked 3 questions: whether retrieval performance changes across quartiles of an early physiological-derangement composite; whether any gradient is shared by dense and lexical retrieval; and whether measured clinical, documentary, representation, or query characteristics attenuate the association.</p>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Design and Data</title>
        <p>We evaluated 13 transformer encoders and BM25 [<xref ref-type="bibr" rid="ref9">9</xref>] on known-item retrieval over MIMIC-IV (Medical Information Mart for Intensive Care IV) discharge summaries. No model was trained or fine-tuned for this study. Analyses were conducted from August through October 2026. Discharge summaries came from MIMIC-IV-Note (version 2.2) [<xref ref-type="bibr" rid="ref10">10</xref>], with intensive care unit (ICU) linkage from MIMIC-IV (version 3.1) [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>]; both resources are distributed through PhysioNet [<xref ref-type="bibr" rid="ref13">13</xref>]. Patient strata were derived from an independently constructed adult medical ICU cohort and derangement composite.</p>
        <p>The primary design used one pooled mixed-derangement index: all 4 strata contributed to the same candidate population, so every query was evaluated against the same candidates, and BM25 used the same queries, targets, and index. Sensitivity analyses masked other documents from the query patient, repeated the earlier per-quartile-index design, used the unmatched sample, placed all usable query-target pairs in one index without subsampling or length matching, and rebuilt the exposure without its age component.</p>
      </sec>
      <sec>
        <title>Exposure Characterization</title>
        <p>The exposure is a prespecified composite of early acute physiological derangement: within-cohort quartile scores (0-3, worst quartile highest) for the largest deviation of heart rate from 80 beats/min and of respiratory rate from 18 breaths/min, and for the lowest mean arterial pressure, oxygen saturation, and Glasgow Coma Scale, plus age tertile (0-2) and mechanical ventilation (0-1). Vital signs were summarized over the first 24 hours after all 5 had first been recorded; all 5 were first available in the first ICU hour for 54.0% of 5878 stays, within the first 7 hours for 97.2%, and more than 24 hours after admission for 0.6%. Ventilation was timed from ICU admission, with a ventilation procedure starting within 24 hours of admission. Because Glasgow Coma Scale values are heavily tied, its quartile scoring yielded 3 levels, scored 1-3, so the attainable range is 1-18 rather than the nominal 0-18; scoring those levels 0-2 would lower every total by 1 point and leave stratum membership unchanged. Plausibility bounds applied before hourly aggregation, cut points, missing-data handling, and stratum boundaries are given in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p>
        <p>The composite and its component definitions were specified before any retrieval outcome from the present study was examined, for a companion time-series analysis of the same cohort. It was used here because it was already defined and independent of the text, not because it was judged to measure severity better than a published score, and prior definition does not by itself justify a single exposure, which is why the analysis is also reported under a validated score below. Because the composite is not a published severity score, we characterized rather than validated it: hospital mortality increased monotonically across quartiles, from 17.0% (334/1967) to 34.3% (360/1049), while discrimination for hospital mortality was modest (area under the receiver operating characteristic curve [AUROC] 0.597, 95% CI 0.579 to 0.613). Discrimination is likely constrained by the cohort’s requirement of an ICU stay of at least 72 hours, which excludes the early deaths from which first-day scores derive much of their discriminative power; Oxford Acute Severity of Illness Score (OASIS) reached 0.619 on the same records. A partial Sequential Organ Failure Assessment (SOFA) subscore using platelet and creatinine components was computable in 98.5% of 5878 stays and was essentially uncorrelated with the composite (Spearman ρ=0.004) while showing similar discrimination (AUROC 0.598), which is consistent with their covering different organ axes rather than disagreement about severity. We therefore interpret the exposure as a measure of early acute physiological derangement as defined here, not as a validated severity-of-illness instrument, and we do not read the gradient as a general physiological-severity effect.</p>
        <p>The vital-sign and ventilation terms are timed differently. The 5 vital-sign and Glasgow Coma Scale components are taken from the first 24 hours after a warm-up hour in which all 5 vital signs have been recorded at least once, whereas mechanical ventilation is assessed over the first 24 hours from ICU admission, so the 2 windows coincide for stays whose warm-up hour is short and diverge where vital-sign charting is delayed.</p>
      </sec>
      <sec>
        <title>Replication With a Validated Severity Score</title>
        <p>Because the composite is not a published severity score, the primary analysis was repeated under the OASIS, a validated first-day severity measure [<xref ref-type="bibr" rid="ref14">14</xref>]. OASIS was chosen over the Simplified Acute Physiology Score II because every OASIS component can be reproduced from the raw release without a derived blood-gas table. OASIS also bears on how the present composite is constructed: its 10 components are the Glasgow Coma Scale, heart rate, mean arterial pressure, respiratory rate, temperature, urine output, mechanical ventilation, elective surgery, age, and pre-ICU length of stay, so a validated score named for acute severity of illness likewise contains age and mechanical ventilation, alongside terms that are not clinical measurements at all, namely elective surgery and pre-ICU length of stay. In such scores, the word “acute” denotes the first-day window over which the state is assessed rather than a property required of each component, and the composite follows that convention.</p>
        <p>OASIS was computed for the same 5878 stays from the raw tables against the MIMIC-Code reference definition [<xref ref-type="bibr" rid="ref15">15</xref>], pinned at release (version 3.0.1; commit c7e07560dc847e32cbb0b2890213e8e7cbd8bc7e). All 10 components were derived locally; the 29 item identifiers were verified against the data dictionaries before extraction, and coverage was at least 94.2% for every component. Two properties of the reference definition were replicated rather than corrected so that the result matches what the standard concept produces, and both are quantified in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>: its oxygen-delivery view discards device observations charted without an oxygen-flow value, and its ventilation view discards single–time–point events. Invasive ventilation within the first 24 hours was identified for 59.0% of 5878 stays against 2857 of 5878 (48.6%) under the composite’s own ventilation flag, with 84.4% agreement (κ=0.69).</p>
        <p>The two exposures also differ in two respects that bear on interpretation. OASIS follows the reference convention of setting the Glasgow Coma Scale to 15 when the verbal component cannot be assessed because of intubation, whereas the composite takes the lowest recorded value without that correction; and OASIS uses a fixed window from ICU admission, with a 6-hour look-back for vital signs and Glasgow Coma Scale and a strict first-24-hour window for urine output, rather than the composite’s warm-up-anchored window. Ventilation is timed from ICU admission under both. Strata were formed as quartiles of the OASIS total on the same cohort, and the resulting cells were built, indexed, and scored by the identical pipeline.</p>
      </sec>
      <sec>
        <title>Cohort and Query Construction</title>
        <p>The source cohort, constructed independently for a companion analysis, contained 5878 medical ICU stays of patients aged 18 years or older. From all 94,458 MIMIC-IV (version 3.1) ICU stays, it took the earliest stay of at least 12 hours in each admission, kept those whose first care unit was a medical ICU and which lasted at least 72 hours, and required at least 50 hours of observation after warm-up, truncated at 720 hours (<xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). After exclusion of admissions containing more than one ICU stay, 59,654 discharge summaries were linked to single-stay admissions, of which 4078 belonged to cohort stays, one summary per stay; query construction yielded 3896 (95.5%) usable query-target pairs. Because the composite takes integer values, its quartiles within the cohort are unequal in size (1967, 1566, 1296, and 1049 stays from the lowest to the highest), so the retained note counts (1308, 1080, 915, and 775) also fall across strata, while the proportion of stays retained rose slightly with the derangement score, from 66.5% (1308/1967) to 73.9% (775/1049; <xref rid="figure1" ref-type="fig">Figure 1</xref>).</p>
        <fig id="figure1" position="float">
          <label>Figure 1</label>
          <caption>
            <p>Cohort construction. The release file contains 331,793 discharge summaries with unique note identifiers, a count confirmed with 2 independent parsers; the release documentation states 331,794. The primary analysis used the length-matched set of 739 documents per derangement stratum; the unmatched set is a sensitivity analysis. ICU: intensive care unit.</p>
          </caption>
          <graphic xlink:href="ai_v5i1e112610_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <p>An eligible sentence contained at least 10 words, contained at least one token from a fixed, case-insensitive list used as a heuristic marker of running prose (for example, was, were, has, had, presented, denies), and appeared in no more than three documents in the 4078-note corpus, limiting templated boilerplate; the normalization used to decide when 2 sentences count as the same and the exclusion of header and field-value lines are given in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. The primary query was the first 2 sentences of the longest contiguous run of eligible sentences. This deterministic rule was preferred over a random eligible sentence, which yields higher variance, and over model-generated questions, which would introduce a generating model into the exposure-outcome path; the alternative-query analysis below tests sensitivity to the choice directly. The query span was removed from the target using token-space alignment, requiring at least 60% coverage in both directions; post hoc verification found no residual query-in-target leakage. Extraction success was similar across quartiles (95.3%-95.9%).</p>
        <p>The resulting query is a verbatim passage from the target document rather than a clinician-authored information need. We use the term “query” throughout for the text submitted to the retriever, and the task is more precisely described as passage-to-source-document matching.</p>
        <p>For alternative-query sensitivity, all nonoverlapping eligible 2-sentence windows were enumerated, and 5 were sampled without replacement (seed 42). All 5 were removed before indexing, fixing the candidate index across draws, and documents with fewer than 5 windows were excluded. Five-window eligibility among the 739 primary-analysis documents per quartile was 94.5%, 95.0%, 96.1%, and 94.2% from Q1 to Q4, with a median of 12 eligible windows in every stratum. The 5-draw analysis was built independently from the 4078 linked summaries, with 664 documents per stratum as the largest common cell size (<xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>).</p>
      </sec>
      <sec>
        <title>Indexing and Retrieval Models</title>
        <p>Quartiles were coarsened-exact-matched on target-length decile and sampled to 739 documents each, producing a 2956-document pooled index; an unmatched set of 743 documents per quartile was retained as a sensitivity. The value of 739 was not derived from a power calculation: it is the largest cell size common to all 4 strata after length matching. Note that length proved essentially unrelated to exposure, but matching was retained in the primary design.</p>
        <p>The 8 contrastively trained dense retrievers were BGE-base-en-v1.5 [<xref ref-type="bibr" rid="ref16">16</xref>,<xref ref-type="bibr" rid="ref17">17</xref>], GTE-base [<xref ref-type="bibr" rid="ref18">18</xref>], E5-base-v2 [<xref ref-type="bibr" rid="ref19">19</xref>], Nomic-embed-text-v1.5 [<xref ref-type="bibr" rid="ref20">20</xref>], all-mpnet-base-v2 [<xref ref-type="bibr" rid="ref21">21</xref>,<xref ref-type="bibr" rid="ref22">22</xref>], all-MiniLM-L6-v2 [<xref ref-type="bibr" rid="ref21">21</xref>,<xref ref-type="bibr" rid="ref23">23</xref>], MedCPT [<xref ref-type="bibr" rid="ref24">24</xref>], and BioLORD-2023 [<xref ref-type="bibr" rid="ref25">25</xref>]. MedCPT and BioLORD are biomedically specialized but not pretrained on clinical documentation. Five nonretrieval masked language model encoders (BERT-base-uncased [<xref ref-type="bibr" rid="ref26">26</xref>], BioBERT-v1.1 [<xref ref-type="bibr" rid="ref27">27</xref>], ClinicalBERT [<xref ref-type="bibr" rid="ref28">28</xref>,<xref ref-type="bibr" rid="ref29">29</xref>], BiomedBERT [<xref ref-type="bibr" rid="ref30">30</xref>], and SciBERT [<xref ref-type="bibr" rid="ref31">31</xref>]) were included only as negative controls; they were standardized to CLS pooling because they have no canonical sentence-pooling convention, which may depress their absolute performance, and they are therefore read as a performance floor and not compared with the contrastive panel. The ClinicalBERT checkpoint is medicalai/ClinicalBERT [<xref ref-type="bibr" rid="ref28">28</xref>], whose model card requests citation of the clinical application paper cited here [<xref ref-type="bibr" rid="ref29">29</xref>] rather than a model-description paper; it is distinct from other published encoders that carry the same name. Model-specific prefixes and pooling conventions were used where documented; for MedCPT, its query encoder was applied to queries and its article encoder to target chunks. Embeddings were L2-normalized.</p>
        <p>Targets were encoded as overlapping 510-token windows with stride 384. Where a model specifies a document-side instruction prefix, the prefix was tokenized separately and prepended to every window, with the content carried by each window reduced by the prefix length so that no encoded unit exceeded the model’s maximum sequence length. Document score was the maximum cosine similarity between the query vector and any target chunk. Two-sentence queries were encoded as single vectors. BM25 was scored on the same target texts after query removal.</p>
      </sec>
      <sec>
        <title>Outcomes and Inference</title>
        <p>The primary retrieval outcome was reciprocal rank at 10 (RR@10); recall at 10 was a secondary, descriptive outcome. RR@10 was regressed on exposure quartile as an ordinal term (1-4) separately for each model using CR1 patient-clustered SEs [<xref ref-type="bibr" rid="ref32">32</xref>]. Dense-model <italic>P</italic> values were Holm-adjusted [<xref ref-type="bibr" rid="ref33">33</xref>]; 95% CIs and monotonicity across all 4 strata were also reported.</p>
        <p>To locate where rank deterioration occurred, we recorded the target score, highest nontarget score, target-minus-best-distractor margin, and number of nontargets scoring above the target. Dense and BM25 slopes were compared both in absolute reciprocal rank (RR) units and after normalization by each method’s Q1 mean. Paired patient-clustered bootstrap resampling (2000 replicates) preserved correlation across methods.</p>
        <p>RR@10 denotes the per-query outcome and mean RR@10 its mean within a stratum; the distinction is kept throughout. The ordinal specification was supplemented by three further analyses of the same outcome. A categorical model entered quartile as three indicators against the lowest stratum, giving the absolute difference at each stratum; departure from linearity was tested by a 2-degree-of-freedom Wald restriction of those coefficients to the straight line through them, and a single contrast compared the lowest stratum against the remaining three. Because RR@10 is bounded and 0 for most queries, two further outcomes were analyzed so that information outside the top 10 contributes. The untruncated target rank was regressed on stratum as log(rank), whose coefficient exponentiates to the multiplicative change in the geometric mean rank, and in ordinal and categorical form, the latter giving each stratum’s rank ratio against the lowest; hit@10 (hit at 10) was modeled by logistic regression. Both carried the same patient-clustered covariance as the primary model. The untruncated rank was also compared across strata by a Mantel-Cox log-rank test with a score-weighted test for trend, which assumes independent observations and is therefore reported only as a distributional check; with approximately one document per patient, the dependence it ignores is small. Holm correction across the 8 retrievers was applied to all three. Finally, a pooled model across all 8 retrievers estimated a single common slope, with retriever fixed effects and patient-clustered SEs; a Wald test of the quartile-by-retriever interaction assessed slope heterogeneity. Retriever was entered as a fixed effect because the 8 retrievers constitute the finite panel of interest rather than a sample from a wider population; the patient-clustered SEs account for the repeated scoring of the same query across retrievers.</p>
      </sec>
      <sec>
        <title>Alternative Explanations and Sensitivity Analyses</title>
        <p>The primary analysis is the Holm-corrected RR@10-on-quartile regression in the pooled length-matched index. That design was not prespecified: the earliest analyses scored each stratum against its own index, and the pooled design was adopted after those analyses had been run, because separate indexes make the candidate population vary with the exposure. Length matching within the pooled design was specified in advance. All remaining analyses reported below are sensitivity or alternative-explanation analyses and are labeled as such; <xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref> summarizes which candidate each addresses.</p>
        <p>Alternative explanations were grouped as design, exposure definition, patient complexity, documentation process, document and representation characteristics, and query construction. Patient-complexity variables were distinct <italic>ICD</italic> (<italic>International Classification of Diseases</italic>) diagnoses, distinct prescribed drug names, distinct <italic>ICD</italic> procedures, and the Charlson comorbidity index using the Quan <italic>ICD-9/10</italic> (<italic>International Statistical Classification of Diseases, Ninth Revision</italic>/<italic>International Statistical Classification of Diseases, Tenth Revision</italic>) mapping [<xref ref-type="bibr" rid="ref34">34</xref>]; documentation variables were discharge-summary chart-to-store lag and note index within the admission; document and representation variables were target length and mean pairwise cosine among a document’s own chunk vectors (semantic dispersion), with chunk count entered alongside dispersion; and query variables were source-note character offset divided by note length and query length per stratum.</p>
        <p>Approximately 12% of documents in the pooled index (362/2956) came from patients who contributed more than one, and because narrative blocks are frequently copied forward between notes for the same patient, a nontarget note could be retrieved instead of the exact source document, so every model was also scored with same-patient nontargets masked out of the candidate set.</p>
        <p>As a further exposure sensitivity, patients were restratified using a laboratory-only organ-dysfunction score formed from the coagulation, liver, and renal components of the SOFA (range 0-12) over the first 24 hours after ICU admission. This score shares no input variable with the primary composite, so it tests a distinct axis rather than replicating the primary analysis; the cardiovascular and central nervous system components were excluded because they use mean arterial pressure and Glasgow Coma Scale, both composite inputs. Complete three-component scores were available for 4039 of 5878 (68.7%) stays, so this analysis uses a smaller complete-case population. RR was regressed on both the score quartile and the score value. Because that analysis differs from the primary one in sample and candidate index as well as in exposure definition, both exposures were additionally evaluated on identical records within a single index, with the per-model difference between the two slopes estimated by a paired patient-clustered bootstrap (2000 replicates).</p>
        <p>Each of the 7 covariates (the 4 patient-complexity measures, the 2 documentation measures, and target length) was entered separately and then jointly into RR-on-quartile models on the same complete-case sample (n=2753), with all covariates standardized. Attenuation was the proportional reduction in the derangement coefficient relative to the unadjusted model. Variance inflation factors (VIFs) were calculated for the joint model. These adjusted models were exploratory; their <italic>P</italic> values were not Holm-corrected. Because several covariates can occur downstream of early physiological derangement, coefficient attenuation is not interpreted as a causal decomposition.</p>
        <p>The Charlson index was rebuilt after two implementation errors were identified: weights had been summed per weight class rather than per condition, and Charlson hierarchical exclusions had not been applied. The corrected index sums distinct conditions and supersedes mild liver disease by severe, uncomplicated diabetes by complicated, and malignancy by metastatic disease; it spans 0-14 with a median of 3. Code sets were verified against the MIT Laboratory for Computational Physiology (MIT-LCP) MIMIC-Code Charlson reference implementation [<xref ref-type="bibr" rid="ref35">35</xref>] of the Quan <italic>ICD-9-CM</italic> (<italic>International Statistical Classification of Diseases, Ninth Revision, Clinical Modification</italic>)/<italic>ICD-10</italic> mapping, with no reference code left uncaptured. The reference implementation also adds an age score of 0 to 4, which we omit because age is a component of this study’s exposure.</p>
        <p>Four further analyses were added. Retrieval was summarized by vital status within each stratum, and in-hospital death, discharge disposition, and hospital and ICU length of stay were added to the adjustment set; because all four are measured after the exposure window and may lie on downstream pathways, that model is reported as a postexposure sensitivity analysis, attenuation in it is given no causal interpretation, and the unadjusted coefficient remains the estimate of interest. Query length was also computed for the primary query set. The lexical baseline was re-scored on windowed documents matching the dense scoring geometry, each document taking its best window score, under both window-level and document-level inverse document frequency and at 2 window sizes, with differences between representations tested by a paired patient-clustered bootstrap on identical queries. Finally, the 3 retrievers whose documented query and document instructions differ were rescored with the document instruction applied to the query, and with none, holding document representations fixed so that only the query side varied.</p>
      </sec>
      <sec>
        <title>Reproducibility</title>
        <p>All random operations used seed 42. Analyses ran under Python (version 3.9.13) with torch (version 2.2.0), transformers (version 4.50.3), NumPy (version 1.26.4), pandas (version 2.2.3), and SciPy (version 1.13.1); the lexical baseline used rank_bm25 (BM25Okapi) with k1=1.5 and b=0.75. Encoder weights were loaded from pinned Hugging Face revisions, listed per model in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> together with the query and document instruction prefixes; the revisions are the commit hashes recorded in the refs/main file of the local Hugging Face cache. For 4 of the 5 masked language model controls, an earlier snapshot also remained in that cache, so for those 4 the revision used cannot be established from the cache alone; the ambiguity affects only the negative controls, which serve as a performance floor rather than as estimates. The cluster-robust covariance, Holm correction, paired bootstrap, log-rank, and logistic fits were implemented directly on NumPy and pandas, with no statistical-modeling package in the inferential path. Cell definitions, per-query result vectors, embedding caches, and result dumps are archived locally; code availability is described under the Data Availability section.</p>
      </sec>
      <sec>
        <title>Ethical Considerations</title>
        <p>This study is a secondary analysis of existing deidentified clinical data. No new data were collected, no participants were recruited, contacted, or compensated, and no identifiable private information was accessed. Only aggregate results are reported, and neither the manuscript nor its supplementary material contains images of individuals or material from which any individual could be identified.</p>
        <p>MIMIC-IV (version 3.1) and MIMIC-IV-Note (version 2.2) are credentialed resources distributed under the PhysioNet Credentialed Health Data Use Agreement; their source collection and resource creation were reviewed by the Beth Israel Deaconess Medical Center IRB, which granted a waiver of informed consent and approved data sharing. All processing was performed locally by the credentialed author; no note text was transmitted to any third-party service, and no reidentification was attempted. Because the work used only existing deidentified data, no additional ethics-review application was submitted, and no application or case number therefore exists; the governance basis is the access controls, data use agreement, deidentification, and original institutional approvals provided by the data custodian.</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>Primary Retrieval Gradient</title>
        <p>Cohort construction and the exclusions at each step are shown in <xref rid="figure1" ref-type="fig">Figure 1</xref>.</p>
        <p>Discharge summaries ranged from 2157 to 50,223 characters, but length was unrelated to exposure (Spearman ρ=−0.005; n=3896), so the gradient is not explained by document length.</p>
        <p>In the pooled 2956-document index, all 8 contrastively trained retrievers performed worse as derangement increased (<xref ref-type="table" rid="table1">Table 1</xref>). Mean RR@10 fell from 0.127 in the lowest quartile to 0.080 in the highest, a difference of −0.047, with Q1-to-Q4 relative declines from 29.1% to 43.9% and a mean of 37.2%; all 8 ordinal slopes remained significant after Holm correction, and 5 were strictly monotone. Model-level slopes and their CIs are shown in <xref rid="figure2" ref-type="fig">Figure 2</xref> [<xref ref-type="bibr" rid="ref9">9</xref>,<xref ref-type="bibr" rid="ref16">16</xref>-<xref ref-type="bibr" rid="ref25">25</xref>].</p>
        <p>Recall@10 changed in the same direction. Nomic declined from 0.306 to 0.196 and BGE from 0.260 to 0.166; BM25 declined from 0.517 to 0.459 (<xref ref-type="table" rid="table2">Table 2</xref>).</p>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>Mean reciprocal rank at 10 by derangement quartile in the pooled mixed-derangement index (2956 documents)<sup>a</sup>.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="140"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="80"/>
            <col width="230"/>
            <col width="100"/>
            <col width="90"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Q1</td>
                <td>Q2</td>
                <td>Q3</td>
                <td>Q4</td>
                <td>Δ%</td>
                <td>β (95% CI)</td>
                <td><italic>P</italic> (Holm)</td>
                <td>Mono</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>BGE</td>
                <td>0.1439</td>
                <td>0.1009</td>
                <td>0.0923</td>
                <td>0.0826</td>
                <td>−42.6</td>
                <td>−0.0192 (−0.0281 to −0.0104)</td>
                <td>&#60;.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>GTE</td>
                <td>0.1512</td>
                <td>0.1148</td>
                <td>0.1024</td>
                <td>0.0975</td>
                <td>−35.5</td>
                <td>−0.0173 (−0.0266 to −0.0081)</td>
                <td>.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>E5</td>
                <td>0.1136</td>
                <td>0.0945</td>
                <td>0.0770</td>
                <td>0.0803</td>
                <td>−29.3</td>
                <td>−0.0117 (−0.0200 to −0.0035)</td>
                <td>.01</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>Nomic</td>
                <td>0.1689</td>
                <td>0.1315</td>
                <td>0.1296</td>
                <td>0.1197</td>
                <td>−29.1</td>
                <td>−0.0150 (−0.0250 to −0.0049)</td>
                <td>.01</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>MPNet</td>
                <td>0.1248</td>
                <td>0.0887</td>
                <td>0.0952</td>
                <td>0.0790</td>
                <td>−36.7</td>
                <td>−0.0131 (−0.0215 to −0.0047)</td>
                <td>.009</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>MiniLM</td>
                <td>0.1280</td>
                <td>0.0920</td>
                <td>0.0861</td>
                <td>0.0719</td>
                <td>−43.9</td>
                <td>−0.0174 (−0.0256 to −0.0093)</td>
                <td>&#60;.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>MedCPT</td>
                <td>0.0902</td>
                <td>0.0473</td>
                <td>0.0546</td>
                <td>0.0544</td>
                <td>−39.7</td>
                <td>−0.0100 (−0.0169 to −0.0031)</td>
                <td>.01</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>BioLORD</td>
                <td>0.0961</td>
                <td>0.0718</td>
                <td>0.0695</td>
                <td>0.0567</td>
                <td>−41.0</td>
                <td>−0.0121 (−0.0194 to −0.0047)</td>
                <td>.006</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>Mean (dense)</td>
                <td>0.1271</td>
                <td>0.0927</td>
                <td>0.0883</td>
                <td>0.0803</td>
                <td>−36.8</td>
                <td>—<sup>b</sup></td>
                <td>—</td>
                <td>—</td>
              </tr>
              <tr valign="top">
                <td>BM25</td>
                <td>0.3908</td>
                <td>0.3480</td>
                <td>0.3449</td>
                <td>0.3384</td>
                <td>−13.4</td>
                <td>−0.0160 (−0.0304 to −0.0017)</td>
                <td>.03</td>
                <td>Yes</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table1fn1">
              <p><sup>a</sup>Mono indicates strict monotonicity across all 4 strata. <italic>P</italic> values are Holm-adjusted across the 8 dense models; the BM25 row is contextual and was not included in the correction family. The Δ% in the mean (dense) row is the decline in the across-model mean (−36.8%); the mean of the 8 model-specific declines is −37.2%, and that is the quantity quoted in the text.</p>
            </fn>
            <fn id="table1fn2">
              <p><sup>b</sup>Not available.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <fig id="figure2" position="float">
          <label>Figure 2</label>
          <caption>
            <p>Change in reciprocal rank at 10 per derangement quartile, by model. Points are slopes of reciprocal rank at 10 on the derangement quartile in the pooled 2956-document index, with 95% CIs from patient-clustered SEs. The dotted line marks the mean dense slope; BM25 is shown below the rule.</p>
          </caption>
          <graphic xlink:href="ai_v5i1e112610_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <table-wrap position="float" id="table2">
          <label>Table 2</label>
          <caption>
            <p>Recall at 10 by derangement quartile in the pooled index<sup>a</sup>.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="220"/>
            <col width="160"/>
            <col width="160"/>
            <col width="160"/>
            <col width="160"/>
            <col width="140"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Q1</td>
                <td>Q2</td>
                <td>Q3</td>
                <td>Q4</td>
                <td>Δ%</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>BGE</td>
                <td>0.260</td>
                <td>0.204</td>
                <td>0.192</td>
                <td>0.166</td>
                <td>−35.9</td>
              </tr>
              <tr valign="top">
                <td>GTE</td>
                <td>0.279</td>
                <td>0.210</td>
                <td>0.206</td>
                <td>0.179</td>
                <td>−35.9</td>
              </tr>
              <tr valign="top">
                <td>E5</td>
                <td>0.214</td>
                <td>0.183</td>
                <td>0.164</td>
                <td>0.153</td>
                <td>−28.5</td>
              </tr>
              <tr valign="top">
                <td>Nomic</td>
                <td>0.306</td>
                <td>0.246</td>
                <td>0.230</td>
                <td>0.196</td>
                <td>−35.8</td>
              </tr>
              <tr valign="top">
                <td>MPNet</td>
                <td>0.214</td>
                <td>0.184</td>
                <td>0.181</td>
                <td>0.175</td>
                <td>−18.4</td>
              </tr>
              <tr valign="top">
                <td>MiniLM</td>
                <td>0.245</td>
                <td>0.184</td>
                <td>0.176</td>
                <td>0.154</td>
                <td>−37.0</td>
              </tr>
              <tr valign="top">
                <td>MedCPT</td>
                <td>0.185</td>
                <td>0.116</td>
                <td>0.127</td>
                <td>0.130</td>
                <td>−29.9</td>
              </tr>
              <tr valign="top">
                <td>BioLORD</td>
                <td>0.195</td>
                <td>0.133</td>
                <td>0.137</td>
                <td>0.108</td>
                <td>−44.4</td>
              </tr>
              <tr valign="top">
                <td>BM25</td>
                <td>0.517</td>
                <td>0.498</td>
                <td>0.470</td>
                <td>0.459</td>
                <td>−11.3</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table2fn1">
              <p><sup>a</sup>Percentage changes were calculated from unrounded values.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
      <sec>
        <title>Replication With a Validated Severity Score</title>
        <p>OASIS and the composite share 6 of OASIS’s 10 input variables, namely age, Glasgow Coma Scale, heart rate, mean arterial pressure, respiratory rate, and mechanical ventilation, and correlate moderately with one another (Spearman ρ=0.488 between the OASIS total and the composite quartile). On identical records, OASIS discriminated against hospital mortality slightly better than the composite (AUROC 0.619 vs 0.597). Both values are modest, which may partly reflect the requirement for ICU stays of at least 72 hours and the consequent exclusion of early deaths, from which first-day severity scores derive much of their discrimination. The OASIS value therefore provides context for interpreting the composite’s discrimination within this selected cohort rather than a comparison against an unrestricted population.</p>
        <p>Under OASIS strata, all 8 dense retrievers again performed worse as the score increased (<xref ref-type="table" rid="table3">Table 3</xref>). Mean RR at 10 fell from 0.127 to 0.078, an absolute difference of −0.049, with a mean relative decline of 38.7% and all 8 slopes Holm-significant; 4 were strictly monotone. The unmatched OASIS sample gave −39.1%, also with 8 of 8 Holm-significant. The composite’s own estimate was −37.2%, so the 2 exposures agree to within 2 percentage points on the relative scale and to within 0.002 reciprocal-rank units on the absolute scale. Because those shared inputs include age and mechanical ventilation, this is a convergent replication under an externally defined and validated severity score rather than a component-isolation analysis; the age-free reconstruction below tests whether the gradient depends on the independently scored age component.</p>
        <table-wrap position="float" id="table3">
          <label>Table 3</label>
          <caption>
            <p>Mean reciprocal rank at 10 by quartile of the Oxford Acute Severity of Illness Score in the pooled index (3448 documents)<sup>a</sup>.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="140"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="80"/>
            <col width="230"/>
            <col width="100"/>
            <col width="90"/>
            <thead>
              <tr valign="top">
                <td>Model</td>
                <td>Q1</td>
                <td>Q2</td>
                <td>Q3</td>
                <td>Q4</td>
                <td>Δ%</td>
                <td>β (95% CI)</td>
                <td><italic>P</italic> (Holm)</td>
                <td>Mono</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>BGE</td>
                <td>0.1457</td>
                <td>0.1003</td>
                <td>0.0749</td>
                <td>0.0872</td>
                <td>−40.1</td>
                <td>−0.0201 (−0.0283 to −0.0119)</td>
                <td>&#60;.001</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>GTE</td>
                <td>0.1520</td>
                <td>0.1153</td>
                <td>0.0929</td>
                <td>0.1035</td>
                <td>−31.9</td>
                <td>−0.0168 (−0.0256 to −0.0081)</td>
                <td>.001</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>E5</td>
                <td>0.1302</td>
                <td>0.0973</td>
                <td>0.0692</td>
                <td>0.0693</td>
                <td>−46.8</td>
                <td>−0.0211 (−0.0288 to −0.0133)</td>
                <td>&#60;.001</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>Nomic</td>
                <td>0.1714</td>
                <td>0.1427</td>
                <td>0.1080</td>
                <td>0.1165</td>
                <td>−32.0</td>
                <td>−0.0199 (−0.0291 to −0.0108)</td>
                <td>&#60;.001</td>
                <td>No</td>
              </tr>
              <tr valign="top">
                <td>MPNet</td>
                <td>0.1061</td>
                <td>0.1001</td>
                <td>0.0828</td>
                <td>0.0789</td>
                <td>−25.7</td>
                <td>−0.0099 (−0.0173 to −0.0025)</td>
                <td>.009</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>MiniLM</td>
                <td>0.1310</td>
                <td>0.1043</td>
                <td>0.0784</td>
                <td>0.0661</td>
                <td>−49.6</td>
                <td>−0.0221 (−0.0297 to −0.0145)</td>
                <td>&#60;.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>MedCPT</td>
                <td>0.0879</td>
                <td>0.0540</td>
                <td>0.0509</td>
                <td>0.0502</td>
                <td>−42.9</td>
                <td>−0.0116 (−0.0179 to −0.0053)</td>
                <td>.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>BioLORD</td>
                <td>0.0904</td>
                <td>0.0815</td>
                <td>0.0630</td>
                <td>0.0536</td>
                <td>−40.8</td>
                <td>−0.0129 (−0.0197 to −0.0062)</td>
                <td>.001</td>
                <td>Yes</td>
              </tr>
              <tr valign="top">
                <td>Mean (dense)</td>
                <td>0.1268</td>
                <td>0.0994</td>
                <td>0.0775</td>
                <td>0.0782</td>
                <td>−38.4</td>
                <td>—<sup>b</sup></td>
                <td>—</td>
                <td>—</td>
              </tr>
              <tr valign="top">
                <td>BM25</td>
                <td>0.4052</td>
                <td>0.3668</td>
                <td>0.3402</td>
                <td>0.3159</td>
                <td>−22.0</td>
                <td>−0.0295 (−0.0427 to −0.0162)</td>
                <td>&#60;.001</td>
                <td>Yes</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table3fn1">
              <p><sup>a</sup>Mono indicates strict monotonicity across all 4 strata. <italic>P</italic> values are Holm-adjusted across the 8 dense models; the BM25 row is contextual and was not included in the correction family. Cells contain 862 documents per stratum. As in <xref ref-type="table" rid="table1">Table 1</xref>, the Δ% in the mean (dense) row is the decline in the across-model mean (−38.4%), while the mean of the 8 model-specific declines, −38.7%, is the quantity quoted in the text.</p>
            </fn>
            <fn id="table3fn2">
              <p><sup>b</sup>Not available.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
      <sec>
        <title>Shape of the Association</title>
        <p>Entered categorically, the difference from the lowest stratum was negative at every higher stratum in every retriever, reaching −0.033 to −0.061 at the highest stratum under the composite and −0.027 to −0.065 under OASIS (<xref rid="figure3" ref-type="fig">Figure 3</xref>), and was largest at the highest stratum in 6 of 8 retrievers under the composite and 4 of 8 under OASIS. A 2-degree-of-freedom test of departure from linearity was rejected in 1 of 8 retrievers under each exposure after Holm adjustment, MedCPT under the composite (<italic>P</italic>=.02), and BGE under OASIS (<italic>P</italic>=.02).</p>
        <p>The single contrast of the lowest stratum against the other three was −0.0520 to −0.0296 reciprocal-rank units across retrievers under the composite (mean −0.0400; all eight 95% intervals excluded 0, the widest being Nomic’s −0.0686 to −0.0154) and −0.0582 to −0.0189 under OASIS (mean −0.0418), Holm-significant in 8 of 8 retrievers under the composite and 7 of 8 under OASIS, the exception being MPNet (−0.0189, 95% CI −0.0389 to +0.0011; <italic>P</italic>=.06). It recovered 76% to 106% of the full lowest-to-highest difference under the composite and 66% to 99.6% under OASIS, where a straight line implies 67%, so somewhat more of the decline occurs at the first stratum boundary than a linear term implies.</p>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p>Mean reciprocal rank at 10 by stratum under both exposures, with 95% CIs. Points are per-stratum means of reciprocal rank at 10 with 95% CIs from patient-clustered SEs, one panel per contrastively trained retriever, and one for BM25. Filled circles and solid lines are quartiles of the acute physiological derangement composite; open squares and broken lines are quartiles of the OASIS. Each y-axis begins at 0; BM25’s is expanded, with its baseline being about three times the dense baseline. The annotated dense panels are those in which the 2-degree-of-freedom test of departure from linearity was rejected after Holm adjustment. BGE: BGE-base-en-v1.5; BioLORD: BioLORD-2023; BM25: Best Match 25; E5: E5-base-v2; GTE: GTE-base; Nomic: Nomic-embed-text-v1.5; MedCPT: MedCPT biomedical retriever; MiniLM: all-MiniLM-L6-v2; MPNet: all-mpnet-base-v2; RR@10: reciprocal rank at 10. The single contrast of the lowest stratum against the other 3 was −0.0520 to −0.0296 reciprocal-rank units across retrievers under the composite (mean −0.0400; all eight 95% intervals excluded 0, the widest being Nomic’s −0.0686 to −0.0154) and −0.0582 to −0.0189 under OASIS (mean −0.0418), Holm-significant in 8 of 8 retrievers under the composite and 7 of 8 under OASIS, the exception being MPNet (−0.0189, 95% CI −0.0389 to +0.0011; <italic>P</italic>=.06). It recovered 76% to 106% of the full lowest-to-highest difference under the composite and 66% to 99.6% under OASIS, where a straight line implies 67%, so somewhat more of the decline occurs at the first stratum boundary than a linear term implies.</p>
          </caption>
          <graphic xlink:href="ai_v5i1e112610_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Dense Versus Lexical Retrieval</title>
        <p>BM25 also declined monotonically, from RR 0.3908 in Q1 to 0.3384 in Q4 (13.4%; β −0.0160, 95% CI −0.0304 to −0.0017; <italic>P</italic>=.03), so the phenomenon is not unique to neural representations. In absolute RR units, no difference was detected between the mean dense slope (−0.0145 per quartile) and the BM25 slope (difference +0.0016, 95% CI −0.0110 to +0.0141). On the relative scale, the dense family declined more steeply, with −0.115 vs −0.041, a difference of −0.074 (95% CI −0.109 to −0.036); the ratio estimate was 2.80 (95% CI 1.49 to 13.38), but because that interval is wide and right-skewed, the difference in relative slopes is the more stable contrast. BM25 outperformed every dense model in every stratum, and this study does not claim that either should be preferred for deployment (<xref rid="figure4" ref-type="fig">Figure 4</xref>).</p>
        <fig id="figure4" position="float">
          <label>Figure 4</label>
          <caption>
            <p>Dense vs lexical decline on absolute and relative scales. Left, slopes in reciprocal-rank units per quartile; right, the same slopes divided by each method’s quartile-1 mean. Dense minus BM25 differences carry 95% CIs from a paired patient-clustered bootstrap. RR@10: reciprocal rank at 10.</p>
          </caption>
          <graphic xlink:href="ai_v5i1e112610_fig4.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Retrieval Deterioration Is Predominantly Target-Side</title>
        <p>The target-minus-best-distractor margin fell with the derangement score in all 8 dense retrievers, with CIs excluding 0 in 6, and the number of nontargets scoring above the target increased substantially (<xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>). The target score fell in all 8 models. The best nontarget rose in 7, and in 6 of those the target’s fall exceeded that rise, by ratios from 1.8 to 10.6; the exception was MPNet, whose best nontarget rose by about four times the target’s fall. In MedCPT, the best nontarget did not rise. The rank loss is therefore predominantly associated with reduced target-to-query similarity rather than with increased nearest-distractor competition. This is a descriptive decomposition, not a mechanism.</p>
      </sec>
      <sec>
        <title>Robustness to Alternative Explanations and Covariate Adjustment</title>
        <p>No single measured covariate attenuated the mean dense-model derangement coefficient by more than 9.4% on the complete-case sample: distinct drugs 9.4%, diagnoses 6.0%, procedures 1.4%, target length 1.0%, Charlson 0.8%, documentation lag 0.0%, and note index −0.6%. Joint entry of the 7 covariates attenuated the coefficient by 21.6% on average, ranging from 12.9% for MiniLM to 37.7% for BioLORD, and 6 of 8 retrievers retained nominal <italic>P</italic>&#60;.05; MedCPT (<italic>P</italic>=.055) and BioLORD (<italic>P</italic>=.08) did not. These <italic>P</italic> values are exploratory and unadjusted for multiplicity, and VIFs were ≤1.9. The attenuation should not be read as a causally explained fraction.</p>
        <p>Masking same-patient nontargets from the candidate set did not attenuate the gradient: no model slope moved by more than 0.0002, and the mean relative decline was unchanged. Competition from other notes belonging to the same patient therefore does not materially explain the gradient. That does not exclude every way in which copied narrative might affect a query or its source document.</p>
        <p>Mean within-document chunk cosine was flat across strata in 7 of 8 dense models; adjustment for semantic dispersion, chunk count, and length attenuated the derangement coefficient by 2% on average. Alternative query sampling also preserved the finding: five-window eligibility was 94.2%-96.1% of primary-analysis documents in each quartile, and all 40 model-by-draw slopes were negative (<xref ref-type="supplementary-material" rid="app5">Multimedia Appendix 5</xref>). Query length was flat across strata (<xref ref-type="supplementary-material" rid="app2">Multimedia Appendix 2</xref>) and query position did not vary with the derangement score (<italic>P</italic>=.97). Independently of that score, later-originating passages retrieved less well in 7 of 8 dense models, by a margin comparable to the derangement slopes. These analyses narrow, but do not identify, the pathway. The attenuation profile across candidates is shown in <xref rid="figure5" ref-type="fig">Figure 5</xref>.</p>
        <fig id="figure5" position="float">
          <label>Figure 5</label>
          <caption>
            <p>Attenuation of the derangement coefficient by candidate explanation. Points are the 8 dense retrievers, and vertical bars are the mean across them. Values are from the complete-case sample where applicable; semantic dispersion was estimated on the full sample. Design candidates, controlled by construction, and same-patient competition, assessed by masking, are not shown.</p>
          </caption>
          <graphic xlink:href="ai_v5i1e112610_fig5.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Exposure and Model-Family Sensitivities</title>
        <p>Restratification using the laboratory-only organ-dysfunction score produced 523 documents per quartile (2092 pooled), with median scores of 0, 2, 3, and 6 across strata. The score had near-zero rank correlation with the primary composite quartile (Spearman ρ=−0.010). All 8 dense retrievers had negative quartile slopes, and 7 of 8 had negative slopes on the score value, but only BioLORD survived Holm correction under either parameterization (value −0.0070, 95% CI −0.0109 to −0.0031); BM25 was flat (+0.001, <italic>P</italic>=.90). Retrieval was similar across the lower 3 strata and lower only in the highest (<xref ref-type="supplementary-material" rid="app6">Multimedia Appendix 6</xref>).</p>
        <p>That analysis differs from the primary one in sample and candidate index as well as in exposure, so both exposures were also evaluated on identical records within the same 2092-document index. Both were negative in all 8 models, and each reached nominal significance in one model, though not the same one, and the per-model difference between the composite and organ-dysfunction slopes included 0 in every model (across-model mean difference −0.0027, reported descriptively because the paired intervals were estimated per model). The composite’s own slope was attenuated in this subsample (mean −0.0087, against −0.0145 in the primary analysis), so the contrast between the 2 original analyses cannot be attributed to exposure definition alone. Evidence for an organ-dysfunction association was model-dependent, and specificity to the composite was not established (<xref ref-type="supplementary-material" rid="app7">Multimedia Appendix 7</xref>).</p>
        <p>Removing age from the exposure and rebuilding the strata reassigned 23.8% of stays and reduced the matched denominator to 696 per quartile. All 8 dense models still declined; the mean Q1-to-Q4 relative decline was 29.7% vs 37.2% in the primary analysis. Seven models remained nominally significant, and 3 remained significant after the Holm adjustment. The relative dense-vs-BM25 slope difference persisted (−0.058, 95% CI −0.099 to −0.016), while the absolute difference again included 0. The gradient is therefore not wholly attributable to age, although age contributes materially to its magnitude and to per-model statistical significance. Full model-level results are reported in <xref ref-type="supplementary-material" rid="app8">Multimedia Appendix 8</xref>.</p>
        <p>The further sensitivities specified in the Methods section were directionally consistent, with model-level results in <xref ref-type="supplementary-material" rid="app9">Multimedia Appendix 9</xref>. Mean relative declines were 31.5% in the unmatched sample (743 documents per quartile; 2972 pooled; 4 of 8 Holm-significant), 27.5% and 24.4% in the earlier separate-index design with and without length matching, and 33.4% with all 3896 usable pairs in a single unmatched pooled index of unequal strata (1247, 1033, 873, and 743 documents), where 8 of 8 survived Holm adjustment. BM25 declined by 11.5%, 11.7%, 8.9%, and 13.7% in those 4 designs, and the absolute dense-vs-BM25 slope difference again included 0 in each. In the all-pairs design, per-model slopes were close to the primary estimates, and the separability pattern was reproduced, with margins falling in all 8 dense models while the best nontarget score moved by at most 0.004. The direction therefore persists without matching or equal-size subsampling. The magnitude differs, but those comparisons change sampling and index composition as well as matching, so the difference cannot be attributed to any one of them.</p>
        <p>The mean decline varies across these designs from 24.4% to 37.2%, and the count of Holm-significant models in the pooled designs ranges from 4 to 8. The pooled length-matched design is treated as primary because it holds index size, distractor composition, and document length constant simultaneously, and it is also the design that yields the largest estimate. All 5 are reported together in <xref ref-type="supplementary-material" rid="app9">Multimedia Appendix 9</xref>.</p>
        <p>The 2 biomedically specialized dense retrievers, MedCPT and BioLORD, had the lowest absolute performance and among the steepest proportional declines. The 5 masked language model encoders performed only several-fold above random ranking, showed no interpretable gradient, and served only as a floor.</p>
      </sec>
      <sec>
        <title>Vital Status, Outcome Adjustment, and Query Length</title>
        <p>Because hospital mortality rose across strata, retrieval was also summarized by vital status. Within strata, patients who died were retrieved less well than survivors in most retrievers, but the difference was Holm-significant in 3 of 8 under the composite (BGE, E5, and BioLORD) and in 1 of 8 under OASIS (BioLORD). Adding in-hospital death, discharge disposition, and hospital and ICU length of stay to the adjustment set attenuated the derangement coefficient by a mean of 29.7% under the composite and 22.7% under OASIS, leaving 5 of 8 and 7 of 8 coefficients nominally significant. All 4 added variables are measured after the exposure window and may lie on downstream pathways, so this is a postexposure outcome-adjustment sensitivity analysis: attenuation in it is given no causal interpretation and is not evidence against the unadjusted estimate. Mean RR at 10 by vital status within each stratum, with the conditional death coefficients, is given in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>0.</p>
        <p>Query length did not vary across strata in the primary query set: 38.7, 38.4, 39.2, and 38.4 words from the lowest to the highest stratum under the composite (−0.01 words per stratum, 95% CI −0.42 to +0.41; <italic>P</italic>=.98) and 39.0, 38.7, 38.6, and 38.5 words under OASIS (−0.16, 95% CI −0.55 to +0.23; <italic>P</italic>=.42). The earlier finding for the five-draw subset therefore also holds for the queries used in the primary analysis.</p>
      </sec>
      <sec>
        <title>Outcome Specification, Pooled Estimation, and Representation</title>
        <p>Because RR at 10 is 0 for most queries, the untruncated rank was analyzed directly. On the log scale, the geometric mean rank of the correct document rose by a factor of 1.17 per stratum under the composite (1.12-1.20 across retrievers) and 1.24 under OASIS (1.17-1.29), positive and Holm-significant in 8 of 8 retrievers under both (<italic>P</italic>≤.002); averaged across retrievers, the geometric mean rank moved from 71 to 123 under the composite and from 75 to 140 under OASIS. Entered categorically, the highest stratum sat 1.48 to 1.89 times further down the ranked list than the lowest under the composite and 1.57 to 2.09 times under OASIS. The median rank approximately doubled, with a mean ratio of 1.96 under the composite and 2.08 under OASIS, and a Mantel-Cox trend test on the same ranks was Holm-significant in 7 of 8 retrievers under the composite, except E5, and 8 of 8 under OASIS (z −3.43 to −6.14). Hit@10 fell correspondingly, with odds ratios per stratum of 0.81 to 0.92 under the composite and 0.79 to 0.89 under OASIS, Holm-significant in 7 of 8 and 8 of 8, respectively. The association is therefore not an artifact of truncating rank at 10, nor of applying a linear model to a bounded outcome.</p>
        <p>A single pooled model across all 8 retrievers, with retriever fixed effects and patient-clustered SEs, estimated a common slope of −0.0145 per stratum under the composite (95% CI −0.0207 to −0.0082; <italic>P</italic>&#60;.001; 23,648 observations, 2751 patients) and −0.0168 under OASIS (95% CI −0.0226 to −0.0110; <italic>P</italic>&#60;.001; 27,584 observations, 3164 patients). The quartile-by-retriever interaction was not significant under the composite (Wald <italic>χ</italic>²₇=7.3; <italic>P</italic>=.40) but was significant under OASIS (<italic>χ</italic>²₇=18.7; <italic>P</italic>=.009), and the rank order of the eight per-model slopes was only moderately preserved between exposures (Spearman ρ=0.48), with E5 moving from second shallowest under the composite to second steepest under OASIS. Effect magnitude therefore varies between retrievers, and the pooled estimate should be read alongside the per-model range rather than in place of it.</p>
        <p>Scoring BM25 on windowed documents that match the dense scoring geometry did not significantly change its slope. Within the representation implementation, whose whole-document BM25 slope was −0.0145 under the composite against −0.0160 in the primary analysis, the windowed slope was −0.0184 (paired difference +0.0039, 95% CI −0.0066 to +0.0131; <italic>P</italic>=.40); under OASIS the implementation gave −0.0287 against −0.0295 in the primary analysis, and the windowed slope was −0.0289 (+0.0002, 95% CI −0.0088 to +0.0092; <italic>P</italic>=.95). None of 6 contrasts, across 2 exposures, 2 inverse document frequency conventions, and 2 window sizes, reached significance on either the slope or the relative decline, and whole-document BM25 under this implementation reproduced the published per-stratum values to within 0.007. The dense-to-lexical contrast is therefore not an artifact of BM25 scoring whole documents, while the dense retrievers score windows.</p>
        <p>The 3 retrievers with differing documented query and document instructions were rescored as specified. The asymmetric configuration reproduced the published per-stratum values to within 6×10⁻⁵, and every slope remained negative and nominally significant under every setting: BGE −0.0192 to −0.0160, E5 −0.0117 to −0.0102, and Nomic −0.0177 to −0.0124. Absolute level moved in both directions, with E5 improving under symmetric settings from 0.114 to 0.128 in the lowest stratum, consistent with a task closer to symmetric passage matching than to asymmetric question answering.</p>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>Across 8 independently trained dense retrievers, known-item retrieval of ICU discharge summaries deteriorated as an independently measured acute physiological derangement composite increased. It was observed in a common pooled index with document-length matching, and its direction persisted under every sensitivity analysis reported here. BM25 also deteriorated, so the phenomenon is not peculiar to embeddings, although dense retrieval lost a larger proportion of a much lower baseline. Under a laboratory-only organ-dysfunction stratification, the slopes were directionally similar but less consistently supported, and a matched comparison on identical records could not distinguish the 2 exposures, so which dimension of derangement the association tracks remains open.</p>
        <p>The gradient was reproduced under a validated severity score, OASIS, at essentially the same magnitude and with all 8 retrievers Holm-significant under both exposures. Because OASIS shares 6 of its 10 input variables with the composite, including age and mechanical ventilation, that agreement is convergent validation under an externally defined exposure rather than a component-isolation analysis. The age-free reconstruction addresses the component question, and it preserved direction in all 8 retrievers while reducing magnitude and per-model significance. The evidence therefore supports a gradient associated with early physiological derangement as measured by the composite, in which age is an independently scored component that contributes materially to the magnitude.</p>
        <p>The geometric analysis narrows where the ranking failure occurs. The target document becomes less similar to a passage drawn from itself as the derangement score increases, whereas the best competing document changes much less, which argues against simple crowding of high-derangement records as the dominant explanation. It does not identify why self-retrievability falls. The measured alternatives either varied little with exposure or only modestly attenuated the coefficient, leaving section of origin, clinical register, authorial heterogeneity, and higher-order properties of narrative synthesis as plausible pathways.</p>
        <p>The exposure is built from measurements obtained early in the ICU stay for almost all patients, whereas the outcome is a property of the discharge narrative, so the finding is neither a circular comparison of text-defined subgroups nor a claim that biology acts directly on retrieval. A more appropriate chain is underlying physiological derangement→measurement→recordedclinicalstate→interpretation and action→documentation→information geometry. This study relates an early measured derangement signal to a later property of the discharge-summary representation, without identifying the intervening pathway.</p>
        <p>Adjustment for diagnoses, medications, procedures, comorbidity, note length, documentation lag, and note index attenuated the mean coefficient by 21.6%, more than any single covariate. Because several of those variables may lie downstream of the exposure, the attenuation is not a causal decomposition, and most of the unadjusted magnitude remained after adjustment.</p>
        <p>Several analyses converge on one methodological point. Apparent differences between retrievers, exposures, and document representations were consistently larger on a relative than on an absolute scale, and in each case traceable to a difference in baseline rather than in degradation. The dense-to-lexical contrast is the clearest instance: absolute slopes were statistically indistinguishable while proportional declines differed by a factor of 2.8, because BM25 operates from a baseline roughly three times higher. Absolute differences are therefore reported first throughout, with proportional declines as secondary.</p>
        <p>A single corpus mean can conceal large, patient-associated differences in retrieval performance: dense-model Q1-to-Q4 declines ranged from about 29% to 44% here.</p>
        <p>Two deployment patterns are in scope for these results, and one is not. Cohort search and similar-patient lookup retrieve across patients from a shared index, which is the geometry evaluated here, and the subgroup-stratified evaluation we recommend applies to them. Retrieval-augmented generation that searches within a single patient’s record is not in scope: its candidate population is that patient’s own documents, there is no cross-patient competition, and nothing in this design speaks to it.</p>
      </sec>
      <sec>
        <title>Comparison With Prior Work</title>
        <p>Prior EHR retrieval evaluation has varied models, query types, pooling strategies, retrieval settings, and documentation context [<xref ref-type="bibr" rid="ref3">3</xref>-<xref ref-type="bibr" rid="ref8">8</xref>], and a distinct question is whether model rankings transfer between institutions. Those axes concern which retriever to choose and whether that choice travels. The present study holds the retriever fixed and varies the patient, which, to our knowledge, has not previously been tested against a derangement measure derived independently of the text.</p>
        <p>Biomedical specialization did not confer greater robustness in the 2 specialized retrievers evaluated here, consistent with prior clinical-retrieval benchmarking [<xref ref-type="bibr" rid="ref3">3</xref>,<xref ref-type="bibr" rid="ref6">6</xref>]. MedCPT is trained on PubMed search logs and BioLORD on ontology-derived concept definitions, and neither training distribution resembles narrative discharge documentation. Whether a retriever trained directly on EHR documentation behaves differently remains open [<xref ref-type="bibr" rid="ref4">4</xref>]; we did not evaluate DR.EHR (dense retrieval for electronic health record) because it is trained on MIMIC-IV discharge summaries, which are also our evaluation corpus, so without documented nonoverlap, its performance could not be interpreted as an independent benchmark.</p>
        <p>Several of the authors’ related analyses use the same resource, so the overlap should be explicit. The multicorpus embedding benchmark cited above [<xref ref-type="bibr" rid="ref8">8</xref>] draws on MIMIC-IV-Note and four of the present encoders, but its exposure is corpus type and query format rather than the patient, and its documents, queries, and cohort differ. A companion analysis of whether retriever rankings transfer between institutions shares the encoder panel and the known-item assay but varies the institution rather than physiological derangement and uses a different candidate index. The largest overlap is with the companion time-series analysis for which the cohort and the composite were built: it shares this cohort and the exposure itself, but its outcome is a physiological time series rather than retrieval, and it uses no document text, query, or embedding. No query, target document, embedding cache, or fitted model is shared with any of the three; what is shared is the underlying resource, the cohort and exposure with the time-series analysis, and the encoder panel and assay with the retrieval studies.</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>Cohort retention differed modestly by exposure: the proportion of ICU stays contributing a linked single-ICU-stay discharge summary rose from 66.5% in the lowest to 73.9% in the highest derangement quartile. Excluding admissions with more than one ICU stay removes some complex trajectories by design, and the effect of these exclusions on the retrieval gradient is not established.</p>
        <p>The exposure is a study-specific composite rather than a validated severity score. Its mortality discrimination is modest, as is that of OASIS on the same records, and it is essentially orthogonal both to the two-component platelet-and-creatinine SOFA subscore (Spearman ρ=0.004) and to the three-component laboratory-only organ-dysfunction score (Spearman ρ=−0.010), which cover different organ axes. The primary analysis was repeated under a validated first-day severity score, and the gradient was reproduced, but age contributes to both scores, and the age-free reconstruction preserved direction in all 8 retrievers while reducing the mean decline to 29.7% and the number of Holm-significant models to three.</p>
        <p>The composite’s Glasgow Coma Scale term was taken as the lowest recorded value, without the convention of substituting a normal value when the verbal component cannot be assessed because of intubation. Ventilated stays therefore receive both a ventilation point and a depressed Glasgow Coma Scale score, correlating at Spearman ρ=0.53, so early ventilation enters the composite through 2 channels where the design intended one; 78.2% (2234/2857) of ventilated stays fell in the worst band. Ventilation prevalence rises across the strata, from 35.7% (702/1967) in the lowest to 68.4% (718/1049) in the highest, so the double count is not confined to one stratum. Its magnitude is nonetheless bounded: ventilated and nonventilated stays differed by 1.41 points on an 18-point scale, and ventilation status accounted for about 6% of the rank variance of the composite total (Spearman ρ=0.24). The OASIS replication applies the opposite convention and produced the same gradient.</p>
        <p>The validated-score replication does not address the age component. OASIS assigns up to 9 of its points to age and 9 to mechanical ventilation, so agreement between OASIS and the composite is expected partly for that reason. The age-free reconstruction remains the relevant analysis for whether a gradient persists without age, and it reduced both magnitude and per-model significance.</p>
        <p>The shape of the association is not resolved. Departure from linearity was rejected in only one of 8 retrievers under each exposure, but the lowest-stratum contrast recovered more of the range than a straight line implies, so some front-loading is likely, and the data are not powerful enough to characterize it retriever by retriever.</p>
        <p>Known-item retrieval is a controlled assay rather than a deployed clinical search task. It measures self-retrievability of a known target and should not be read as a failure rate for retrieval-augmented generation or clinical decision support, nor does the gradient reported here need to propagate proportionally to factual accuracy in a generation system.</p>
        <p>The sentence-eligibility rule excluded any sentence appearing in more than three documents and therefore favored distinctive narrative passages, so the gradient may not generalize to common, templated, or repetitive clinical text; the alternative-query analysis varied which eligible passage was used, not the eligibility rule itself. The query is also a verbatim passage rather than a clinician-authored question, so vocabulary overlap and query-document symmetry are higher than in prospective clinical retrieval.</p>
        <p>Query-side and document-side contributions are not fully separable because both query passages and targets originate from the same derangement-associated notes. Alternative sampling, measured query features, and the query-instruction sensitivity reduce this concern, but section, register, and synthesis properties remain incompletely characterized.</p>
        <p>The structured complexity and documentation covariates varied only modestly across strata: median distinct diagnoses 21 to 24, procedures 4 to 5, Charlson index 3 in all 4 strata (Spearman ρ=0.00), and documentation lag 22.2 to 24.3 hours. Their attenuation therefore describes these measures within this cohort’s range rather than bounding the broader constructs.</p>
        <p>The alternative-explanation analyses include exploratory, post hoc components. Their purpose is to narrow plausible explanations rather than to establish a mediator or causal pathway.</p>
        <p>The dense-vs-lexical difference is scale-dependent. No difference in absolute RR slopes was detected; the stronger dense effect is proportional to its lower baseline. A representation sensitivity, in which BM25 was scored on windowed documents matching the dense geometry, did not change this conclusion.</p>
        <p>The magnitude of the gradient is design-conditional, ranging from a 24.4% to a 37.2% mean decline across the 5 designs reported, although the direction is negative in all 8 models under every design. A laboratory-only organ-dysfunction stratification also produced negative slopes in all 8 models, but only one survived multiplicity correction, and a matched comparison on identical records could not distinguish it from the composite, so which dimension of derangement the association tracks is not resolved.</p>
        <p>The source cohort comprised adult medical ICU stays of at least 72 hours whose earliest qualifying stay began in a medical ICU. Shorter stays, transfers in from another unit, and surgical, cardiac, and other ICU populations were not studied, so the findings do not represent all ICU admissions.</p>
        <p>Component cut points and strata are defined relative to this cohort rather than by fixed clinical thresholds, so replication should distinguish applying the present cut points (<xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) from rederiving them locally. This is a single-site, single-genre study from one academic medical center in one deidentification regime; generalization to other institutions, note types, and deidentification pipelines is untested.</p>
        <p>The panel comprises open or open-weight encoders hosted locally. Proprietary API embedding models were not evaluated, so the findings apply strictly to the tested models and may not extend to proprietary end points, which many enterprise deployments rely on. The 5 masked language model comparators were standardized to CLS pooling and function as a performance floor. The separability analysis identifies where score geometry changes, not why target self-similarity falls.</p>
      </sec>
      <sec>
        <title>Conclusions</title>
        <p>Retrievability of an ICU discharge summary depends in part on the patient it describes. Across 8 contrastively trained dense retrievers, records in the worst quartile of an acute physiological derangement composite were retrieved less well than those in the best, by 0.047 reciprocal-rank units. The association held under an externally defined and validated severity-of-illness score as well as the study-specific composite and in lexical as well as dense retrieval, and most of its magnitude remained after joint adjustment for measured clinical and documentary characteristics. Corpus-level retrieval metrics are therefore insufficient on their own, and performance should be reported by patient subgroup.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group>
      <supplementary-material id="app1">
        <label>Multimedia Appendix 1</label>
        <p>Source cohort and specification of the acute physiological derangement composite: cohort criteria, components, aggregation, plausibility bounds, cut points, missing-data handling, and stratum boundaries; the sentence-normalization and line-exclusion rules used for query eligibility; per-model instruction prefixes, pooling conventions, and pinned revisions; and the two reference-definition properties replicated in the Oxford Acute Severity of Illness Score computation.</p>
        <media xlink:href="ai_v5i1e112610_app1.docx" xlink:title="DOCX File , 24 KB"/>
      </supplementary-material>
      <supplementary-material id="app2">
        <label>Multimedia Appendix 2</label>
        <p>Query characteristics by derangement quartile in the 5-draw analysis subset, with 5-window eligibility among the primary-analysis documents.</p>
        <media xlink:href="ai_v5i1e112610_app2.docx" xlink:title="DOCX File , 15 KB"/>
      </supplementary-material>
      <supplementary-material id="app3">
        <label>Multimedia Appendix 3</label>
        <p>Alternative explanations and sensitivity results: candidate, assessment, result, and mean attenuation of the dense-model derangement coefficient.</p>
        <media xlink:href="ai_v5i1e112610_app3.docx" xlink:title="DOCX File , 17 KB"/>
      </supplementary-material>
      <supplementary-material id="app4">
        <label>Multimedia Appendix 4</label>
        <p>Retrieval separability across derangement quartiles: target and best-non-target maximum query-to-chunk cosine similarity, the number of nontargets scoring above the target, and the margin slope per quartile.</p>
        <media xlink:href="ai_v5i1e112610_app4.docx" xlink:title="DOCX File , 16 KB"/>
      </supplementary-material>
      <supplementary-material id="app5">
        <label>Multimedia Appendix 5</label>
        <p>Stability of the derangement slope across 5 random query draws.</p>
        <media xlink:href="ai_v5i1e112610_app5.docx" xlink:title="DOCX File , 15 KB"/>
      </supplementary-material>
      <supplementary-material id="app6">
        <label>Multimedia Appendix 6</label>
        <p>Restratification by a laboratory-only organ-dysfunction score: per-model slopes on score quartile and on score value.</p>
        <media xlink:href="ai_v5i1e112610_app6.docx" xlink:title="DOCX File , 16 KB"/>
      </supplementary-material>
      <supplementary-material id="app7">
        <label>Multimedia Appendix 7</label>
        <p>Matched comparison of the 2 exposures on identical records within a single candidate index, with paired bootstrap intervals for the slope difference.</p>
        <media xlink:href="ai_v5i1e112610_app7.docx" xlink:title="DOCX File , 15 KB"/>
      </supplementary-material>
      <supplementary-material id="app8">
        <label>Multimedia Appendix 8</label>
        <p>Age-free exposure sensitivity: pooled index, 2784 documents, with original values for comparison.</p>
        <media xlink:href="ai_v5i1e112610_app8.docx" xlink:title="DOCX File , 15 KB"/>
      </supplementary-material>
      <supplementary-material id="app9">
        <label>Multimedia Appendix 9</label>
        <p>Sensitivity analyses: unmatched sample, separate-index design, and all usable query-target pairs.</p>
        <media xlink:href="ai_v5i1e112610_app9.docx" xlink:title="DOCX File , 15 KB"/>
      </supplementary-material>
      <supplementary-material id="app10">
        <label>Multimedia Appendix 10</label>
        <p>Mean reciprocal rank at 10 by vital status within each stratum, under both exposures, with the death coefficient conditional on stratum.</p>
        <media xlink:href="ai_v5i1e112610_app10.docx" xlink:title="DOCX File , 18 KB"/>
      </supplementary-material>
    </app-group>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">API</term>
          <def>
            <p>application programming interface</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">AUROC</term>
          <def>
            <p>area under the receiver operating characteristic curve</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">CLS</term>
          <def>
            <p>classification token</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">DR.EHR</term>
          <def>
            <p>dense retrieval for electronic health record</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb5">EHR</term>
          <def>
            <p>electronic health record</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb6">hit@10</term>
          <def>
            <p>hit at 10</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb7">ICD</term>
          <def>
            <p>International Classification of Diseases</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb8">ICD-9</term>
          <def>
            <p>International Statistical Classification of Diseases, Ninth Revision</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb9">ICD-9-CM</term>
          <def>
            <p>International Statistical Classification of Diseases, Ninth Revision, Clinical Modification</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb10">ICD-10</term>
          <def>
            <p>International Statistical Classification of Diseases, Tenth Revision</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb11">ICU</term>
          <def>
            <p>intensive care unit</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb12">MIMIC-IV</term>
          <def>
            <p>Medical Information Mart for Intensive Care IV</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb13">MIT-LCP</term>
          <def>
            <p>MIT Laboratory for Computational Physiology</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb14">OASIS</term>
          <def>
            <p>Oxford Acute Severity of Illness Score</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb15">RR</term>
          <def>
            <p>reciprocal rank</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb16">RR@10</term>
          <def>
            <p>reciprocal rank at 10</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb17">SOFA</term>
          <def>
            <p>Sequential Organ Failure Assessment</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb18">VIF</term>
          <def>
            <p>variance inflation factor</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <notes>
      <title>Data Availability</title>
      <p>MIMIC-IV (version 3.1) and MIMIC-IV-Note (version 2.2) are available to credentialed users through PhysioNet under a data use agreement [<xref ref-type="bibr" rid="ref10">10</xref>,<xref ref-type="bibr" rid="ref11">11</xref>]. The cohort construction, query extraction, retrieval scoring, and all sensitivity and covariate analyses are available in the public GitHub repository [<xref ref-type="bibr" rid="ref36">36</xref>] and archived as a frozen Zenodo release [<xref ref-type="bibr" rid="ref37">37</xref>]. Aggregate results are reported in the manuscript and its multimedia appendices. MIMIC-derived per-query outputs and identifiers are not redistributed; they can be regenerated by credentialed users from the released code. No clinical note text or other patient-level data are redistributed. The repository is version-controlled, and release 1.3.0, archived at the cited digital object identifier, is the code state used for the results reported here, including the scripts for the analyses added at revision.</p>
    </notes>
    <notes>
      <title>Funding</title>
      <p>This research received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.</p>
    </notes>
    <fn-group>
      <fn fn-type="con">
        <p>YM was solely responsible for the conceptualization, methodology, software, formal analysis, investigation, data curation, visualization, project administration, writing of the original draft, and reviewing and editing of the manuscript. The author read and approved the final paper.</p>
      </fn>
      <fn fn-type="conflict">
        <p>The author (YM) is separately employed as Chief Medical Officer of AlgiPharma AS, a clinical-stage biopharmaceutical company; this employment is unrelated to the present work. AlgiPharma AS had no role in the design, conduct, analysis, interpretation, or reporting of this study or in the decision to submit it for publication. The author declares no other relationships or activities that could appear to have influenced the submitted work.</p>
      </fn>
    </fn-group>
    <notes>
      <sec>
        <title>Generative AI Use</title>
        <p>The author declares that generative AI was used in the creation of this manuscript. Generative AI (Claude) was used for proofreading, editing, or language polishing; code generation or optimization; and reference formatting. The author also used Claude (Anthropic) for code development and review, figure and table generation, and manuscript structural editing, and Grammarly was used for spell check, grammar, and text clarity. The author verified all outputs of the tool(s) used in the preparation of this manuscript and takes full responsibility for the final content of the manuscript.</p>
      </sec>
    </notes>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>McCoy</surname>
              <given-names>AB</given-names>
            </name>
            <name name-style="western">
              <surname>Wright</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Improving large language model applications in biomedicine with retrieval-augmented generation: a systematic review, meta-analysis, and clinical development guidelines</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2025</year>
          <volume>32</volume>
          <issue>4</issue>
          <fpage>605</fpage>
          <lpage>615</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://academic.oup.com/jamia/article-lookup/doi/10.1093/jamia/ocaf008"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamia/ocaf008</pub-id>
          <pub-id pub-id-type="medline">39812777</pub-id>
          <pub-id pub-id-type="pii">7954485</pub-id>
          <pub-id pub-id-type="pmcid">PMC12005634</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Amugongo</surname>
              <given-names>LM</given-names>
            </name>
            <name name-style="western">
              <surname>Mascheroni</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Brooks</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Doering</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Seidel</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>Retrieval augmented generation for large language models in healthcare: a systematic review</article-title>
          <source>PLOS Digit Health</source>
          <year>2025</year>
          <volume>4</volume>
          <issue>6</issue>
          <fpage>e0000877</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dx.plos.org/10.1371/journal.pdig.0000877"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pdig.0000877</pub-id>
          <pub-id pub-id-type="medline">40498738</pub-id>
          <pub-id pub-id-type="pii">PDIG-D-24-00337</pub-id>
          <pub-id pub-id-type="pmcid">PMC12157099</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zhao</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Yuan</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Ying</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Zhou</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>CliniQ: a multi-faceted benchmark for electronic health record retrieval with semantic match assessment</article-title>
          <source>arXiv. Preprint posted online on April 8, 2025</source>
          <year>2025</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2502.06252</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>Zhao</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Ying</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Yu</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Dense retrieval for electronic health record with knowledge injection and synthetic data</article-title>
          <source>IEEE J Biomed Health Inform</source>
          <year>2026</year>
          <fpage>1</fpage>
          <lpage>10</lpage>
          <pub-id pub-id-type="doi">10.1109/JBHI.2026.3692546</pub-id>
          <pub-id pub-id-type="medline">42118632</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ou</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Zhao</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Yu</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Lu</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Shen</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Experience retrieval-augmentation with electronic health records enables accurate discharge QA</article-title>
          <year>2026</year>
          <conf-name>Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)</conf-name>
          <conf-date>July 2-7, 2026</conf-date>
          <conf-loc>San Diego, CA</conf-loc>
          <publisher-name>Association for Computational Linguistics</publisher-name>
          <fpage>23406</fpage>
          <lpage>23430</lpage>
          <pub-id pub-id-type="doi">10.18653/v1/2026.acl-long.1073</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Myers</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Miller</surname>
              <given-names>TA</given-names>
            </name>
            <name name-style="western">
              <surname>Gao</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Churpek</surname>
              <given-names>MM</given-names>
            </name>
            <name name-style="western">
              <surname>Mayampurath</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Dligach</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Afshar</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Lessons learned on information retrieval in electronic health records: a comparison of embedding models and pooling strategies</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2025</year>
          <volume>32</volume>
          <issue>2</issue>
          <fpage>357</fpage>
          <lpage>364</lpage>
          <pub-id pub-id-type="doi">10.1093/jamia/ocae308</pub-id>
          <pub-id pub-id-type="medline">39703187</pub-id>
          <pub-id pub-id-type="pii">7929311</pub-id>
          <pub-id pub-id-type="pmcid">PMC11756698</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>Arzideh</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Schäfer</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Idrissi-Yaghir</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Schmidt</surname>
              <given-names>CS</given-names>
            </name>
            <name name-style="western">
              <surname>Eryilmaz</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Bahn</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Turki</surname>
              <given-names>AT</given-names>
            </name>
            <name name-style="western">
              <surname>Pollok</surname>
              <given-names>OB</given-names>
            </name>
            <name name-style="western">
              <surname>Hartmann</surname>
              <given-names>EM</given-names>
            </name>
            <name name-style="western">
              <surname>Winnekens</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Borys</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Haubold</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Nensa</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Hosch</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>Improving retrieval augmented generation for health care by fine-tuning clinical embedding models: development and evaluation study</article-title>
          <source>J Med Internet Res</source>
          <year>2026</year>
          <volume>28</volume>
          <fpage>e82997</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.jmir.org/2026//e82997/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/82997</pub-id>
          <pub-id pub-id-type="medline">41880603</pub-id>
          <pub-id pub-id-type="pii">v28i1e82997</pub-id>
          <pub-id pub-id-type="pmcid">PMC13016438</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>Mikkelsen</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Clinical context variables collectively rival model choice in embedding-based retrieval: multi-corpus benchmark study</article-title>
          <source>JMIR Med Inform</source>
          <year>2026</year>
          <volume>14</volume>
          <fpage>e94241</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://medinform.jmir.org/2026//e94241/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/94241</pub-id>
          <pub-id pub-id-type="medline">42097608</pub-id>
          <pub-id pub-id-type="pii">v14i1e94241</pub-id>
          <pub-id pub-id-type="pmcid">PMC13195371</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>Robertson</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Zaragoza</surname>
              <given-names>H</given-names>
            </name>
          </person-group>
          <article-title>The probabilistic relevance framework: BM25 and beyond</article-title>
          <source>Found Trends Inform Retr</source>
          <year>2009</year>
          <volume>4</volume>
          <issue>1-2</issue>
          <fpage>1</fpage>
          <lpage>174</lpage>
          <pub-id pub-id-type="doi">10.1561/1500000019</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>Johnson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Pollard</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Horng</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Celi</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Mark</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>MIMIC-IV-note: deidentified free-text clinical notes (version 2.2)</article-title>
          <source>PhysioNet</source>
          <year>2023</year>
          <pub-id pub-id-type="doi">10.13026/1n74-ne17</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>Johnson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Bulgarelli</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Pollard</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Gow</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Moody</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Horng</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>MIMIC-IV (version 3.1)</article-title>
          <source>PhysioNet</source>
          <year>2024</year>
          <pub-id pub-id-type="doi">10.13026/kpb9-mt58</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>Johnson</surname>
              <given-names>AEW</given-names>
            </name>
            <name name-style="western">
              <surname>Bulgarelli</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Shen</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Gayles</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Shammout</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Horng</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Pollard</surname>
              <given-names>TJ</given-names>
            </name>
            <name name-style="western">
              <surname>Hao</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Moody</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Gow</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Lehman</surname>
              <given-names>LH</given-names>
            </name>
            <name name-style="western">
              <surname>Celi</surname>
              <given-names>LA</given-names>
            </name>
            <name name-style="western">
              <surname>Mark</surname>
              <given-names>RG</given-names>
            </name>
          </person-group>
          <article-title>MIMIC-IV, a freely accessible electronic health record dataset</article-title>
          <source>Sci Data</source>
          <year>2023</year>
          <volume>10</volume>
          <issue>1</issue>
          <fpage>1</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1038/s41597-022-01899-x"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41597-022-01899-x</pub-id>
          <pub-id pub-id-type="medline">36596836</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41597-022-01899-x</pub-id>
          <pub-id pub-id-type="pmcid">PMC9810617</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>Pollard</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Moody</surname>
              <given-names>BE</given-names>
            </name>
            <name name-style="western">
              <surname>Lehman</surname>
              <given-names>LH</given-names>
            </name>
            <name name-style="western">
              <surname>Gow</surname>
              <given-names>BJ</given-names>
            </name>
            <name name-style="western">
              <surname>Fernandes</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Xie</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Johnson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Mark</surname>
              <given-names>RG</given-names>
            </name>
            <name name-style="western">
              <surname>Heldt</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>PhysioNet as a global platform for biomedical research</article-title>
          <source>Nat Health</source>
          <year>2026</year>
          <volume>1</volume>
          <issue>8</issue>
          <fpage>792</fpage>
          <lpage>795</lpage>
          <pub-id pub-id-type="doi">10.1038/s44360-026-00096-z</pub-id>
          <pub-id pub-id-type="medline">42841059</pub-id>
          <pub-id pub-id-type="pmcid">PMC13641116</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Johnson</surname>
              <given-names>AEW</given-names>
            </name>
            <name name-style="western">
              <surname>Kramer</surname>
              <given-names>AA</given-names>
            </name>
            <name name-style="western">
              <surname>Clifford</surname>
              <given-names>GD</given-names>
            </name>
          </person-group>
          <article-title>A new severity of illness scale using a subset of acute physiology and chronic health evaluation data elements shows comparable predictive accuracy</article-title>
          <source>Crit Care Med</source>
          <year>2013</year>
          <volume>41</volume>
          <issue>7</issue>
          <fpage>1711</fpage>
          <lpage>1718</lpage>
          <pub-id pub-id-type="doi">10.1097/CCM.0b013e31828a24fe</pub-id>
          <pub-id pub-id-type="medline">23660729</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="web">
          <article-title>MIT-LCP/mimic-code</article-title>
          <source>GitHub</source>
          <access-date>2026-10-12</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://github.com/MIT-LCP/mimic-code/blob/c7e07560dc847e32cbb0b2890213e8e7cbd8bc7e/mimic-iv/concepts/score/oasis.sql">https://github.com/MIT-LCP/mimic-code/blob/c7e07560dc847e32cbb0b2890213e8e7cbd8bc7e/mimic-iv/concepts/score/oasis.sql</ext-link>
          </comment>
        </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>Xiao</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Muennighoff</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Lian</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>C-Pack: packed resources for general Chinese embeddings</article-title>
          <source>arXiv. Preprint posted online on September 24, 2024</source>
          <year>2024</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2309.07597</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="web">
          <article-title>BAAI/bge-base-en-v1.5</article-title>
          <source>Hugging Face</source>
          <access-date>2026-08-21</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/BAAI/bge-base-en-v1.5">https://huggingface.co/BAAI/bge-base-en-v1.5</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Li</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Long</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Xie</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Towards general text embeddings with multi-stage contrastive learning</article-title>
          <source>arXiv. Preprint posted online on August 7, 2023</source>
          <year>2023</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2308.03281</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Jiao</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Jiang</surname>
              <given-names>D</given-names>
            </name>
          </person-group>
          <article-title>Text embeddings by weakly-supervised contrastive pre-training</article-title>
          <source>arXiv. Preprint posted February 22, 2024</source>
          <year>2024</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2212.03533</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nussbaum</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Morris</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Duderstadt</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Mulyar</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Nomic Embed: training a reproducible long context text embedder</article-title>
          <source>arXiv. Preprint posted online on February 3, 2025</source>
          <year>2025</year>
          <pub-id pub-id-type="doi">10.48550/arXiv.2402.01613</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Reimers</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Gurevych</surname>
              <given-names>I</given-names>
            </name>
          </person-group>
          <article-title>Sentence-BERT: sentence embeddings using siamese BERT-networks</article-title>
          <year>2019</year>
          <conf-name>Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing</conf-name>
          <conf-date>November 3-7, 2019</conf-date>
          <conf-loc>Hong Kong, China</conf-loc>
          <fpage>3982</fpage>
          <lpage>3992</lpage>
          <pub-id pub-id-type="doi">10.18653/v1/d19-1410</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="web">
          <article-title>sentence-transformers/all-mpnet-base-v2</article-title>
          <source>Hugging Face</source>
          <access-date>2026-10-13</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/sentence-transformers/all-mpnet-base-v2">https://huggingface.co/sentence-transformers/all-mpnet-base-v2</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="web">
          <article-title>sentence-transformers/all-MiniLM-L6-v2</article-title>
          <source>Hugging Face</source>
          <access-date>2026-10-13</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2">https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Jin</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>Q</given-names>
            </name>
            <name name-style="western">
              <surname>Comeau</surname>
              <given-names>DC</given-names>
            </name>
            <name name-style="western">
              <surname>Yeganova</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Wilbur</surname>
              <given-names>WJ</given-names>
            </name>
            <name name-style="western">
              <surname>Lu</surname>
              <given-names>Z</given-names>
            </name>
          </person-group>
          <article-title>MedCPT: contrastive pre-trained transformers with large-scale PubMed search logs for zero-shot biomedical information retrieval</article-title>
          <source>Bioinformatics</source>
          <year>2023</year>
          <volume>39</volume>
          <issue>11</issue>
          <fpage>btad651</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/37930897"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/bioinformatics/btad651</pub-id>
          <pub-id pub-id-type="medline">37930897</pub-id>
          <pub-id pub-id-type="pii">7335842</pub-id>
          <pub-id pub-id-type="pmcid">PMC10627406</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Remy</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Demuynck</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Demeester</surname>
              <given-names>T</given-names>
            </name>
          </person-group>
          <article-title>BioLORD-2023: semantic textual representations fusing large language models and clinical knowledge graph insights</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2024</year>
          <volume>31</volume>
          <issue>9</issue>
          <fpage>1844</fpage>
          <lpage>1855</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://academic.oup.com/jamia/article-lookup/doi/10.1093/jamia/ocae029"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamia/ocae029</pub-id>
          <pub-id pub-id-type="medline">38412333</pub-id>
          <pub-id pub-id-type="pii">7614965</pub-id>
          <pub-id pub-id-type="pmcid">PMC11339519</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Devlin</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>MW</given-names>
            </name>
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Toutanova</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>BERT: pre-training of deep bidirectional transformers for language understanding</article-title>
          <year>2019</year>
          <conf-name>Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1</conf-name>
          <conf-date>June 2-7, 2019</conf-date>
          <conf-loc>Minneapolis, MN</conf-loc>
          <fpage>4171</fpage>
          <lpage>4186</lpage>
          <pub-id pub-id-type="doi">10.18653/v1/N19-1423</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref27">
        <label>27</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lee</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Yoon</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kim</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>So</surname>
              <given-names>CH</given-names>
            </name>
            <name name-style="western">
              <surname>Kang</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>BioBERT: a pre-trained biomedical language representation model for biomedical text mining</article-title>
          <source>Bioinformatics</source>
          <year>2020</year>
          <volume>36</volume>
          <issue>4</issue>
          <fpage>1234</fpage>
          <lpage>1240</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/31501885"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/bioinformatics/btz682</pub-id>
          <pub-id pub-id-type="medline">31501885</pub-id>
          <pub-id pub-id-type="pii">5566506</pub-id>
          <pub-id pub-id-type="pmcid">PMC7703786</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref28">
        <label>28</label>
        <nlm-citation citation-type="web">
          <article-title>medicalai/ClinicalBERT</article-title>
          <source>Hugging Face</source>
          <access-date>2026-10-13</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://huggingface.co/medicalai/ClinicalBERT">https://huggingface.co/medicalai/ClinicalBERT</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref29">
        <label>29</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wang</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Ying</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Yan</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Lu</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Gao</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Xue</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Optimized glycemic control of type 2 diabetes with reinforcement learning: a proof-of-concept trial</article-title>
          <source>Nat Med</source>
          <year>2023</year>
          <volume>29</volume>
          <issue>10</issue>
          <fpage>2633</fpage>
          <lpage>2642</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/37710000"/>
          </comment>
          <pub-id pub-id-type="doi">10.1038/s41591-023-02552-9</pub-id>
          <pub-id pub-id-type="medline">37710000</pub-id>
          <pub-id pub-id-type="pii">10.1038/s41591-023-02552-9</pub-id>
          <pub-id pub-id-type="pmcid">PMC10579102</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref30">
        <label>30</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Gu</surname>
              <given-names>Y</given-names>
            </name>
            <name name-style="western">
              <surname>Tinn</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Cheng</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Lucas</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Usuyama</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Naumann</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Gao</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Poon</surname>
              <given-names>H</given-names>
            </name>
          </person-group>
          <article-title>Domain-specific language model pretraining for biomedical natural language processing</article-title>
          <source>ACM Trans Comput Healthcare</source>
          <year>2021</year>
          <volume>3</volume>
          <issue>1</issue>
          <fpage>1</fpage>
          <lpage>23</lpage>
          <pub-id pub-id-type="doi">10.1145/3458754</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref31">
        <label>31</label>
        <nlm-citation citation-type="confproc">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Beltagy</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Lo</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Cohan</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>SciBERT: a pretrained language model for scientific text</article-title>
          <year>2019</year>
          <conf-name>Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)</conf-name>
          <conf-date>November 3-7, 2019</conf-date>
          <conf-loc>Hong Kong, China</conf-loc>
          <fpage>3615</fpage>
          <lpage>3620</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://aclanthology.org/D19-1371/"/>
          </comment>
          <pub-id pub-id-type="doi">10.18653/v1/D19-1371</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref32">
        <label>32</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cameron</surname>
              <given-names>AC</given-names>
            </name>
            <name name-style="western">
              <surname>Miller</surname>
              <given-names>DL</given-names>
            </name>
          </person-group>
          <article-title>A practitioner's guide to cluster-robust inference</article-title>
          <source>J Hum Resour</source>
          <year>2015</year>
          <volume>50</volume>
          <issue>2</issue>
          <fpage>317</fpage>
          <lpage>372</lpage>
          <pub-id pub-id-type="doi">10.3368/jhr.50.2.317</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref33">
        <label>33</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Holm</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>A simple sequentially rejective multiple test procedure</article-title>
          <source>Scand J Stat</source>
          <year>1979</year>
          <volume>6</volume>
          <issue>2</issue>
          <fpage>65</fpage>
          <lpage>70</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://api.semanticscholar.org/CorpusID:122415379"/>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref34">
        <label>34</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Quan</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Sundararajan</surname>
              <given-names>V</given-names>
            </name>
            <name name-style="western">
              <surname>Halfon</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Fong</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Burnand</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Luthi</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Saunders</surname>
              <given-names>LD</given-names>
            </name>
            <name name-style="western">
              <surname>Beck</surname>
              <given-names>CA</given-names>
            </name>
            <name name-style="western">
              <surname>Feasby</surname>
              <given-names>TE</given-names>
            </name>
            <name name-style="western">
              <surname>Ghali</surname>
              <given-names>WA</given-names>
            </name>
          </person-group>
          <article-title>Coding algorithms for defining comorbidities in ICD-9-CM and ICD-10 administrative data</article-title>
          <source>Med Care</source>
          <year>2005</year>
          <volume>43</volume>
          <issue>11</issue>
          <fpage>1130</fpage>
          <lpage>1139</lpage>
          <pub-id pub-id-type="doi">10.1097/01.mlr.0000182534.19832.83</pub-id>
          <pub-id pub-id-type="medline">16224307</pub-id>
          <pub-id pub-id-type="pii">00005650-200511000-00010</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref35">
        <label>35</label>
        <nlm-citation citation-type="web">
          <article-title>MIT-LCP/mimic-code</article-title>
          <source>GitHub</source>
          <access-date>2026-08-21</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://github.com/MIT-LCP/mimic-code/blob/25f6c47ca99bb3b904b704aa4f072850cec6681b/mimic-iv/concepts/comorbidity/charlson.sql">https://github.com/MIT-LCP/mimic-code/blob/25f6c47ca99bb3b904b704aa4f072850cec6681b/mimic-iv/concepts/comorbidity/charlson.sql</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref36">
        <label>36</label>
        <nlm-citation citation-type="web">
          <article-title>yngvemikkelsen/derangement-retrieval-mimic</article-title>
          <source>GitHub</source>
          <access-date>2026-10-13</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://github.com/yngvemikkelsen/derangement-retrieval-mimic">https://github.com/yngvemikkelsen/derangement-retrieval-mimic</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref37">
        <label>37</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Mikkelsen</surname>
              <given-names>Y</given-names>
            </name>
          </person-group>
          <article-title>Analysis code for: clinical free-text retrieval across an acute physiological derangement composite in intensive care unit discharge summaries (version 1.3.0) [computer software]</article-title>
          <source>Zenodo</source>
          <year>2026</year>
          <pub-id pub-id-type="doi">10.5281/zenodo.23333326</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
