<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMI</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id>
      <journal-title>JMIR Medical Informatics</journal-title>
      <issn pub-type="epub">2291-9694</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v14i1e93188</article-id>
      <article-id pub-id-type="pmid">43131524</article-id>
      <article-id pub-id-type="doi">10.2196/93188</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 Phenotypes of Emergency Department Patients With Behavioral Health Concerns: Cluster Analysis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Steenstra</surname>
            <given-names>Ivan</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Khezrimotlagh</surname>
            <given-names>Dariush</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Chartash</surname>
            <given-names>David</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Bermudez</surname>
            <given-names>Elizabeth</given-names>
          </name>
          <degrees>MD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <xref rid="aff2" ref-type="aff">2</xref>
          <address>
            <institution/>
            <institution>Mayo Clinic Health System</institution>
            <addr-line>1000 First Dr NW</addr-line>
            <addr-line>Austin, MN, 55912</addr-line>
            <country>United States</country>
            <phone>1 507 255 5607</phone>
            <email>bermudez.elizabeth@mayo.edu</email>
          </address>
          <ext-link ext-link-type="orcid">https://orcid.org/0009-0002-5116-8746</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author">
          <name name-style="western">
            <surname>Mullan</surname>
            <given-names>Aidan</given-names>
          </name>
          <degrees>MA</degrees>
          <xref rid="aff3" ref-type="aff">3</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-8076-6935</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Hevesi</surname>
            <given-names>Sara</given-names>
          </name>
          <degrees>MD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0009-0009-3001-8627</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author">
          <name name-style="western">
            <surname>Kohler</surname>
            <given-names>Katharina</given-names>
          </name>
          <degrees>PhD</degrees>
          <xref rid="aff4" ref-type="aff">4</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0003-1919-0193</ext-link>
        </contrib>
        <contrib id="contrib5" contrib-type="author">
          <name name-style="western">
            <surname>Walker</surname>
            <given-names>Laura</given-names>
          </name>
          <degrees>MD, MBA</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-1127-327X</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Department of Emergency Medicine</institution>
        <institution>Mayo Clinic</institution>
        <addr-line>Rochester, MN</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff2">
        <label>2</label>
        <institution>Mayo Clinic Health System</institution>
        <addr-line>Austin, MN</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff3">
        <label>3</label>
        <institution>Division of Biomedical Statistics and Informatics</institution>
        <institution>Mayo Clinic</institution>
        <addr-line>Rochester, MN</addr-line>
        <country>United States</country>
      </aff>
      <aff id="aff4">
        <label>4</label>
        <institution>Department of Anaesthesia</institution>
        <institution>Cambridge University Hospitals</institution>
        <addr-line>Cambridge</addr-line>
        <country>United Kingdom</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Elizabeth Bermudez <email>bermudez.elizabeth@mayo.edu</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>3</day>
        <month>12</month>
        <year>2026</year>
      </pub-date>
      <volume>14</volume>
      <elocation-id>e93188</elocation-id>
      <history>
        <date date-type="received">
          <day>9</day>
          <month>2</month>
          <year>2026</year>
        </date>
        <date date-type="rev-request">
          <day>5</day>
          <month>5</month>
          <year>2026</year>
        </date>
        <date date-type="rev-recd">
          <day>5</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>©Elizabeth Bermudez, Aidan Mullan, Sara Hevesi, Katharina Kohler, Laura Walker. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 03.12.2026.</copyright-statement>
      <copyright-year>2026</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="https://medinform.jmir.org/2026/1/e93188" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>The emergency department (ED) is increasingly used for behavioral health visits by adults and children, posing a challenge in delivering high-quality care to these populations. Mechanisms are needed to stratify patients presenting to the ED with behavioral health concerns to initiate more personalized care. Prior clustering methods have been applied to behavioral health datasets to establish patterns within clinical data and identify patient phenotypes with distinct clinical outcomes, but few studies have used event-based timeline clustering techniques to identify phenotypes in the acute care setting.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>This study sought to use a patient event timeline cluster analysis to identify phenotypes of ED patients with behavioral health concerns and evaluate clinical outcomes among the phenotype clusters.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>This was a retrospective observational study using electronic health records to analyze adult and pediatric behavioral health ED visits at an academic hospital from January 1 to December 31, 2023. Patients with behavioral health concerns were identified by visits that included a behavioral health diagnosis, behavioral health consultation, and/or presence of an ED behavioral health boarding status change. We created event timelines and used the modified Damerau-Levenshtein edit distance to identify patient phenotype clusters based on the sequence of events that occurred during the care episode. Primary outcomes evaluated included ED length of stay, ED behavioral health boarding, physical restraint use, intramuscular antipsychotic medication administration, 3-day and 30-day ED return visits, and 90-day patient mortality. Further analysis evaluating percent difference and risk ratio (RR) by cluster was performed for ED length of stay, intramuscular antipsychotic medication administration, use of physical restraints, 3-day ED returns, and 90-day mortality, with adjustment for patient age, sex, means of arrival, and triage acuity.</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>A total of 5566 behavioral health ED visits were identified and included in the analysis. Ten distinct patient event timeline clusters were identified from 5219 visits, with the remaining 347 not clustered due to lower similarity. Cluster 0 demonstrated a significantly longer ED length of stay and greater use of intramuscular antipsychotic medications compared with all other clusters. Using cluster 0 as the reference, cluster 1 demonstrated the highest use of physical restraints, with an RR of 1.34 (95% CI 1.02-1.76), and the highest 90-day mortality, with an RR of 3.81 (95% CI 1.79-8.12). Cluster 6 demonstrated the highest 3-day ED return RR of 2.69 (95% CI 1.71-4.23).</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p>Clusters demonstrated unique combinations of clinically relevant outcomes, including prolonged length of stay, ED boarding, admission rates, restraint use, ED return rates, and mortality. The novel use of patient clustering based on event timelines can effectively identify groups of patients with similar characteristics, creating an opportunity for tailoring clinical interventions to be more specific to their needs.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>emergency medicine</kwd>
        <kwd>event timeline analysis</kwd>
        <kwd>cluster analysis</kwd>
        <kwd>clinical informatics</kwd>
        <kwd>psychiatric emergency services</kwd>
        <kwd>behavioral health services</kwd>
        <kwd>health service delivery</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <p>Fueled by a growing prevalence of behavioral health (BH) disorders and inadequate access to psychiatric care, emergency departments (EDs) are increasingly being used for BH visits by adults and children [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref4">4</xref>], therefore serving as the front line of the nation’s BH crisis. BH disorders encompass both mental health disorders and substance use disorders [<xref ref-type="bibr" rid="ref5">5</xref>]. Diagnoses in either category are associated with increased ED visits, and even more so among patients with codiagnoses [<xref ref-type="bibr" rid="ref6">6</xref>-<xref ref-type="bibr" rid="ref8">8</xref>].</p>
      <p>The quality of care delivered to patients with BH concerns varies by ED and is often inadequate [<xref ref-type="bibr" rid="ref1">1</xref>]. ED BH boarding, or the practice of holding patients in the ED after the disposition decision is made, remains a persistent problem and is associated with increased adverse events such as agitation, restraint use, and medication errors [<xref ref-type="bibr" rid="ref9">9</xref>-<xref ref-type="bibr" rid="ref14">14</xref>]. Multiple interventions have been trialed to improve the delivery of ED-based BH care, with variable success and levels of strain on the overall ED system [<xref ref-type="bibr" rid="ref15">15</xref>].</p>
      <p>Patients presenting to the ED with BH concerns represent a vulnerable, heterogeneous population. There is a need to develop effective mechanisms for stratifying BH visits so that more patient-centered care can be delivered. Clustering methods have been used to establish patterns within highly variable clinical data and identify patient phenotypes that extend beyond categorization by diagnosis alone. Within BH data, prior studies have applied latent class analysis to identify subgroups with clinically distinct outcomes for patients with opioid-related ED visits and ED patients with mental health disorders based on patient characteristics and service use patterns [<xref ref-type="bibr" rid="ref16">16</xref>,<xref ref-type="bibr" rid="ref17">17</xref>]. Other approaches have used latent Dirichlet allocation, a natural language processing technique, to identify patterns using the electronic health record (EHR), including a prior study applying this method to patients with opioid-related disorders presenting to the ED to identify differences in clinical outcomes [<xref ref-type="bibr" rid="ref18">18</xref>].</p>
      <p>Recent developments have moved from analysis of aggregate data toward methods that aim to cluster patterns of events into groups, allowing abstraction of medical decision-making and patient phenotyping based on the patient journey. Prior studies have suggested that sequences of medical events can be clustered using first-order Markov chains, while others have suggested a 2-step approach using hidden Markov models [<xref ref-type="bibr" rid="ref19">19</xref>-<xref ref-type="bibr" rid="ref21">21</xref>]. The complexity of these models can lead to difficulty with interpretation in a clinical setting, and some, for example, lower-order Markov chains, are unable to consider the long-range temporal aspects of clinical pathways. Moreover, Markov models often misinterpret rare events as unpredictable noise due to limited data when modeling state transition probabilities, which can lead to critical events in patient care being disregarded because they were uncommon.</p>
      <p>An alternative to probabilistic transition-based methods is the development of string representations for clinical pathways and subsequent clustering by distance metrics [<xref ref-type="bibr" rid="ref22">22</xref>]. Common distance metrics rely on calculating similarity based on the “edit distance” of any two strings, as demonstrated in the Levenshtein distance method, and pathways are subsequently clustered by their edit distance [<xref ref-type="bibr" rid="ref23">23</xref>].</p>
      <p>In this paper, we hypothesized that the application of a string-based edit distance clustering algorithm would best account for rare but high importance clinical events and identify distinct clinical pathway phenotypes. Our objective was to create a patient event timeline analysis to identify phenotypes of patients who were cared for in the ED for BH concerns. We hypothesized that the application of a novel clustering algorithm would identify significant differences in clinical outcomes among patient phenotype clusters.</p>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Study Design, Setting, and Population</title>
        <p>This was a retrospective observational study using EHR to create patient event timelines. Clinical data were collected from an academic, tertiary care hospital ED with annual volumes of approximately 80,000 patients per year, including approximately 13,500 pediatric visits and approximately 5500 BH visits (adult and pediatric). The department includes a 4-bed dedicated psychiatric treatment area, with overflow to the main ED for treatment of additional patients as needed. Emergency psychiatry consultation is available 24 hours per day. Data were collected from a registry of all ED patients created from the EHR and maintained by the Department of Emergency Medicine. This registry includes patient demographics, visit information, events, and disposition.</p>
        <p>All adult and pediatric patients with BH visits who presented to the ED from January 1 to December 31, 2023 were included in the analysis. Inclusion criteria were any ED patient encounter that met the definition of a BH visit, determined based on the presence of any one of 3 variables: a psychiatric or substance use disorder diagnosis associated with the visit (Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) [<xref ref-type="bibr" rid="ref24">24</xref>-<xref ref-type="bibr" rid="ref26">26</xref>], BH consultation, or a status change to BH boarder. Multiple encounters meeting the inclusion criteria from the same patient were each included as independent observations. There were no specific exclusion criteria.</p>
      </sec>
      <sec>
        <title>Variables</title>
        <p>Patient-specific event variables included in the timeline-based cluster analysis were laboratory orders (L), clinical notes (N), medication administration (M), imaging orders (I), specialty consultation (C), admissions (A), electrocardiograms (E), other patient care events (ie, nursing interventions; O), procedures (P), and disposition (D). Admissions (A) indicated an admission order to any hospital service or to hospital observation, whereas disposition (D) indicated an order for placement in ED observation or transfer. Categorization and determination of relevance of variables were performed by 2 independent reviewers (EB and LW). To avoid bias, any discrepancies were reconciled by discussion and mutual agreement. The initial rate of agreement demonstrated a Cohen κ of 0.896.</p>
        <p>Other baseline patient characteristics evaluated were patient age, sex, disposition, arrival via emergency medical services (EMS), and primary diagnoses, and chief concerns. The primary diagnosis category was based on the primary ED <italic>International Classification of Diseases, Tenth Revision</italic> (<italic>ICD-10</italic>) diagnosis. It was then grouped according to the clinical classifications software Refined for <italic>International Classification of Diseases, Tenth Revision, Clinical Modification</italic> (<italic>ICD-10-CM</italic>) diagnoses from the Agency for Healthcare Research and Quality [<xref ref-type="bibr" rid="ref27">27</xref>]. Chief concerns were categorized based on the World Health Organization International Classification of Primary Care system [<xref ref-type="bibr" rid="ref28">28</xref>]. The primary outcomes evaluated included ED length of stay (LOS), ED BH boarding, violent and any physical restraint use in the ED, any physical restraint use in the hospital, intramuscular antipsychotic medication administration, ED return visits to the same institution or any of the institution’s 18 surrounding community hospitals on the same EHR within 3 and 30 days, and 90-day patient mortality. Prolonged LOS was defined as greater than 8 hours. Eight hours is consistent with definitions of prolonged ED encounters in the Hospital Outpatient Quality Reporting on Emergency Care Access and Timeliness by the Centers for Medicare and Medicaid Services that will begin implementation as the national quality standard in 2027 [<xref ref-type="bibr" rid="ref29">29</xref>]. ED BH boarder status is a status change on the EHR ED track board determined by the ED clinician based on clinical judgment. Both outcomes were analyzed as complementary measures of delays in care delivery. Mortality data were obtained from the study institution’s patient registration data that included any death reported within the institution or from outside sources.</p>
      </sec>
      <sec>
        <title>Data Analysis</title>
        <p>Patient care events were arranged sequentially to create timelines for each ED BH encounter. Events that occurred at the same recorded time were arranged in the order reported by the EHR. Duplicate events recorded at the same time were removed, but multiple events within the same category recorded at the same time were included in the timeline. A modified Damerau-Levenshtein similarity score was calculated for each pair of encounters to determine timelines with similar order and composition of events [<xref ref-type="bibr" rid="ref30">30</xref>]. These similarity scores were then used in a density-based clustering algorithm (ordering points to identify clustering structure [OPTICS]) that identified the predominant clusters of similar BH encounters [<xref ref-type="bibr" rid="ref24">24</xref>,<xref ref-type="bibr" rid="ref25">25</xref>].</p>
        <p>To identify the major timeline clusters among ED BH encounters, a maximum neighborhood radius threshold (ε) of 10 and a minimum of 150 encounters were required to define a cluster, which resulted in 10 timeline clusters being identified. A minimum group size of 150 encounters was used to ensure that the final clusters were robust to potential noise from minor differences in patient care timelines while still allowing for the capture of a variety of meaningful patient phenotypes. This threshold relative to the sample size is consistent with prior similar clustering algorithms using clinical care events [<xref ref-type="bibr" rid="ref26">26</xref>]. Refer to <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> [<xref ref-type="bibr" rid="ref24">24</xref>-<xref ref-type="bibr" rid="ref26">26</xref>] for a full description of the similarity calculations and clustering algorithm.</p>
        <p>The only identified variable with missing data was ED disposition, which is reported in results as a standalone category. Encounters with unknown disposition were excluded from analyses specifically related to disposition but included in analyses elsewhere. For in-hospital outcomes, including antipsychotic medication and physical restraint use, data were based on orders placed in the EHR. Therefore, a lack of an order was assumed to indicate that the corresponding intervention did not occur during the encounter. For patient mortality, a lack of data indicating patient death was assumed to indicate that the patient remained alive. Similarly, a lack of ED encounters within the 3-day and 30-day return time frames was assumed to indicate that the patient did not return to the ED. Our data included patient follow-up beyond 30 days for 96.4% (5364/5566) encounters, supporting the assumption that outcomes through this time frame were being adequately captured.</p>
      </sec>
      <sec>
        <title>Statistical Methods</title>
        <p>Numeric characteristics were summarized with medians and IQRs; categorical characteristics were summarized with frequency counts and percentages. The use of intramuscular antipsychotic medications, orders placed for physical restraints, return ED visits within 3 or 30 days, and mortality within 90 days were also summarized with 95% CIs on the rate of occurrence using Jeffreys binomial intervals.</p>
        <p>Patient LOS was compared between clusters using Poisson generalized estimating equations (GEEs) accounting for repeat encounters from the same patient. Similarly, use of intramuscular antipsychotic medications, physical restraints, ED returns, and patient mortality were compared between clusters using log-binomial GEEs. All models assumed constant within-patient correlation across all repeat encounters, and SEs were determined using the Eicker-Huber-White sandwich estimator. Models were adjusted for patient age, sex, means of arrival, and triage Emergency Severity Index (ESI) acuity. These variables were chosen as core demographics and surrogates for clinical severity that are readily identifiable upon arrival to the ED. Results for LOS were reported as adjusted percent differences with 95% CIs, whereas results for all other outcomes were reported as adjusted risk ratios (RRs) with 95% CIs. CIs were corrected for multiple comparisons using the Hochberg multiplicity step-up procedure [<xref ref-type="bibr" rid="ref31">31</xref>].</p>
        <p>All analyses were conducted using R (version 4.4.1; R Foundation for Statistical Computing), and density-based clustering was performed with the package <italic>dbscan</italic> (version 1.2-0).</p>
      </sec>
      <sec>
        <title>Ethical Considerations</title>
        <p>This study (application number 24-004845) was submitted to the institutional review board (IRB) at Mayo Clinic and was determined to be exempt from the requirement of IRB approval (45 CFR 46.104d, Category/Subcategory 4(iii)). The requirement for informed consent was waived by the IRB. Data were deidentified prior to analysis, and no individually identifiable information was disclosed. Data were stored and handled in accordance with institutional data security protocols to ensure confidentiality throughout the study.</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>Participants</title>
        <p>There were 75,375 ED visits during the study period. Of the 75,375 visits, a total of 5566 (7.4%) BH ED visits from 3864 distinct patients were identified and included in the analysis; 4181 encounters had a psychiatric diagnosis, 3896 visits included a BH consultation, and 1576 encounters involved status change to BH boarding. Overlap existed in these categories—1453 patients had both a BH consultation and BH boarding, 2530 had a BH consultation and psychiatric diagnosis, 1349 had BH boarding status and a psychiatric diagnosis, and 1254 encounters met all 3 inclusion criteria (Figure S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) [<xref ref-type="bibr" rid="ref24">24</xref>-<xref ref-type="bibr" rid="ref26">26</xref>]. In total, 10 distinct patient event timeline clusters were identified, comprising 93.8% (5219/5566) of BH visits. The remaining 6.2% (347/5566) of BH visits were not clustered due to low similarity.</p>
      </sec>
      <sec>
        <title>Descriptive Data</title>
        <p>Clusters were arranged by size, numbered 0 (largest cluster) to 9 (smallest cluster), and were summarized based on event combinations (<xref ref-type="table" rid="table1">Table 1</xref>). Patient demographics were compared across clusters (<xref ref-type="table" rid="table2">Table 2</xref>). The median age was 37 (IQR 23-53) years. Male patients comprised 53.2% (2963/5566) of the study population. Arrival by EMS occurred in 40.2% (2240/5566) of visits, ranging from 25.7% (80/311; cluster 5) to 58% (556/958; cluster 1). The most frequent disposition was discharge (2636/5566, 47.4%), followed by hospital admission (2315/5566, 41.6%).</p>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>Emergency department visit clusters for patients with behavioral health concerns using density-based clustering. A: admissions; C: specialty consultation; E: electrocardiograms; L: laboratory orders; M: medication administration; N: clinical notes.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="120"/>
            <col width="130"/>
            <col width="370"/>
            <col width="380"/>
            <thead>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Visits (n=5566), n (%)</td>
                <td>Clinical description</td>
                <td>Example visits</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Cluster 0</td>
                <td>1193 (21.4)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily laboratories with some clinical notes and medications</p>
                    </list-item>
                    <list-item>
                      <p>Always had a consultation</p>
                    </list-item>
                    <list-item>
                      <p>No electrocardiogram or imaging</p>
                    </list-item>
                  </list>
                </td>
                <td>LLLLLLLNCNMMN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 1</td>
                <td>958 (17.2)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily laboratories</p>
                    </list-item>
                    <list-item>
                      <p>Always had ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>High admission rate</p>
                    </list-item>
                    <list-item>
                      <p>No consultations</p>
                    </list-item>
                  </list>
                </td>
                <td>NELLLLLLMLAM</td>
              </tr>
              <tr valign="top">
                <td>Cluster 2</td>
                <td>926 (16.6)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily laboratories</p>
                    </list-item>
                    <list-item>
                      <p>Always had ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>Always had a consultation</p>
                    </list-item>
                  </list>
                </td>
                <td>NELLLLLLLLLNMNCCLAANN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 3</td>
                <td>598 (10.7)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily laboratories</p>
                    </list-item>
                    <list-item>
                      <p>Always had ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>No consultations or admissions</p>
                    </list-item>
                  </list>
                </td>
                <td>NELLLLLLELLLLLLLLN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 4</td>
                <td>316 (5.7)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Only clinical notes</p>
                    </list-item>
                  </list>
                </td>
                <td>NNNNN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 5</td>
                <td>311 (5.6)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily clinical notes</p>
                    </list-item>
                    <list-item>
                      <p>Always had a consultation</p>
                    </list-item>
                  </list>
                </td>
                <td>NCNNNN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 6</td>
                <td>273 (4.9)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Combination of clinical notes and laboratories</p>
                    </list-item>
                    <list-item>
                      <p>No ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>No consultations</p>
                    </list-item>
                    <list-item>
                      <p>No admissions</p>
                    </list-item>
                  </list>
                </td>
                <td>NLLLLLLLLNN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 7</td>
                <td>264 (4.7)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily clinical notes</p>
                    </list-item>
                    <list-item>
                      <p>Always had a consultation</p>
                    </list-item>
                    <list-item>
                      <p>No ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>Most patients were admitted</p>
                    </list-item>
                  </list>
                </td>
                <td>NCNCAN</td>
              </tr>
              <tr valign="top">
                <td>Cluster 8</td>
                <td>208 (3.7)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Combination of clinical notes and laboratories</p>
                    </list-item>
                    <list-item>
                      <p>High admission rate</p>
                    </list-item>
                    <list-item>
                      <p>No ECG or imaging</p>
                    </list-item>
                    <list-item>
                      <p>No consultations</p>
                    </list-item>
                  </list>
                </td>
                <td>NLLLLLLLNLLLLNNA</td>
              </tr>
              <tr valign="top">
                <td>Cluster 9</td>
                <td>172 (3.1)</td>
                <td>
                  <list list-type="bullet">
                    <list-item>
                      <p>Primarily clinical notes with infrequent laboratories and medications</p>
                    </list-item>
                    <list-item>
                      <p>No admissions</p>
                    </list-item>
                  </list>
                </td>
                <td>NLNNNMNN</td>
              </tr>
              <tr valign="top">
                <td>Not clustered</td>
                <td>347 (6.2)</td>
                <td>—<sup>a</sup></td>
                <td>—</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table1fn1">
              <p><sup>a</sup>Not applicable.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <table-wrap position="float" id="table2">
          <label>Table 2</label>
          <caption>
            <p>Patient characteristics and outcomes among emergency department behavioral health clusters.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="30"/>
            <col width="110"/>
            <col width="0"/>
            <col width="90"/>
            <col width="0"/>
            <col width="90"/>
            <col width="0"/>
            <col width="80"/>
            <col width="0"/>
            <col width="70"/>
            <col width="0"/>
            <col width="80"/>
            <col width="0"/>
            <col width="70"/>
            <col width="0"/>
            <col width="80"/>
            <col width="0"/>
            <col width="70"/>
            <col width="0"/>
            <col width="80"/>
            <col width="0"/>
            <col width="70"/>
            <col width="0"/>
            <col width="80"/>
            <thead>
              <tr valign="top">
                <td colspan="3">
                  <break/>
                </td>
                <td colspan="2">Overall (N=5566 visits)</td>
                <td colspan="2">Cluster 0 (n=1193 visits)</td>
                <td colspan="2">Cluster 1 (n=958 visits)</td>
                <td colspan="2">Cluster 2 (n=926 visits)</td>
                <td colspan="2">Cluster 3 (n=598 visits)</td>
                <td colspan="2">Cluster 4 (n=316 visits)</td>
                <td colspan="2">Cluster 5 (n=311 visits)</td>
                <td colspan="2">Cluster 6 (n=273 visits)</td>
                <td colspan="2">Cluster 7 (n=264 visits)</td>
                <td colspan="2">Cluster 8 (n=208 visits)</td>
                <td>Cluster 9 (n=172 visits)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td colspan="3">Total patients, n</td>
                <td colspan="2">3864</td>
                <td colspan="2">985</td>
                <td colspan="2">803</td>
                <td colspan="2">840</td>
                <td colspan="2">528</td>
                <td colspan="2">292</td>
                <td colspan="2">289</td>
                <td colspan="2">247</td>
                <td colspan="2">232</td>
                <td colspan="2">197</td>
                <td>155</td>
              </tr>
              <tr valign="top">
                <td colspan="3">Visits by age (y), median (IQR)</td>
                <td colspan="2">37 (23-53)</td>
                <td colspan="2">35 (24-46)</td>
                <td colspan="2">50 (36-64)</td>
                <td colspan="2">41 (29-60)</td>
                <td colspan="2">38 (29-53)</td>
                <td colspan="2">23 (15-38)</td>
                <td colspan="2">18 (14-31)</td>
                <td colspan="2">36 (25-47)</td>
                <td colspan="2">16 (13-30)</td>
                <td colspan="2">38 (27-44)</td>
                <td>32 (18-49)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">Visits by age &#60;18 y, n (%)</td>
                <td colspan="2">798 (14.3)</td>
                <td colspan="2">104 (8.7)</td>
                <td colspan="2">44 (4.6)</td>
                <td colspan="2">80 (8.6)</td>
                <td colspan="2">27 (4.5)</td>
                <td colspan="2">110 (34.8)</td>
                <td colspan="2">143 (46)</td>
                <td colspan="2">19 (7)</td>
                <td colspan="2">147 (55.7)</td>
                <td colspan="2">17 (8.2)</td>
                <td>22 (12.8)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">Visits by male patients, n (%)</td>
                <td colspan="2">2963 (53.2)</td>
                <td colspan="2">622 (52.1)</td>
                <td colspan="2">543 (56.7)</td>
                <td colspan="2">458 (49.5)</td>
                <td colspan="2">353 (59)</td>
                <td colspan="2">159 (50.3)</td>
                <td colspan="2">160 (51.4)</td>
                <td colspan="2">152 (55.7)</td>
                <td colspan="2">115 (43.6)</td>
                <td colspan="2">120 (57.7)</td>
                <td>107 (62.2)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">EMS<sup>a</sup> arrivals, n (%)</td>
                <td colspan="2">2240 (40.2)</td>
                <td colspan="2">329 (27.6)</td>
                <td colspan="2">556 (58)</td>
                <td colspan="2">431 (46.5)</td>
                <td colspan="2">298 (49.8)</td>
                <td colspan="2">88 (27.8)</td>
                <td colspan="2">80 (25.7)</td>
                <td colspan="2">113 (41.4)</td>
                <td colspan="2">69 (26.1)</td>
                <td colspan="2">79 (38)</td>
                <td>59 (34.3)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">ED<sup>b</sup> behavioral health boarder status, n (%)</td>
                <td colspan="2">1575 (28.3)</td>
                <td colspan="2">900 (75.4)</td>
                <td colspan="2">52 (5.4)</td>
                <td colspan="2">284 (30.7)</td>
                <td colspan="2">31 (5.2)</td>
                <td colspan="2">7 (2.2)</td>
                <td colspan="2">38 (12.2)</td>
                <td colspan="2">34 (12.5)</td>
                <td colspan="2">105 (39.8)</td>
                <td colspan="2">60 (28.8)</td>
                <td>8 (4.7)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">Intramuscular antipsychotic medication used, n (%)</td>
                <td colspan="2">259 (4.7)</td>
                <td colspan="2">127 (10.6)</td>
                <td colspan="2">24 (2.5)</td>
                <td colspan="2">44 (4.8)</td>
                <td colspan="2">25 (4.2)</td>
                <td colspan="2">1 (0.3)</td>
                <td colspan="2">1 (0.3)</td>
                <td colspan="2">10 (3.7)</td>
                <td colspan="2">6 (2.3)</td>
                <td colspan="2">12 (5.8)</td>
                <td>2 (1.2)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">Physical restraints sued in the ED, n (%)</td>
                <td colspan="2">212 (3.8)</td>
                <td colspan="2">77 (6.5)</td>
                <td colspan="2">31 (3.2)</td>
                <td colspan="2">44 (4.8)</td>
                <td colspan="2">21 (3.5)</td>
                <td colspan="2">2 (0.6)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">10 (3.7)</td>
                <td colspan="2">8 (3)</td>
                <td colspan="2">5 (2.4)</td>
                <td>5 (2.9)</td>
              </tr>
              <tr valign="top">
                <td colspan="24">
                  <bold>ED disposition, n (%)</bold>
                </td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Discharge</td>
                <td colspan="2">2636 (47.4)</td>
                <td colspan="2">405 (33.9)</td>
                <td colspan="2">27 (2.8)</td>
                <td colspan="2">347 (37.5)</td>
                <td colspan="2">571 (95.5)</td>
                <td colspan="2">297 (94)</td>
                <td colspan="2">306 (98.4)</td>
                <td colspan="2">265 (97.1)</td>
                <td colspan="2">58 (22)</td>
                <td colspan="2">39 (18.8)</td>
                <td colspan="2">172 (100)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Admit to hospital</td>
                <td colspan="2">2315 (41.6)</td>
                <td colspan="2">676 (56.7)</td>
                <td colspan="2">664 (69.3)</td>
                <td colspan="2">455 (49.1)</td>
                <td colspan="2">4 (0.7)</td>
                <td colspan="2">4 (1.3)</td>
                <td colspan="2">1 (0.3)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">197 (74.6)</td>
                <td colspan="2">151 (72.6)</td>
                <td colspan="2">0 (0)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Admit to ICU<sup>c</sup> or PCU<sup>d</sup></td>
                <td colspan="2">371 (6.7)</td>
                <td colspan="2">3 (0.3)</td>
                <td colspan="2">262 (27.3)</td>
                <td colspan="2">77 (8.3)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">8 (3.8)</td>
                <td colspan="2">0 (0)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Other disposition</td>
                <td colspan="2">236 (4.2)</td>
                <td colspan="2">105 (8.8)</td>
                <td colspan="2">5 (0.5)</td>
                <td colspan="2">45 (4.9)</td>
                <td colspan="2">22 (3.7)</td>
                <td colspan="2">15 (4.7)</td>
                <td colspan="2">4 (1.3)</td>
                <td colspan="2">7 (2.6)</td>
                <td colspan="2">9 (3.4)</td>
                <td colspan="2">10 (4.8)</td>
                <td colspan="2">0 (0)</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Unknown</td>
                <td colspan="2">8 (0.1)</td>
                <td colspan="2">4 (0.3)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">2 (0.2)</td>
                <td colspan="2">1 (0.2)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">1 (0.4)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
                <td colspan="2">0 (0)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">ED length of stay (h), median (IQR)</td>
                <td colspan="2">6.0 (3.9-12.9)</td>
                <td colspan="2">20.8 (8.2-43.4)</td>
                <td colspan="2">5.2 (3.8-7.1)</td>
                <td colspan="2">7.7 (5.1-15.6)</td>
                <td colspan="2">5.4 (3.9-7.4)</td>
                <td colspan="2">2.8 (1.7-4.1)</td>
                <td colspan="2">4.0 (3.1-5.8)</td>
                <td colspan="2">5.6 (3.8-8.5)</td>
                <td colspan="2">5.6 (4.0-18.1)</td>
                <td colspan="2">5.8 (3.8-12.3)</td>
                <td>3.4 (2.1-4.9)</td>
              </tr>
              <tr valign="top">
                <td colspan="3">ED length of stay ≥8 h, n (%)<break/>  <break/>  </td>
                <td colspan="2">2011 (36.1)</td>
                <td colspan="2">905 (75.9)</td>
                <td colspan="2">151 (15.8)</td>
                <td colspan="2">434 (46.9)</td>
                <td colspan="2">124 (20.7)</td>
                <td colspan="2">11 (3.5)</td>
                <td colspan="2">46 (14.8)</td>
                <td colspan="2">76 (27.8)</td>
                <td colspan="2">105 (39.8)</td>
                <td colspan="2">71 (34.1)</td>
                <td>18 (10.5)</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table2fn1">
              <p><sup>a</sup>EMS: emergency medical services.</p>
            </fn>
            <fn id="table2fn2">
              <p><sup>b</sup>ED: emergency department.</p>
            </fn>
            <fn id="table2fn3">
              <p><sup>c</sup>ICU: intensive care unit.</p>
            </fn>
            <fn id="table2fn4">
              <p><sup>d</sup>PCU: progressive care unit.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
        <p>Clusters demonstrated patterns in chief concerns and primary diagnoses (<xref rid="figure1" ref-type="fig">Figure 1</xref>). Initial ED chief concerns of suicidal ideation and psychological evaluation were highest in cluster 0 (37.5% and 36.3%), cluster 5 (37.6% and 32.8%), and cluster 7 (47.7% and 30.7%), respectively (<xref rid="figure1" ref-type="fig">Figure 1</xref>A). By contrast, nonpsychological chief concerns were highest in cluster 1 (50.7%), cluster 2 (39.7%), and cluster 3 (31.8%). Similar patterns were found in the final primary diagnoses given by the ED clinician for the patient’s visit (<xref rid="figure1" ref-type="fig">Figure 1</xref>B). The highest rates of ED primary diagnoses of suicidal ideation and self-harm were seen in cluster 7 (58.7%), cluster 0 (45.7%), cluster 8 (33.7%), and cluster 5 (33.1%). Other nonpsychological diagnoses were most commonly seen in cluster 1 (34.7%) and cluster 2 (31.6%).</p>
        <fig id="figure1" position="float">
          <label>Figure 1</label>
          <caption>
            <p>Percentage of (A) common chief concerns and (B) primary diagnoses among emergency department patient with behavioral health concerns clusters.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e93188_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Outcome Data</title>
        <p>Clusters represented unique combinations of visit complexity and clinical outcomes (<xref ref-type="table" rid="table2">Table 2</xref> and <xref rid="figure2" ref-type="fig">Figure 2</xref>). ED LOS was further compared among clusters (<xref rid="figure3" ref-type="fig">Figure 3</xref>). The overall median ED LOS was 6.0 hours, ranging from 2.8 hours (cluster 4) to 20.8 hours (cluster 0). These trends correlated with the proportion of patients under BH ED boarder status, which was lowest in cluster 4 (7/316, 2.2%) and highest in cluster 0 (900/1193, 75.4%). Administration of intramuscular antipsychotic medication occurred in 4.7% (259/5566) of visits, from 0.3% (1/316, cluster 4; 1/311, cluster 5) to 10.6% (127/1193, cluster 0). The use of physical restraints occurred in 6.9% (384/5566) of visits, with 3.8% (212/5566) occurring in the ED. Use was lowest in cluster 5 (n=0). While the incidence of any physical restraint use was highest in cluster 1 (111/958, 11.6%), physical restraint use in the ED specifically was highest in cluster 0 (77/1193, 6.5%). This corresponds with the distinction in the use of physical restraints for violent behavior, which comprised a larger proportion in cluster 0 (103/1193, 8.6% total and 100/1193, 8.4% violent) compared with cluster 1 (111/958 11.6% total and 63/958, 6.6% violent). The overall rates of ED returns within 3 days and 30 days were 5.8% (324/5566) and 25.8% (1435/5566), respectively. Mortality within 90 days averaged 2.4% (136/5566), reaching 6.7% (64/958) in cluster 1, with no deaths in clusters 5, 6, and 7.</p>
        <fig id="figure2" position="float">
          <label>Figure 2</label>
          <caption>
            <p>Percentage of patient outcomes and characteristics across emergency department patient with behavioral health concerns clusters. BH: behavioral health; ED: emergency department; ICU: intensive care unit.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e93188_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
        <fig id="figure3" position="float">
          <label>Figure 3</label>
          <caption>
            <p>Comparison of patient length of stay (hours) across emergency department patient with behavioral health concerns clusters. ED: emergency department.</p>
          </caption>
          <graphic xlink:href="medinform_v14i1e93188_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
        </fig>
      </sec>
      <sec>
        <title>Main Results</title>
        <p>Clinical outcomes were compared among clusters using percent differences and RRs with 95% CIs (<xref ref-type="table" rid="table3">Table 3</xref>). Cluster 0 served as the reference due to comprising the largest cluster size. Cluster 0 demonstrated a longer LOS compared with all other clusters, with percent differences ranging from –91.3% (95% CI –93.0% to –89.1%) in cluster 4 to –44.9% (95% CI –64.3% to –14.9%) in cluster 7. Use of intramuscular antipsychotics was also higher in cluster 0 compared with all other clusters except cluster 8 (RR 0.54, 95% CI 0.29-1.02), with the lowest observed RRs of 0.03 (95% CI 0.00-0.24) in cluster 4 and 0.03 (95% CI 0.00-0.25) in cluster 5. Use of physical restraints demonstrated a lower RR in cluster 3 at 0.45 (95% CI 0.28-0.71), cluster 4 at 0.11 (95% CI 0.04-0.35), cluster 6 at 0.42 (95% CI 0.21-0.84), and cluster 9 at 0.34 (95% CI 0.14-0.81), and it was higher in cluster 1 at 1.34 (95% CI 1.02-1.76). The 3-day ED return RR was lower in cluster 1 at 0.57 (95% CI 0.34-0.96) and higher in cluster 3 at 2.24 (95% CI 1.51-3.32), cluster 4 at 2.42 (95% CI 1.52-3.85), cluster 5 at 1.90 (95% CI 1.14-3.17), and cluster 6 at 2.69 (95% CI 1.71-4.23). Cluster 1 had a higher risk of 90-day mortality (RR 3.81, 95% CI 1.79-8.12).</p>
        <table-wrap position="float" id="table3">
          <label>Table 3</label>
          <caption>
            <p>Comparison of clinical outcomes by percent differences (PDs) and risk ratios (RRs) among clusters of emergency department (ED) patients with behavioral health concern<sup>a</sup>.</p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="80"/>
            <col width="70"/>
            <col width="100"/>
            <col width="100"/>
            <col width="90"/>
            <col width="100"/>
            <col width="90"/>
            <col width="90"/>
            <col width="90"/>
            <col width="100"/>
            <col width="90"/>
            <thead>
              <tr valign="top">
                <td>Patient cluster</td>
                <td colspan="2">Length of stay</td>
                <td colspan="2">Intramuscular antipsychotic medication use</td>
                <td colspan="2">Physical restraint use</td>
                <td colspan="2">3-day ED return</td>
                <td colspan="2">90-day mortality</td>
              </tr>
              <tr valign="top">
                <td>
                  <break/>
                </td>
                <td>Median (IQR)</td>
                <td>PD (95% CI)</td>
                <td>Percentage (95% CI)</td>
                <td>RR (95% CI)</td>
                <td>Percentage (95% CI)</td>
                <td>RR (95% CI)</td>
                <td>Percentage (95% CI)</td>
                <td>RR (95% CI)</td>
                <td>Percentage (95% CI)</td>
                <td>RR (95% CI)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Cluster 0 (n=1193)</td>
                <td>20.8 (8.2-43.4)</td>
                <td>Reference</td>
                <td>10.6 (9.0 to 12.5)</td>
                <td>Reference</td>
                <td>8.6 (7.1 to 10.3)</td>
                <td>Reference</td>
                <td>4.2 (3.2 to 5.4)</td>
                <td>Reference</td>
                <td>0.8 (0.4 to 1.4)</td>
                <td>Reference</td>
              </tr>
              <tr valign="top">
                <td>Cluster 1 (n=958)</td>
                <td>5.2 (3.8-7.1)</td>
                <td>–80.4 (–83.0 to –77.4)</td>
                <td>2.5 (1.7 to 3.6)</td>
                <td>0.24 (0.15 to 0.38)</td>
                <td>11.6 (9.7 to 13.7)</td>
                <td>1.34 (1.02 to 1.76)</td>
                <td>2.7 (1.8 to 3.9)</td>
                <td>0.57 (0.34 to 0.96)</td>
                <td>6.7 (5.3 to 8.5)</td>
                <td>3.81 (1.79 to 8.12)</td>
              </tr>
              <tr valign="top">
                <td>Cluster 2 (n=926)</td>
                <td>7.7 (5.1 to 15.6)</td>
                <td>–49.2 (–58.5 to –37.8)</td>
                <td>4.8 (3.5 to 6.3)</td>
                <td>0.45 (0.32 to 0.64)</td>
                <td>9.0 (7.3 to 10.9)</td>
                <td>1.04 (0.79 to 1.37)</td>
                <td>5.3 (4.0 to 6.9)</td>
                <td>1.16 (0.77 to 1.75)</td>
                <td>3.2 (2.3 to 4.7)</td>
                <td>2.09 (0.93 to 4.71)</td>
              </tr>
              <tr valign="top">
                <td>Cluster 3 (n=598)</td>
                <td>5.4 (3.9 to 7.4)</td>
                <td>–78.0 (–81.9 to –73.2)</td>
                <td>4.2 (2.8 to 6.0)</td>
                <td>0.39 (0.25 to 0.61)</td>
                <td>3.8 (2.5 to 5.6)</td>
                <td>0.45 (0.28 to 0.71)</td>
                <td>10.5 (8.3 to 13.2)</td>
                <td>2.24 (1.51 to 3.32)</td>
                <td>1.8 (1.0 to 3.2)</td>
                <td>1.69 (0.67 to 4.42)</td>
              </tr>
              <tr valign="top">
                <td>Cluster 4 (n=316)</td>
                <td>2.8 (1.7 to 4.1)</td>
                <td>–91.3 (–93.0 to –89.1)</td>
                <td>0.3 (0.0 to 1.5)</td>
                <td>0.03 (0.00 to 0.24)</td>
                <td>0.9 (0.3 to 2.5)</td>
                <td>0.11 (0.04 to 0.35)</td>
                <td>10.4 (7.4 to 14.2)</td>
                <td>2.42 (1.52 to 3.85)</td>
                <td>0.6 (0.1 to 2.0)</td>
                <td>1.29 (0.27 to 6.23)</td>
              </tr>
              <tr valign="top">
                <td>Cluster 5 (n=311)</td>
                <td>4.0 (3.1 to 5.8)</td>
                <td>–81.6 (–86.9 to –74.1)</td>
                <td>0.3 (0.0 to 1.5)</td>
                <td>0.03 (0.00 to 0.25)</td>
                <td>0.0 (0.0 to 0.8)</td>
                <td>—<sup>b</sup></td>
                <td>7.7 (5.1 to 11.1)</td>
                <td>1.90 (1.14 to 3.17)</td>
                <td>0.0 (0.0 to 0.8)</td>
                <td>—</td>
              </tr>
              <tr valign="top">
                <td>Cluster 6 (n=273)</td>
                <td>5.6 (3.8 to 8.5)</td>
                <td>–72.6 (–78.6 to –65.0)</td>
                <td>3.7 (1.9 to 6.4)</td>
                <td>0.34 (0.17 to 0.67)</td>
                <td>3.7 (1.9 to 6.4)</td>
                <td>0.42 (0.21 to 0.84)</td>
                <td>12.1 (8.6 to 16.3)</td>
                <td>2.69 (1.71 to 4.23)</td>
                <td>0.0 (0.0 to 0.9)</td>
                <td>—</td>
              </tr>
              <tr valign="top">
                <td>Cluster 7 (n=264)</td>
                <td>5.6 (4.0 to 18.1)</td>
                <td>–44.9 (–64.3 to –14.9)</td>
                <td>2.3 (1.0 to 4.6)</td>
                <td>0.21 (0.09 to 0.48)</td>
                <td>5.3 (3.1 to 8.5)</td>
                <td>0.61 (0.34 to 1.08)</td>
                <td>1.5 (0.5 to 3.6)</td>
                <td>0.38 (0.13 to 1.11)</td>
                <td>0.0 (0.0 to 0.9)</td>
                <td>—</td>
              </tr>
              <tr valign="top">
                <td>Cluster 8 (n=208)</td>
                <td>5.8 (3.8 to 12.3)</td>
                <td>–67.4 (–72.5 to –61.4)</td>
                <td>5.8 (3.2 to 9.6)</td>
                <td>0.54 (0.29 to 1.02)</td>
                <td>4.8 (2.5 to 8.4)</td>
                <td>0.56 (0.29 to 1.09)</td>
                <td>4.8 (2.5 to 8.4)</td>
                <td>1.41 (0.72 to 2.76)</td>
                <td>1.9 (0.7 to 4.5)</td>
                <td>2.08 (0.60 to 7.22)</td>
              </tr>
              <tr valign="top">
                <td>Cluster 9 (n=172)</td>
                <td>3.4 (2.1 to 4.9)</td>
                <td>–89.1 (–91.7 to –85.7)</td>
                <td>1.2 (0.2 to 3.7)</td>
                <td>0.11 (0.03 to 0.46)</td>
                <td>2.9 (1.1 to 6.3)</td>
                <td>0.34 (0.14 to 0.81)</td>
                <td>6.4 (3.4 to 10.8)</td>
                <td>1.36 (0.79 to 2.33)</td>
                <td>1.7 (0.5 to 4.6)</td>
                <td>2.49 (0.61 to 10.16)</td>
              </tr>
            </tbody>
          </table>
          <table-wrap-foot>
            <fn id="table3fn1">
              <p><sup>a</sup>PDs and RRs were adjusted for patient age, sex, means of arrival, and triage Emergency Severity Index acuity. CIs were corrected for multiple comparisons using the Hochberg multiplicity step-up procedure.</p>
            </fn>
            <fn id="table3fn2">
              <p><sup>b</sup>Not applicable.</p>
            </fn>
          </table-wrap-foot>
        </table-wrap>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>This study identified 10 clusters using a modified Damerau-Levenshtein edit distance as a method to differentiate emergency patients presenting with BH concerns. To our knowledge, this study is novel in its application of time-based clustering algorithms to evaluate ED BH datasets. Clustering techniques have been used in multiple ways, including patient risk stratification [<xref ref-type="bibr" rid="ref32">32</xref>]. Application of these techniques can contribute to advances in personalized medicine and facilitate improved understanding of patients.</p>
        <p>Despite numerous approaches to clustering, few incorporate a chronological course as part of the methodology [<xref ref-type="bibr" rid="ref33">33</xref>,<xref ref-type="bibr" rid="ref34">34</xref>]. The ED is a setting where clinical events are typically condensed into a short time frame, without long periods between activities. Incorporation of chronology into acute patient phenotype identification represents a novel approach. Longer timelines have been evaluated as tools to quickly synthesize patient characteristics for care teams and to predict patient mortality [<xref ref-type="bibr" rid="ref35">35</xref>-<xref ref-type="bibr" rid="ref37">37</xref>]. Large language models have been used to create patient timelines using unstructured notes to improve care for patients receiving cancer-directed therapies and patients with rare diseases [<xref ref-type="bibr" rid="ref38">38</xref>,<xref ref-type="bibr" rid="ref39">39</xref>]. Our analysis shifts the use of timelines from a tool used to inform care of a specific patient to one that sorts patients into similar groups that may benefit from directed interventions based on their cluster.</p>
        <p>There are clear patient phenotypes that emerge through this analysis from a clinical standpoint. Cluster characteristics are summarized below.</p>
        <p>Cluster 0 (1193/5566, 21.4%) was notable for high rates of suicidal ideation and psychotic disorders requiring psychiatric consultation. The majority experienced prolonged ED LOS and ED BH boarding. This cluster had the highest rates of intramuscular antipsychotic medication use, ED physical restraint use. and violent restraint use. These findings indicate a phenotype with prolonged ED encounters with complex psychiatric needs and violent events. However, it experienced relatively low rates of ED return and mortality.</p>
        <p>Cluster 1 (958/5566, 17.2%) represented the oldest patients, with frequent EMS arrivals, high intensive care unit admission rates, and the highest 90-day mortality rate. More than half had a nonpsychological chief concern. None received ED psychiatric consultation, consistent with medically ill patients with psychiatric comorbidities. This cluster demonstrated the highest rate of total restraint use (including nonviolent restraints), but not the highest rate of violent restraint use.</p>
        <p>Cluster 2 (926/5566, 16.6%) always received psychiatric consultation with relatively high rates of ED LOS over 8 hours, hospital admission, and ED return within 30 days. It demonstrated a relatively high rate of nonpsychological diagnoses and average rate of suicidal ideation.</p>
        <p>Cluster 3 (598/5566, 10.7%) had high EMS arrival and ED return rates, but none required psychiatric consultation or admission. A relatively high percentage presented with alcohol intoxication, indicating an important comorbidity. The majority were discharged from the ED.</p>
        <p>Cluster 4 (316/5566 5.7%) was a relatively young population that typically presented for suicidal ideation, psychological evaluation, or alcohol use. None had psychiatry consultation. This cluster had relatively short LOS and had very low rates of physical restraints and intramuscular medications. The majority were discharged and demonstrated relatively high ED return rates.</p>
        <p>Cluster 5 (311/5566, 5.6%) was a relatively young population that typically presented for suicidal ideation or psychological evaluation. All received psychiatric consultation. This cluster had very low rates of intramuscular medication administration, and physical restraints were never used during their visit. It had a relatively short median LOS but did have a notable proportion with prolonged LOS and ED BH boarding. Most patients were discharged.</p>
        <p>Cluster 6 (273/5566, 4.9%) demonstrated a relatively high rate of alcohol use as a chief concern. None had imaging, consultations, or admissions. A relatively high proportion had ED LOS over 8 hours. Most patients were discharged. It represented the highest ED return rate within 3 days, but there was zero mortality.</p>
        <p>Cluster 7 (264/5566, 4.7%) represented the youngest cluster and often presented with suicidal ideation or a psychological chief concern. There was a relatively high rate of ED LOS over 8 hours and ED BH boarding. All patients received psychiatric consultation, and the majority were admitted to the hospital. It had the lowest ED return rates and zero mortality.</p>
        <p>Cluster 8 (208/5566, 3.7%) involved a mixture of chief concerns. There was a relatively high admission rate with no imaging or consultations. It demonstrated relatively high rates of ED LOS over 8 hours and ED BH boarding. It had low mortality rates.</p>
        <p>Cluster 9 (172/5566, 3.1%) had minimal interventions, relatively short LOS, and the highest ED return rate within 30 days. All patients in this cluster were discharged from the ED. A relatively high proportion were male.</p>
        <p>Most patients are represented in clusters 0 to 3. These clusters represent high use of resources, including prolonged ED LOS (cluster 0), EMS use (clusters 1 and 3), increased hospitalization (cluster 1), and frequent diagnostic testing and consultations (clusters 0 and 2). Our analysis demonstrates a method of differentiating these important populations, which has applicability for future study designs focused on ED BH resource utilization.</p>
        <p>Our clustering approach also allowed for a more granular characterization of patient phenotypes compared with direct stratification of events identified in conventional patient timelines. In most cases, separate clusters that were defined by similar ED utilization had notably different outcomes, even when presenting chief concerns were similar. For instance, clusters 0, 5, and 7 were distinctly characterized as patient encounters with consultation and no imaging orders. These clusters had the highest rates of suicidal ideation (37.5%, 37.6%, and 47.6%) and lowest rates of nonpsychological concerns (7%, 7.1%, and 4.5%). However, these groups differed substantially across patient outcomes and characteristics, with large differences in physical restraint use (8.6%, 0%, and 5.3%), intramuscular antipsychotic medication administration (10.6%, 0.3%, and 2.3%), LOS exceeding 8 hours (75.9%, 14.8%, and 39.8%), ED discharge (33.9%, 98.4%, and 22%), and 3-day ED returns (4.2%, 7.7%, and 1.5%). The ability to isolate these subsets by clinically important outcomes is a powerful tool. For instance, differentiating subsets with prolonged LOS can help identify gaps in efficient care delivery. Likewise, identifying patient phenotypes with high rates of intramuscular antipsychotic medication administration could help improve patient and staff safety, as evidence suggests negative outcomes associated with this intervention, including prolonged LOS, increased use of physical restraints, and the need for supplemental oxygen [<xref ref-type="bibr" rid="ref40">40</xref>].</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>While there is value in the application of a novel clustering algorithm on clinical data, the novelty itself carries limitations. For instance, methods for choosing minimum group size for density-based clusters vary, and changing the threshold would affect the number of clusters identified and potentially alter the resulting cluster characteristics. While this study’s group size is consistent with similar prior clustering algorithms [<xref ref-type="bibr" rid="ref26">26</xref>], validation of this clustering algorithm on external data is needed to support the robustness of our identified phenotypes. Further studies are also needed to focus on the translation of algorithm use into measurable clinical action. Additional use cases will provide further information on algorithm reliability and its potential impact on clinical practice. However, we believe that the novelty of chronological assessment in the acute care setting has valuable potential. Limitations also include those inherent in the use of EHR data and its limited ability to reflect qualitative factors in the clinical course that may impact patient care. This study did not incorporate unstructured data from notes to reflect any qualitative events, only discrete events where a definite action occurred.</p>
        <p>The use of a clustering algorithm for identifying patient phenotypes has potential use in evaluating clinically relevant outcomes for a population of interest and identifying areas for health care delivery improvement. However, any future application of this clustering algorithm would require assessment for appropriateness in each clinical scenario, particularly as it applies to different patient populations and clinical environments, as this method has not yet been externally validated. The findings at our single institution with our specific patient population indicate that this model can provide meaningful clinical insight.</p>
      </sec>
      <sec>
        <title>Conclusions</title>
        <p>The use of clustering based on patient event timelines can identify clinically relevant patient phenotypes. Extrapolating the patient phenotypes and their clinical course has the potential to affect care for patients with BH emergencies, as well as guide further interventions to decrease unnecessary resource utilization, avoid recidivism, and improve outcomes.</p>
        <p>Future areas for development include translation of this clustering algorithm into clinical action, including the potential for early identification of patients with phenotype characteristics associated with adverse outcomes such as those evaluated in this study. The application of more personalized clinical management approaches can help support staff in their care delivery for patients presenting with BH concerns to the ED.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group>
      <supplementary-material id="app1">
        <label>Multimedia Appendix 1</label>
        <p>Supplemental methods.</p>
        <media xlink:href="medinform_v14i1e93188_app1.docx" xlink:title="DOCX File , 123 KB"/>
      </supplementary-material>
    </app-group>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">BH</term>
          <def>
            <p>behavioral health</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">ED</term>
          <def>
            <p>emergency department</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">EHR</term>
          <def>
            <p>electronic health record</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb4">EMS</term>
          <def>
            <p>emergency medical services</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb5">ESI</term>
          <def>
            <p>Emergency Severity Index</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb6">GEE</term>
          <def>
            <p>generalized estimating equation</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb7">ICD-10</term>
          <def>
            <p>International Classification of Diseases, Tenth Revision</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb8">ICD-10-CM</term>
          <def>
            <p>International Classification of Diseases, Tenth Revision, Clinical Modification</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb9">IRB</term>
          <def>
            <p>institutional review board</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb10">LOS</term>
          <def>
            <p>length of stay</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb11">OPTICS</term>
          <def>
            <p>ordering points to identify clustering structure</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb12">RR</term>
          <def>
            <p>risk ratio</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <ack>
      <p>The authors would like to acknowledge Katie Bobroske for her inspiration in idea generation for the methodology used.</p>
    </ack>
    <notes>
      <title>Data Availability</title>
      <p>The datasets generated or analyzed during this study are available from the corresponding author on reasonable request.</p>
    </notes>
    <notes>
      <title>Funding</title>
      <p>The authors declared that no financial support was received for this work.</p>
    </notes>
    <fn-group>
      <fn fn-type="con">
        <p>Conceptualization: EB, AM, KK, LW</p>
        <p>Data curation: LW</p>
        <p>Formal analysis: EB, AM, SH, LW</p>
        <p>Investigation: EB, LW</p>
        <p>Methodology: EB, AM, KK, LW</p>
        <p>Project administration: EB, LW</p>
        <p>Writing – original draft: EB, AM, SH, KK, LW</p>
        <p>Writing – review &#38; editing: EB, AM, SH, KK, LW</p>
      </fn>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <notes>
      <sec>
        <title>Generative AI Use</title>
        <p>The AI tool ChatGPT was used to identify references during the literature review process. These references were then thoroughly reviewed for credibility and suitability by the authors prior to their use as citations. It was also used for generating ideas for formatting the results prior to writing. The authors attest that generative AI technology did not generate the text, figures, or other content of this 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>Halmer</surname>
              <given-names>TC</given-names>
            </name>
            <name name-style="western">
              <surname>Beall</surname>
              <given-names>RC</given-names>
            </name>
            <name name-style="western">
              <surname>Shah</surname>
              <given-names>AA</given-names>
            </name>
            <name name-style="western">
              <surname>Dark</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>Health policy considerations in treating mental and behavioral health emergencies in the United States</article-title>
          <source>Emerg Med Clin North Am</source>
          <year>2015</year>
          <month>11</month>
          <volume>33</volume>
          <issue>4</issue>
          <fpage>875</fpage>
          <lpage>91</lpage>
          <pub-id pub-id-type="doi">10.1016/j.emc.2015.07.013</pub-id>
          <pub-id pub-id-type="medline">26493530</pub-id>
          <pub-id pub-id-type="pii">S0733-8627(15)00066-8</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>Thomas</surname>
              <given-names>KC</given-names>
            </name>
            <name name-style="western">
              <surname>Ellis</surname>
              <given-names>AR</given-names>
            </name>
            <name name-style="western">
              <surname>Konrad</surname>
              <given-names>TR</given-names>
            </name>
            <name name-style="western">
              <surname>Holzer</surname>
              <given-names>CE</given-names>
            </name>
            <name name-style="western">
              <surname>Morrissey</surname>
              <given-names>JP</given-names>
            </name>
          </person-group>
          <article-title>County-level estimates of mental health professional shortage in the United States</article-title>
          <source>Psychiatr Serv</source>
          <year>2009</year>
          <month>10</month>
          <volume>60</volume>
          <issue>10</issue>
          <fpage>1323</fpage>
          <lpage>8</lpage>
          <pub-id pub-id-type="doi">10.1176/ps.2009.60.10.1323</pub-id>
          <pub-id pub-id-type="medline">19797371</pub-id>
          <pub-id pub-id-type="pii">60/10/1323</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>Lo</surname>
              <given-names>CB</given-names>
            </name>
            <name name-style="western">
              <surname>Bridge</surname>
              <given-names>JA</given-names>
            </name>
            <name name-style="western">
              <surname>Shi</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Ludwig</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Stanley</surname>
              <given-names>RM</given-names>
            </name>
          </person-group>
          <article-title>Children's mental health emergency department visits: 2007-2016</article-title>
          <source>Pediatrics</source>
          <year>2020</year>
          <month>06</month>
          <volume>145</volume>
          <issue>6</issue>
          <fpage>e20191536</fpage>
          <pub-id pub-id-type="doi">10.1542/peds.2019-1536</pub-id>
          <pub-id pub-id-type="medline">32393605</pub-id>
          <pub-id pub-id-type="pii">peds.2019-1536</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>Bommersbach</surname>
              <given-names>TJ</given-names>
            </name>
            <name name-style="western">
              <surname>McKean</surname>
              <given-names>AJ</given-names>
            </name>
            <name name-style="western">
              <surname>Olfson</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Rhee</surname>
              <given-names>TG</given-names>
            </name>
          </person-group>
          <article-title>National trends in mental health-related emergency department visits among youth, 2011-2020</article-title>
          <source>JAMA</source>
          <year>2023</year>
          <month>05</month>
          <day>02</day>
          <volume>329</volume>
          <issue>17</issue>
          <fpage>1469</fpage>
          <lpage>77</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/37129655"/>
          </comment>
          <pub-id pub-id-type="doi">10.1001/jama.2023.4809</pub-id>
          <pub-id pub-id-type="medline">37129655</pub-id>
          <pub-id pub-id-type="pii">2804326</pub-id>
          <pub-id pub-id-type="pmcid">PMC10155071</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="web">
          <article-title>Behavioral health and substance use disorders</article-title>
          <source>Agency for Healthcare Research and Quality</source>
          <year>2024</year>
          <access-date>2026-06-03</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.ahrq.gov/ncepcr/research/behavioral-health/index.html">https://www.ahrq.gov/ncepcr/research/behavioral-health/index.html</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Baillargeon</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Thomas</surname>
              <given-names>CR</given-names>
            </name>
            <name name-style="western">
              <surname>Williams</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Begley</surname>
              <given-names>CE</given-names>
            </name>
            <name name-style="western">
              <surname>Sharma</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Pollock</surname>
              <given-names>BH</given-names>
            </name>
            <name name-style="western">
              <surname>Murray</surname>
              <given-names>OJ</given-names>
            </name>
            <name name-style="western">
              <surname>Pulvino</surname>
              <given-names>JS</given-names>
            </name>
            <name name-style="western">
              <surname>Raimer</surname>
              <given-names>B</given-names>
            </name>
          </person-group>
          <article-title>Medical emergency department utilization patterns among uninsured patients with psychiatric disorders</article-title>
          <source>Psychiatr Serv</source>
          <year>2008</year>
          <month>07</month>
          <volume>59</volume>
          <issue>7</issue>
          <fpage>808</fpage>
          <lpage>11</lpage>
          <pub-id pub-id-type="doi">10.1176/ps.2008.59.7.808</pub-id>
          <pub-id pub-id-type="medline">18587001</pub-id>
          <pub-id pub-id-type="pii">59/7/808</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>Chaput</surname>
              <given-names>YJ</given-names>
            </name>
            <name name-style="western">
              <surname>Lebel</surname>
              <given-names>MJ</given-names>
            </name>
          </person-group>
          <article-title>Demographic and clinical profiles of patients who make multiple visits to psychiatric emergency services</article-title>
          <source>Psychiatr Serv</source>
          <year>2007</year>
          <month>03</month>
          <volume>58</volume>
          <issue>3</issue>
          <fpage>335</fpage>
          <lpage>41</lpage>
          <pub-id pub-id-type="doi">10.1176/ps.2007.58.3.335</pub-id>
          <pub-id pub-id-type="medline">17325106</pub-id>
          <pub-id pub-id-type="pii">58/3/335</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>Curran</surname>
              <given-names>GM</given-names>
            </name>
            <name name-style="western">
              <surname>Sullivan</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Williams</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Han</surname>
              <given-names>X</given-names>
            </name>
            <name name-style="western">
              <surname>Allee</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Kotrla</surname>
              <given-names>KJ</given-names>
            </name>
          </person-group>
          <article-title>The association of psychiatric comorbidity and use of the emergency department among persons with substance use disorders: an observational cohort study</article-title>
          <source>BMC Emerg Med</source>
          <year>2008</year>
          <month>12</month>
          <day>03</day>
          <volume>8</volume>
          <fpage>17</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcemergmed.biomedcentral.com/articles/10.1186/1471-227X-8-17"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/1471-227X-8-17</pub-id>
          <pub-id pub-id-type="medline">19055761</pub-id>
          <pub-id pub-id-type="pii">1471-227X-8-17</pub-id>
          <pub-id pub-id-type="pmcid">PMC2615439</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>Nolan</surname>
              <given-names>JM</given-names>
            </name>
            <name name-style="western">
              <surname>Fee</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Cooper</surname>
              <given-names>BA</given-names>
            </name>
            <name name-style="western">
              <surname>Rankin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Blegen</surname>
              <given-names>MA</given-names>
            </name>
          </person-group>
          <article-title>Psychiatric boarding incidence, duration, and associated factors in United States emergency departments</article-title>
          <source>J Emerg Nurs</source>
          <year>2015</year>
          <month>01</month>
          <volume>41</volume>
          <issue>1</issue>
          <fpage>57</fpage>
          <lpage>64</lpage>
          <pub-id pub-id-type="doi">10.1016/j.jen.2014.05.004</pub-id>
          <pub-id pub-id-type="medline">25034663</pub-id>
          <pub-id pub-id-type="pii">S0099-1767(14)00205-0</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>McEnany</surname>
              <given-names>FB</given-names>
            </name>
            <name name-style="western">
              <surname>Ojugbele</surname>
              <given-names>O</given-names>
            </name>
            <name name-style="western">
              <surname>Doherty</surname>
              <given-names>JR</given-names>
            </name>
            <name name-style="western">
              <surname>McLaren</surname>
              <given-names>JL</given-names>
            </name>
            <name name-style="western">
              <surname>Leyenaar</surname>
              <given-names>JK</given-names>
            </name>
          </person-group>
          <article-title>Pediatric mental health boarding</article-title>
          <source>Pediatrics</source>
          <year>2020</year>
          <month>10</month>
          <volume>146</volume>
          <issue>4</issue>
          <fpage>e20201174</fpage>
          <pub-id pub-id-type="doi">10.1542/peds.2020-1174</pub-id>
          <pub-id pub-id-type="medline">32963020</pub-id>
          <pub-id pub-id-type="pii">peds.2020-1174</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>Ibeziako</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Kaufman</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Scheer</surname>
              <given-names>KN</given-names>
            </name>
            <name name-style="western">
              <surname>Sideridis</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Pediatric mental health presentations and boarding: first year of the COVID-19 pandemic</article-title>
          <source>Hosp Pediatr</source>
          <year>2022</year>
          <month>09</month>
          <day>01</day>
          <volume>12</volume>
          <issue>9</issue>
          <fpage>751</fpage>
          <lpage>60</lpage>
          <pub-id pub-id-type="doi">10.1542/hpeds.2022-006555</pub-id>
          <pub-id pub-id-type="medline">35578918</pub-id>
          <pub-id pub-id-type="pii">188007</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>Hsu</surname>
              <given-names>CC</given-names>
            </name>
            <name name-style="western">
              <surname>Chan</surname>
              <given-names>HY</given-names>
            </name>
          </person-group>
          <article-title>Factors associated with prolonged length of stay in the psychiatric emergency service</article-title>
          <source>PLoS One</source>
          <year>2018</year>
          <month>08</month>
          <day>20</day>
          <volume>13</volume>
          <issue>8</issue>
          <fpage>e0202569</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dx.plos.org/10.1371/journal.pone.0202569"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0202569</pub-id>
          <pub-id pub-id-type="medline">30125316</pub-id>
          <pub-id pub-id-type="pii">PONE-D-18-05538</pub-id>
          <pub-id pub-id-type="pmcid">PMC6101399</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>Major</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Rittenbach</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>MacMaster</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Walia</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>VandenBerg</surname>
              <given-names>SD</given-names>
            </name>
          </person-group>
          <article-title>Exploring the experience of boarded psychiatric patients in adult emergency departments</article-title>
          <source>BMC Psychiatry</source>
          <year>2021</year>
          <month>09</month>
          <day>27</day>
          <volume>21</volume>
          <issue>1</issue>
          <fpage>473</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcpsychiatry.biomedcentral.com/articles/10.1186/s12888-021-03446-1"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s12888-021-03446-1</pub-id>
          <pub-id pub-id-type="medline">34579676</pub-id>
          <pub-id pub-id-type="pii">10.1186/s12888-021-03446-1</pub-id>
          <pub-id pub-id-type="pmcid">PMC8477559</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>Bakhsh</surname>
              <given-names>HT</given-names>
            </name>
            <name name-style="western">
              <surname>Perona</surname>
              <given-names>SJ</given-names>
            </name>
            <name name-style="western">
              <surname>Shields</surname>
              <given-names>WA</given-names>
            </name>
            <name name-style="western">
              <surname>Salek</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Sanders</surname>
              <given-names>AB</given-names>
            </name>
            <name name-style="western">
              <surname>Patanwala</surname>
              <given-names>AE</given-names>
            </name>
          </person-group>
          <article-title>Medication errors in psychiatric patients boarded in the emergency department</article-title>
          <source>Int J Risk Saf Med</source>
          <year>2014</year>
          <volume>26</volume>
          <issue>4</issue>
          <fpage>191</fpage>
          <lpage>8</lpage>
          <pub-id pub-id-type="doi">10.3233/JRS-140634</pub-id>
          <pub-id pub-id-type="medline">25420761</pub-id>
          <pub-id pub-id-type="pii">L88T131J0653P2Q2</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Austin</surname>
              <given-names>EE</given-names>
            </name>
            <name name-style="western">
              <surname>Cheek</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Richardson</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Testa</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Dominello</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Long</surname>
              <given-names>JC</given-names>
            </name>
            <name name-style="western">
              <surname>Carrigan</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Ellis</surname>
              <given-names>LA</given-names>
            </name>
            <name name-style="western">
              <surname>Norman</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Murphy</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Smith</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Gillies</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Clay-Williams</surname>
              <given-names>R</given-names>
            </name>
          </person-group>
          <article-title>Improving emergency department care for adults presenting with mental illness: a systematic review of strategies and their impact on outcomes, experience, and performance</article-title>
          <source>Front Psychiatry</source>
          <year>2024</year>
          <month>02</month>
          <day>29</day>
          <volume>15</volume>
          <fpage>1368129</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/38487586"/>
          </comment>
          <pub-id pub-id-type="doi">10.3389/fpsyt.2024.1368129</pub-id>
          <pub-id pub-id-type="medline">38487586</pub-id>
          <pub-id pub-id-type="pmcid">PMC10937575</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chhabra</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Smith</surname>
              <given-names>DL</given-names>
            </name>
            <name name-style="western">
              <surname>Maloney</surname>
              <given-names>CM</given-names>
            </name>
            <name name-style="western">
              <surname>Archer</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Sharma</surname>
              <given-names>B</given-names>
            </name>
            <name name-style="western">
              <surname>Thompson</surname>
              <given-names>HM</given-names>
            </name>
            <name name-style="western">
              <surname>Afshar</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Karnik</surname>
              <given-names>NS</given-names>
            </name>
          </person-group>
          <article-title>The identification of subphenotypes and associations with health outcomes in patients with opioid-related emergency department encounters using latent class analysis</article-title>
          <source>Int J Environ Res Public Health</source>
          <year>2022</year>
          <month>07</month>
          <day>21</day>
          <volume>19</volume>
          <issue>14</issue>
          <fpage>8882</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=ijerph19148882"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/ijerph19148882</pub-id>
          <pub-id pub-id-type="medline">35886733</pub-id>
          <pub-id pub-id-type="pii">ijerph19148882</pub-id>
          <pub-id pub-id-type="pmcid">PMC9321801</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Fleury</surname>
              <given-names>MJ</given-names>
            </name>
            <name name-style="western">
              <surname>Cao</surname>
              <given-names>Z</given-names>
            </name>
            <name name-style="western">
              <surname>Grenier</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Emergency department use among patients with mental health problems: profiles, correlates, and outcomes</article-title>
          <source>Int J Environ Res Public Health</source>
          <year>2024</year>
          <month>06</month>
          <day>30</day>
          <volume>21</volume>
          <issue>7</issue>
          <fpage>864</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.mdpi.com/resolver?pii=ijerph21070864"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/ijerph21070864</pub-id>
          <pub-id pub-id-type="medline">39063441</pub-id>
          <pub-id pub-id-type="pii">ijerph21070864</pub-id>
          <pub-id pub-id-type="pmcid">PMC11276606</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Taylor</surname>
              <given-names>RA</given-names>
            </name>
            <name name-style="western">
              <surname>Gilson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Schulz</surname>
              <given-names>W</given-names>
            </name>
            <name name-style="western">
              <surname>Lopez</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Young</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Pandya</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Coppi</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Chartash</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Fiellin</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>D'Onofrio</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Computational phenotypes for patients with opioid-related disorders presenting to the emergency department</article-title>
          <source>PLoS One</source>
          <year>2023</year>
          <month>09</month>
          <day>15</day>
          <volume>18</volume>
          <issue>9</issue>
          <fpage>e0291572</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://dx.plos.org/10.1371/journal.pone.0291572"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0291572</pub-id>
          <pub-id pub-id-type="medline">37713393</pub-id>
          <pub-id pub-id-type="pii">PONE-D-23-12712</pub-id>
          <pub-id pub-id-type="pmcid">PMC10503758</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ferreira</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Zacarias</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Malheiros</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Ferreira</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <person-group person-group-type="editor">
            <name name-style="western">
              <surname>Alonso</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Dadam</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Rosemann</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Approaching process mining with sequence clustering: experiments and findings</article-title>
          <source>Business Process Management</source>
          <year>2007</year>
          <publisher-loc>Berlin, Heidelberg</publisher-loc>
          <publisher-name>Springer</publisher-name>
          <fpage>360</fpage>
          <lpage>74</lpage>
        </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>Rebuge</surname>
              <given-names>Á</given-names>
            </name>
            <name name-style="western">
              <surname>Ferreira</surname>
              <given-names>DR</given-names>
            </name>
          </person-group>
          <article-title>Business process analysis in healthcare environments: a methodology based on process mining</article-title>
          <source>Inf Syst</source>
          <year>2012</year>
          <month>04</month>
          <day>01</day>
          <volume>37</volume>
          <issue>2</issue>
          <fpage>99</fpage>
          <lpage>116</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://doi.org/10.1016/j.is.2011.01.003"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.is.2011.01.003</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Najjar</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Reinharz</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Girouard</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Gagné</surname>
              <given-names>C</given-names>
            </name>
          </person-group>
          <article-title>A two-step approach for mining patient treatment pathways in administrative healthcare databases</article-title>
          <source>Artif Intell Med</source>
          <year>2018</year>
          <month>05</month>
          <volume>87</volume>
          <fpage>34</fpage>
          <lpage>48</lpage>
          <pub-id pub-id-type="doi">10.1016/j.artmed.2018.03.004</pub-id>
          <pub-id pub-id-type="medline">29631915</pub-id>
          <pub-id pub-id-type="pii">S0933-3657(16)30485-7</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref22">
        <label>22</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Aspland</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Harper</surname>
              <given-names>PR</given-names>
            </name>
            <name name-style="western">
              <surname>Gartner</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Webb</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Barrett-Lee</surname>
              <given-names>P</given-names>
            </name>
          </person-group>
          <article-title>Modified Needleman-Wunsch algorithm for clinical pathway clustering</article-title>
          <source>J Biomed Inform</source>
          <year>2021</year>
          <month>03</month>
          <volume>115</volume>
          <fpage>103668</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S1532-0464(20)30296-3"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.jbi.2020.103668</pub-id>
          <pub-id pub-id-type="medline">33359110</pub-id>
          <pub-id pub-id-type="pii">S1532-0464(20)30296-3</pub-id>
          <pub-id pub-id-type="pmcid">PMC7973729</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref23">
        <label>23</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Doan</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Halevy</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Ives</surname>
              <given-names>Z</given-names>
            </name>
          </person-group>
          <person-group person-group-type="editor">
            <name name-style="western">
              <surname>Doan</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Halevy</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Ives</surname>
              <given-names>Z</given-names>
            </name>
          </person-group>
          <article-title>Chapter 4 - String matching</article-title>
          <source>Principles of Data Integration</source>
          <year>2012</year>
          <publisher-loc>Waltham, MA</publisher-loc>
          <publisher-name>Morgan Kaufmann</publisher-name>
          <fpage>95</fpage>
          <lpage>119</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref24">
        <label>24</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ester</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Kriegel</surname>
              <given-names>HP</given-names>
            </name>
            <name name-style="western">
              <surname>Sander</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Xu</surname>
              <given-names>X</given-names>
            </name>
          </person-group>
          <article-title>A density-based algorithm for discovering clusters in large spatial databases with noise</article-title>
          <source>KDD'96: Proceedings of the Second International Conference on Knowledge Discovery and Data Mining</source>
          <year>1996</year>
          <month>08</month>
          <day>02</day>
          <publisher-loc>Menlo Park, CA</publisher-loc>
          <publisher-name>AAAI Press</publisher-name>
          <fpage>226</fpage>
          <lpage>31</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref25">
        <label>25</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ankerst</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Breunig</surname>
              <given-names>MM</given-names>
            </name>
            <name name-style="western">
              <surname>Kriegel</surname>
              <given-names>HP</given-names>
            </name>
            <name name-style="western">
              <surname>Sander</surname>
              <given-names>J</given-names>
            </name>
          </person-group>
          <article-title>OPTICS: ordering points to identify the clustering structure</article-title>
          <source>SIGMOD '99: Proceedings of the 1999 ACM SIGMOD International Conference on Management of Data</source>
          <year>1999</year>
          <month>06</month>
          <day>01</day>
          <publisher-loc>New York, NY</publisher-loc>
          <publisher-name>Association for Computing Machinery</publisher-name>
          <fpage>49</fpage>
          <lpage>60</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref26">
        <label>26</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Bobroske</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Larish</surname>
              <given-names>C</given-names>
            </name>
            <name name-style="western">
              <surname>Cattrell</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Bjarnadóttir</surname>
              <given-names>MV</given-names>
            </name>
            <name name-style="western">
              <surname>Huan</surname>
              <given-names>L</given-names>
            </name>
          </person-group>
          <article-title>The bird's-eye view: a data-driven approach to understanding patient journeys from claims data</article-title>
          <source>J Am Med Inform Assoc</source>
          <year>2020</year>
          <month>07</month>
          <day>01</day>
          <volume>27</volume>
          <issue>7</issue>
          <fpage>1037</fpage>
          <lpage>45</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/32521006"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamia/ocaa052</pub-id>
          <pub-id pub-id-type="medline">32521006</pub-id>
          <pub-id pub-id-type="pii">5855725</pub-id>
          <pub-id pub-id-type="pmcid">PMC7647282</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref27">
        <label>27</label>
        <nlm-citation citation-type="web">
          <article-title>Clinical Classifications Software Refined (CCSR) for ICD-10-CM diagnoses</article-title>
          <source>Agency for Healthcare Research and Quality</source>
          <access-date>2026-08-05</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://hcup-us.ahrq.gov/toolssoftware/ccsr/dxccsr.jsp">https://hcup-us.ahrq.gov/toolssoftware/ccsr/dxccsr.jsp</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref28">
        <label>28</label>
        <nlm-citation citation-type="web">
          <article-title>International Classification of Primary Care, 2nd edition (ICPC-2)</article-title>
          <source>World Health Organization</source>
          <access-date>2026-08-05</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.who.int/standards/classifications/other-classifications/international-classification-of-primary-care">https://www.who.int/standards/classifications/other-classifications/international-classification-of-primary-care</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref29">
        <label>29</label>
        <nlm-citation citation-type="web">
          <article-title>Emergency care access and timeliness (HOQR), CMS ID 1244, version 1.2.000</article-title>
          <source>eCQI Resource Center</source>
          <access-date>2026-05-14</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://ecqi.healthit.gov/sites/default/files/ecqm/measures/CMS1244-v1.2.000-QDM.html">https://ecqi.healthit.gov/sites/default/files/ecqm/measures/CMS1244-v1.2.000-QDM.html</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref30">
        <label>30</label>
        <nlm-citation citation-type="book">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Brill</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Moore</surname>
              <given-names>RC</given-names>
            </name>
          </person-group>
          <article-title>An improved error model for noisy channel spelling correction</article-title>
          <source>Proceedings of the 38th Annual Meeting of the Association for Computational Linguistics</source>
          <year>2000</year>
          <month>10</month>
          <publisher-loc>New York, NY</publisher-loc>
          <publisher-name>Association for Computational Linguistics</publisher-name>
          <fpage>286</fpage>
          <lpage>93</lpage>
        </nlm-citation>
      </ref>
      <ref id="ref31">
        <label>31</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Efird</surname>
              <given-names>JT</given-names>
            </name>
            <name name-style="western">
              <surname>Nielsen</surname>
              <given-names>SS</given-names>
            </name>
          </person-group>
          <article-title>A method to compute multiplicity corrected confidence intervals for odds ratios and other relative effect estimates</article-title>
          <source>Int J Environ Res Public Health</source>
          <year>2008</year>
          <month>12</month>
          <volume>5</volume>
          <issue>5</issue>
          <fpage>394</fpage>
          <lpage>8</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/19151434"/>
          </comment>
          <pub-id pub-id-type="doi">10.3390/ijerph5050394</pub-id>
          <pub-id pub-id-type="medline">19151434</pub-id>
          <pub-id pub-id-type="pmcid">PMC3699999</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>Lambert</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Leutenegger</surname>
              <given-names>AL</given-names>
            </name>
            <name name-style="western">
              <surname>Baudot</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Jannot</surname>
              <given-names>AS</given-names>
            </name>
          </person-group>
          <article-title>Improving patient clustering by incorporating structured variable label relationships in similarity measures</article-title>
          <source>BMC Med Res Methodol</source>
          <year>2025</year>
          <month>03</month>
          <day>15</day>
          <volume>25</volume>
          <issue>1</issue>
          <fpage>72</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-025-02459-8"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s12874-025-02459-8</pub-id>
          <pub-id pub-id-type="medline">40089699</pub-id>
          <pub-id pub-id-type="pii">10.1186/s12874-025-02459-8</pub-id>
          <pub-id pub-id-type="pmcid">PMC11910865</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>Aljohani</surname>
              <given-names>A</given-names>
            </name>
          </person-group>
          <article-title>Optimizing patient stratification in healthcare: a comparative analysis of clustering algorithms for EHR data</article-title>
          <source>Int J Comput Intell Syst</source>
          <year>2024</year>
          <month>07</month>
          <day>02</day>
          <volume>17</volume>
          <issue>1</issue>
          <fpage>173</fpage>
          <pub-id pub-id-type="doi">10.1007/s44196-024-00568-8</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref34">
        <label>34</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Nguyen</surname>
              <given-names>HT</given-names>
            </name>
            <name name-style="western">
              <surname>Phan</surname>
              <given-names>TH</given-names>
            </name>
            <name name-style="western">
              <surname>Pham</surname>
              <given-names>LT</given-names>
            </name>
            <name name-style="western">
              <surname>Pham</surname>
              <given-names>NH</given-names>
            </name>
          </person-group>
          <article-title>Clustering-based visualizations for diagnosing diseases on metagenomic data</article-title>
          <source>Signal Image Video Process</source>
          <year>2024</year>
          <month>06</month>
          <day>17</day>
          <volume>18</volume>
          <issue>8-9</issue>
          <fpage>5685</fpage>
          <lpage>99</lpage>
          <pub-id pub-id-type="doi">10.1007/s11760-024-03264-4</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref35">
        <label>35</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Momen</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Kendall</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Barclay</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Murray</surname>
              <given-names>S</given-names>
            </name>
          </person-group>
          <article-title>Using timelines to depict patient journeys: a development for research methods and clinical care review</article-title>
          <source>Prim Health Care Res Dev</source>
          <year>2013</year>
          <month>02</month>
          <day>04</day>
          <volume>14</volume>
          <issue>4</issue>
          <fpage>403</fpage>
          <lpage>8</lpage>
          <pub-id pub-id-type="doi">10.1017/s1463423612000618</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref36">
        <label>36</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Ledesma</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Bidargaddi</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Strobel</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Schrader</surname>
              <given-names>G</given-names>
            </name>
            <name name-style="western">
              <surname>Nieminen</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Korhonen</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Ermes</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Health timeline: an insight-based study of a timeline visualization of clinical data</article-title>
          <source>BMC Med Inform Decis Mak</source>
          <year>2019</year>
          <month>08</month>
          <day>22</day>
          <volume>19</volume>
          <issue>1</issue>
          <fpage>170</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bmcmedinformdecismak.biomedcentral.com/articles/10.1186/s12911-019-0885-x"/>
          </comment>
          <pub-id pub-id-type="doi">10.1186/s12911-019-0885-x</pub-id>
          <pub-id pub-id-type="medline">31438942</pub-id>
          <pub-id pub-id-type="pii">10.1186/s12911-019-0885-x</pub-id>
          <pub-id pub-id-type="pmcid">PMC6704521</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref37">
        <label>37</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Jiang</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Han</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Chakrabarty</surname>
              <given-names>K</given-names>
            </name>
            <name name-style="western">
              <surname>Page</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Stead</surname>
              <given-names>WW</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>AR</given-names>
            </name>
          </person-group>
          <article-title>Timeline registration for electronic health records</article-title>
          <source>AMIA Jt Summits Transl Sci Proc</source>
          <year>2023</year>
          <month>06</month>
          <day>16</day>
          <volume>2023</volume>
          <fpage>291</fpage>
          <lpage>9</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://europepmc.org/abstract/MED/37350882"/>
          </comment>
          <pub-id pub-id-type="medline">37350882</pub-id>
          <pub-id pub-id-type="pii">2036</pub-id>
          <pub-id pub-id-type="pmcid">PMC10283114</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref38">
        <label>38</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Yao</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Goldner</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Hochheiser</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Finan</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Levander</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Harris</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Groen</surname>
              <given-names>PC</given-names>
            </name>
            <name name-style="western">
              <surname>Buchbinder</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>Bitterman</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Warner</surname>
              <given-names>JL</given-names>
            </name>
            <name name-style="western">
              <surname>Savova</surname>
              <given-names>G</given-names>
            </name>
          </person-group>
          <article-title>Systemic anticancer therapy timelines extraction from electronic medical records text: algorithm development and validation</article-title>
          <source>JMIR Bioinform Biotechnol</source>
          <year>2025</year>
          <month>09</month>
          <day>03</day>
          <volume>6</volume>
          <fpage>e67801</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://bioinform.jmir.org/2025//e67801/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/67801</pub-id>
          <pub-id pub-id-type="medline">41342192</pub-id>
          <pub-id pub-id-type="pii">v6i1e67801</pub-id>
          <pub-id pub-id-type="pmcid">PMC12408058</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref39">
        <label>39</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Andrew</surname>
              <given-names>JJ</given-names>
            </name>
            <name name-style="western">
              <surname>Potier</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Garcelon</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Burgun</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Vincent</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Using large language models for temporal relation extraction from pediatric clinical reports</article-title>
          <source>JAMIA Open</source>
          <year>2025</year>
          <month>11</month>
          <day>22</day>
          <volume>8</volume>
          <issue>6</issue>
          <fpage>ooaf121</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://academic.oup.com/jamiaopen/article-lookup/doi/10.1093/jamiaopen/ooaf121"/>
          </comment>
          <pub-id pub-id-type="doi">10.1093/jamiaopen/ooaf121</pub-id>
          <pub-id pub-id-type="medline">41281245</pub-id>
          <pub-id pub-id-type="pii">ooaf121</pub-id>
          <pub-id pub-id-type="pmcid">PMC12640238</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref40">
        <label>40</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lippert</surname>
              <given-names>SC</given-names>
            </name>
            <name name-style="western">
              <surname>Xu</surname>
              <given-names>RH</given-names>
            </name>
            <name name-style="western">
              <surname>Tucker</surname>
              <given-names>LS</given-names>
            </name>
            <name name-style="western">
              <surname>DiLena</surname>
              <given-names>DD</given-names>
            </name>
            <name name-style="western">
              <surname>Rauchwerger</surname>
              <given-names>AS</given-names>
            </name>
            <name name-style="western">
              <surname>Rabbani</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Kene</surname>
              <given-names>MV</given-names>
            </name>
          </person-group>
          <article-title>Patterns of intramuscular chemical sedation use for patients receiving a mental health consultation while in the emergency department</article-title>
          <source>Ann Emerg Med</source>
          <year>2026</year>
          <month>07</month>
          <volume>88</volume>
          <issue>1</issue>
          <fpage>26</fpage>
          <lpage>35</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0196-0644(26)00069-7"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/j.annemergmed.2026.01.021</pub-id>
          <pub-id pub-id-type="medline">41854577</pub-id>
          <pub-id pub-id-type="pii">S0196-0644(26)00069-7</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
