Signa Vitae. 2023; 19(2): 28-38. doi: 10.22514/sv.2022.018
Original Research

Predicting mid-term survival of patients during emergency department triage for resuscitation decision

Jae Yong Yu1,, Hansol Chang1,2,, Weon Jung3, Sejin Heo1,2, Gun Tak Lee2, Jong Eun Park2, Se Uk Lee2, Taerim Kim2, Sung Yeon Hwang2, Hee Yoon2, Tae Gun Shin2, Min Seob Sim2, Ik Joon Jo2, Won Chul Cha1,2,4,*,

1Department of Digital Health, Samsung Advanced Institute for Health Science & Technology (SAIHST), Sungkyunkwan University, 06355 Seoul, Republic of Korea

22Department of Emergency Medicine, Samsung Medical Center, Sungkyunkwan University School of Medicine, 06355 Seoul, Republic of Korea

3Smart Health Lab, Research institute of Future Medicine, Samsung Medical Center, 06351 Seoul, Republic of Korea

4Digital Innovation Center, Samsung Medical Center, 06351 Seoul, Republic of Korea

*Corresponding Author(s):wc.cha@samsung.com (Won Chul Cha)

† These authors contributed equally.

History Submitted: 11 December 2021 | Accepted: 18 January 2022 | Published: 08 March 2023
Copyright:  ©2023  The Author(s). Published by MRE Press.
This is an open access article under the CC BY 4.0 license (https://creativecommons.org/licenses/by/4.0/).

Collapse table of contents

Abstract

In patients with non-small cell lung cancer (NSCLC) visiting the emergency department (ED), clinical decisions must be made based on their disease prognosis. This study aims to predict the disease outcome of patients visiting the ED for the first time after NSCLC diagnosis. This study included patients who visited the ED in 2016–2020 after being diagnosed with NSCLC in study site or within 30 days before the first outpatient clinic visit after diagnosis. Primary outcome of prediction model was 3-month mortality from the initial ED visit. We analyzed the association between outcome and each variable as a risk factor and built a prediction model using these variables. Both oncologic factors and ED-associated factors were associated with the 3-month mortality of NSCLC from the first ED visit. We also visualized the treatment trace as a sequence and utilized it in prediction model building. The areas under the receiver operating curve (AUROCs) of the prediction model of 3-month mortality from the first ED visit ranged from 0.677 (95% Confidence Interval (CI), 0.640–0.708) to 0.729 (95% CI, 0.697–0.761). This study provides the prediction model about 3-month survival in first ED visit point and identified patient and disease-related factors to predict the prognosis of patients.

Keywords:Non-small cell lung cancer;Emergency department;Prognosis;Machine learning
PDF(2.41 MB)|EndNote (RIS)|BibTeX|RefMan|RefWorks

Cite this article

Jae Yong Yu, Hansol Chang, Weon Jung, Sejin Heo, Gun Tak Lee, Jong Eun Park, Se Uk Lee, Taerim Kim, Sung Yeon Hwang, Hee Yoon, Tae Gun Shin, Min Seob Sim, Ik Joon Jo, Won Chul Cha. Predicting mid-term survival of patients during emergency department triage for resuscitation decision. Signa Vitae. 2023; 19(2): 28-38. doi: 10.22514/sv.2022.018

1. Introduction

Among cancer, lung cancer, especially non-small cell lung cancer (NSCLC) is the most common and frequently leads to acute illness [1, 2, 3]. Emergency department (ED) visits by cancer patients are increasing, and lung cancer patients often visit the ED with critical status [4, 5]. More than 10% of lung cancer patients require care in the intensive care unit (ICU), a rate that is increasing annually [2, 6].

Due to its severity and prevalence, studies have analyzed and predicted the survival and prognosis of NSCLC and lung cancer [7, 8]. Some of these studies have focused on terminal-stage cancer [1, 5, 9]; others have focused on biomarkers or genetic characteristics associated with lung cancer prognosis [8, 10]. Finally, studies have also identified risk factors related to worse outcomes and applied deep learning techniques to predict patient survival and disease prognosis [11, 12].

Especially in the ED, clinical decision-making in patients with underlying diseases such as lung cancer must consider their disease prognosis to avoid unnecessary life-sustaining treatment, improve patient quality of life, and reallocate ED resources to patients requiring acute care [5]. Moreover, patients want to make decisions based on their prognosis and avoid useless or painful treatments, while ED clinicians face limited resources, with urgent patients presenting to the ED at every moment and a need to focus on patients who are most critical and expected to benefit most from treatment while also respecting patient wishes [13, 14]. Therefore, rapid decision-making regarding life-sustaining treatments or resuscitation plans in patients with underlying diseases such as lung cancer is based on patient disease status and prognosis when the patient visits the ED.

However, few studies provide the practical information needed in early decision-making, when lung cancer patients are acutely ill and visit the ED. Patients with cancer may experience symptoms caused by the disease or adverse treatment effects, for which they visit the ED [2, 5, 15]. In the ED, patients and clinicians must make prompt decisions about their emergency treatment, which is often painful and does not improve disease prognosis [5, 16]. Making these acute and critical decisions requires information on disease prognosis based on both the patient’s medical history and the present status of the ED to establish a cancer patient treatment plan.

This study analyzed data from patients with lung cancer who visited the ED for the first time after diagnosis to predict disease outcomes and support treatment planning in the ED.

2. Methods

This study was designed and explained followed by transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD) statement and other previous study [17, 18].

2.1 Study Setting and Population

This retrospective study was conducted in the ED of a tertiary hospital located in a metropolitan city. The hospital has approximately 1960 inpatient beds. Approximately 80,000 patients visit the ED annually. This study included patients who visited the ED from 1 January 2016 to 31 December 2020.

The study included patients who visited the ED after a diagnosis of NSCLC in a hospital or who were diagnosed within 30 days before the first outpatient clinic visit after diagnosis. We searched for patients diagnosed using the International Classification of Disease version-10 (ICD-10) code. We excluded patients with small cell lung cancer and those who visited another center 30 days after the diagnosis of lung cancer.

2.2 Selection of Predictors

Patient demographic information, including age and sex, is used to construct prediction models. Systolic blood pressure, diastolic blood pressure, pulse rate, respiratory rate, body temperature at arrival, and oxygen saturation were all recorded during the ED visit. Additionally, the Korean Triage and Acuity Scale (KTAS) was included as an input variable. The KTAS is a five-level triage scale based on the patient’s principal complaint and symptom severity. The AVPU (Alert, response to Verbal stimuli, response to Pain stimuli, Unresponsiveness) scale, which measures mental state in reaction to stimuli, was used as an input variable. The AVPU is a four-level scale system that is divided into four categories: alertness, responsiveness to verbal stimuli, responsiveness to pain stimuli, and unresponsiveness. Finally, the mode of arrival was included in the input variable, which was separated into two categories: patients who arrived via ambulance and those who did not.

Additionally, patient oncologic data were collected on the disease state of NSCLC and the therapy process. This data included the date of NSCLC diagnosis; the stage of NSCLC at diagnosis; the kind and date of operation; the number, date, and location of radiotherapy (RT) treatments received; and the number and dates of chemotherapy regimens administered.

2.3 Data Extraction and Preparation

Patient clinical, ED visit, and oncologic information were extracted from the Clinical Data Warehouse (CDW) DARWIN-C (Data Analytics and Research Window for Integrated Knowledge C) of study site. CDW encrypts and stores electronic medical records, medical test results, and medication information recorded as logs of Data Analytics and Research Window for Integrated Knowledge C of the study site. These records can be extracted through the use of encrypted patient identification.

For the sake of readability and nonlinearity, several continuous variables were turned into categorical variables. The ages of participants were classified as 18–40 years, 40–60 years, 60–80 years, and others. The form of transport used to arrive was classified as public ambulance, private ambulance, or other. The route of entry was established by direct admission, transfer, and other means.

Vital sign information was categorized as normal and abnormal. A systolic blood pressure of 100–150 mmHg, diastolic blood pressure of 60–90 mmHg, pulse rate of 50–100 bpm, respiratory rate of 12–20/min, body temperature of 36–37.5 °C, and O2 saturation of 95–100% were categorized as normal; values outside the normal ranges or not available (NA), were categorized as abnormal [19, 20]. Missing values for vital signs and stage were assigned a value of “NA” (not available), which indicated missingness for some reason such as severe patient condition. Therefore, we categorized NA vital signs as abnormal. As outcome information, we collected discharge information, including discharge to home, ED death, transfer, and admission. We also recorded the place where admission information was collected, including the ICU and general ward (GW).

Preprocessing of NSCLC-related data was performed using their timestamp data. NSCLC diagnosis; NSCLC stage at diagnosis was determined based on their earliest report in the studied site. The type and date of operation, the number, date, and location of radiotherapy (RT) treatments received and the number and dates of chemotherapy regimens delivered were gathered separately each time they were administered.

2.4 Sequences of Oncologic Treatments

We described the sequence of treatment and patterns from the first diagnosis, operation, chemotherapy, radiotherapy, and ED visit or death. The different activity sequences were visualized using the bupaR package in R to explore the most frequent patterns of ED visits among patients with NSCLC. We built a trace of each patients with this sequence. Also, we divided traces into 4 groups refer to hazard ratio.

2.5 Prediction Model

We built the prediction model from a total of 3478 NSCLC patients visiting the ED between 1 January 2016, and 31 December 2020. Electrical medical record data elements, including the outpatient visit history, patient demographic information, ED visit information, and oncological information described above, were used for model development.

We randomly selected 70% of the patients for model development and reserved 30% for model validation. To obtain the best hyperparameters, a random search was performed on 10-fold cross validation. We considered maximum tree depth, minimum numbers of data in a node, number of predictor and learning rate for extreme gradient boost (XGB) and Random Forest (RF), penalty weight for logistic regression (LR) and number of hidden unit and layers for Artificial Neural Network (ANN) to optimize the performance.

We implemented four machine learning (ML) methods for predicting 3-month mortality from ED visit outcomes in the training dataset: LR with L2 penalization, RF, XGB, and deep learning. To obtain the best hyperparameters, a grid search was performed for each classifier. We calculated areas under the receiver operating curve (AUROCs) and areas under the precision-recall curve (AUPRCs) for each model on the validation datasets. To obtain the 95% confidence intervals (CI), we implemented 1000 bootstraps for each metric.

The software implemented for model development and validation were R (version 4.1.0), Python (version 3.8.5, R foundation) and Tensorflow framework (version 2.3.1, Python software foundation)). The following packages were used: xgboost (version 1.4.1.1), randomForest (version 4.6-14), tidymodels (version 0.1.4) in R and scikit-learn (version 0.23.2) in Python.

2.6 Outcomes

Our primary outcome was mortality within 3-months of the initial ED visit, which was the target feature for analysis to build the model. We also evaluated the 1-year, 1-month, and 1-week mortality rates from the initial ED visit as a secondary outcome.

2.7 Local Interpretation of Result

We also tried to introduce the Shapely additive explanation (SHAP) method which is an extension of local interpretable model-agnostic explanations to express reason of prediction result locally, with package “shap”. This package helps to illustrate risk factors which contributes to outcome [21].

2.8 Statistical Analysis

The data are presented as means ± standard deviation (SD) for continuous variables and as frequencies (%) for categorical variables. Comparisons were performed using t-test and chi-square tests at a 5% significance level. The statistical analysis for the hazard ratio of variable to 3-month mortality was performed using multiple-survival cox regression. We selected variables that showed significance in univariate cox regression analysis at a 5% level of significance. The software implemented for model development and validation were R (version 4.1.0), python programming language (version 3.8.5), tensorflow framework (version 2.3.1), and scikit-learn (version 0.23.2).

3. Results

During the 4-year study period from 2016, 15,680 patients were added to the lung cancer registry. Among them, 12,068 patients were diagnosed with NSCLC and 10,709 were first diagnosed at the study center. From this population, 3478 patients visited the ED after the diagnosis and were included in the final analysis (Fig. 1). Among these patients, the 3-month mortality rate was 17.9% (624 patients). Most of patient included in study was over 60 years (62.2% and 66.5%, respectively). The ratios of male patients and abnormal vital signs were higher in the outcome (3-month mortality) group. The KTAS and mental status at the first ED visit also differed between groups. Regarding oncological information, the ratio of patients with stage 4 cancer was higher in the outcome (mortality at 3 months) group. The patient demographic characteristics are summarized in Table 1. The top 16 treatment traces, which comprise 50% of all traces, are shown in Fig. 2.

Flow chart of the population of patients visiting the emergency 
department in 20162020 after a diagnosis of non-small cell lung cancer at study 
site.

Fig. 1.Flow chart of the population of patients visiting the emergency department in 20162020 after a diagnosis of non-small cell lung cancer at study site.

Table 1.Characteristics of the groups of patients who survived and died within 3 months from the first ED visit after a new diagnosis of non-small cell lung cancer.
Patients who survived (n = 2854)Patients who died within 3 months (n = 624)ap-value
Age group (years), n (%)<0.001
18–4060 (2.1%)7 (1.1%)
40–60841 (29.5%)131 (21.0%)
60–80177 (62.2%)415 (66.5%)
80 and over176 (6.2%)71 (11.3%)
Sex, n (%)<0.001
Male1866 (65.4%)477 (76.4%)
Female988 (34.6%)147 (23.6%)
SBP (mmHg)0.009
100–1502115 (74.1%)430 (68.9%)
<out of ref739 (25.9%)194 (31.1%)
DBP (mmHg)0.006
60–902079 (72.8%)420 (67.3%)
<out of ref775 (27.2%)204 (32.7%)
PR (beats/min)<0.001
50–1202196 (76.9%)403 (64.6%)
<out of ref658 (23.1%)221 (35.4%)
RR (breaths/min)<0.001
12–202456 (86.1%)445 (71.3%)
bout of ref398 (13.9%)179 (28.7%)
Temperature (°C)0.086
36–37.5°C2146 (75.2%)448 (71.8%)
bout of ref708 (24.8%)176 (28.2%)
SpO2(%)<0.001
95–1002459 (86.2%)410 (65.7%)
bout of ref395 (13.8%)214 (34.3%)
KTAS, n (%)<0.001
113 (0.5%)20 (3.2%)
2141 (4.9%)77 (12.3%)
31529 (53.6%)368 (59.0%)
41048 (36.7%)149 (23.9%)
5123 (4.3%)10 (1.6%)
Mental status, n (%)<0.001
Alert2824 (98.9%)596 (95.5%)
Response to verbal output14 (0.5%)10 (1.6%)
Response to pain11 (0.4%)9 (1.4%)
Unresponsive5 (0.2%)9 (1.4%)
Mode of arrival, n (%)<0.001
Ambulance203 (7.1%)72 (11.5%)
Other2651 (92.9%)552 (88.5%)
stage, n (%)<0.001
1556 (19.5%)43 (6.9%)
2216 (7.6%)27 (4.3%)
3723 (25.3%)115 (18.4%)
4891 (31.2%)258 (41.3%)
NA468 (16.4%)181 (29.0%)
LOS (days), mean ± SD11.9 ± 13.518.0 ± 18.0<0.001
Discharge, n (%)<0.001
Home1766 (61.9%)217 (34.8%)
ED death0 (0.0%)19 (3.0%)
Transfer70 (2.5%)31 (5.0%)
Admission1018 (35.7%)357 (7.2%)

ap-values are calculated by independent t-tests for continuous variables and chi-square test for categorical variables; bout of ref: outside of the reference range, not available, or not-recorded. Abbreviations: SD—standard deviation; SBP—systolic blood pressure; DBP—diastolic blood pressure; PR—pulse rate; RR—respiratory rate; SpO2—peripheral capillary oxygen saturation; KTAS—Korean Triage Acute Scale; LOS—length of stay; ED—emergency department.

Top 16 treatments administered between first diagnosis and the 
first ER visit, as identified through process mining. FIRST_D—First diagnosis; 
CHEM—Chemotheraphy; FIRST_E—First ER visit; RT—Radiotheraphy; 
OP—operation; DEATH—Death.

Fig. 2.Top 16 treatments administered between first diagnosis and the first ER visit, as identified through process mining. FIRST_D—First diagnosis; CHEM—Chemotheraphy; FIRST_E—First ER visit; RT—Radiotheraphy; OP—operation; DEATH—Death.

Table 2 shows the results of the analysis of risk factor associated with 3-month mortality inferred from cox hazard regression with adjusted univariate and multivariate analyses. Not only oncologic information such as stage and presence of operation, RT, and chemotherapy but also patient demographic information and ED visit-related information, such as vital sign, visit method, mental status, were associated with 3-month mortality (p < 0.001). Stage, especially 4 or unknown was associated with 3-month mortality (hazard ratios (HR): 2.03 and 2.50; 95% CI: 1.38–2.96 and 1.69–3.70). Fig. 3 summarizes the AUROCs according to the prediction method for each outcome with 95% CI. The AUROCs ranged from 0.677 (95% CI, 0.640–0.708) to 0.729 (95% CI, 0.697–0.761) and the AUPRC ranged from 0.339 (95% CI, 0.289–0.392) to 0.401 (95% CI, 0.343–0.462).

Table 3 shows the distribution of triage results for the KTAS and the occurrence probability of ML-based 3-month mortality. The cutoff value for the ML probability was determined according to the quintile of the outcome probability. The results show the relationship between the KTAS and 3-month mortality. The ratio of a high probability of death was the highest (71.43%) in patients with KTAS 1. As the KTAS increased, the ratio of the population with a higher probability of death increased.

Table 4 shows detail patients who were given a Do Not Resuscitate (DNR) order and the outcome of a three-month survival prediction. In addition to the patients who died within three months, 154 patients were projected to die in our model but did not have a DNR order.

Table 2.Factors associated with 3-month mortality outcome inferred from cox hazard regression with adjusted univariate and multivariate analyses.
VariablesnUnivariate AnalysisMultivariate Analysis
HR95% CIp-valueHR95% CIp-value
Age3478<0.001
18–40671(aref)1(aref)
40–609721.340.63–2.861.560.73–3.360.252
60–8021921.950.92–4.122.311.09–4.920.029
80 and over2473.191.47–6.933.361.53–7.40.003
Sex<0.001
Female11351(aref)1(aref)
Male23431.651.37–1.99<0.0011.531.26–1.85
KTAS<0.001
318971(<ref)1(<ref)
1335.653.60–8.862.71.51–4.830.001
22182.181.71–2.791.461.11–1.910.007
411970.610.50–0.730.920.75–1.120.395
51330.350.19–0.670.580.31–1.090.09
Mental status<0.001
Alert34201(<ref)1(<ref)
Response to verbal output243.061.64–5.721.750.9–3.410.1
Response to pain203.51.81–6.761.520.75–3.050.242
Unresponsive148.874.59–17.141.930.84–4.430.122
Visit by ambulance2751.631.28–2.09<0.0011.661.26–2.17<0.001
Direct visit23040.660.56–0.77<0.0010.720.61–0.86<0.001
SBP (mmHg)0.0050.789
100–15025451(aref)1(aref)
bout of ref9331.271.07–1.501.030.85–1.240.789
DBP (mmHg)0.003
60–9024991(aref)1(aref)0.079
bout of ref9791.281.08–1.511.180.98–1.43
PR (beats/min)<0.0010.005
50–12025991(aref)1(aref)
bout of ref8791.771.50–2.081.31.08–1.56
RR (breaths/min)<0.0010.003
12–2029011(aref)1(aref)
bout of ref5772.331.96–2.771.361.11–1.67
Temperature °C0.0490.166
36–37.525941(aref)1(aref)
bout of ref8841.191.00–1.410.880.73–1.06
SpO2 (%)<0.001<0.001
95–10028691(aref)1(aref)
bout of ref6092.92.45–3.421.871.54–2.26
Stage<0.001
15991 (ref)1 (ref)
22431.580.97–2.561.030.63–1.690.911
38381.991.40–2.831.030.68–1.540.896
411493.382.44–4.672.031.38–2.96<0.001
unknown6494.433.18–6.182.51.69–3.7<0.001
OP34780.460.37–0.56<0.0011.551.19–2.040.001
RT34781.241.05–1.46<0.0011.351.10–1.650.005
Chemotherapeutic agent
Carboplatin4621.091.04–1.130.0021.040.98–1.120.209
Cisplatin13591.051.02–1.090.0021.040.99–1.090.162
Docetaxel1241.141.06–1.21<0.0011.040.96–1.140.32
Etoposide431.020.80–1.300.859
Gemcitabine3501.141.08–1.19<0.0010.980.92–1.060.655
Other9511.010.99–1.020.341
Paclitaxel6800.980.94–1.030.526
Pemetrexed6401.031.02–1.05<0.0010.970.90–1.040.319
Vinorelbine2130.930.82–1.060.278

aref—reference; bout of ref—outside of the reference range, not available, or not-recorded; One patient can use more than one chemo agents. Abbreviations: HR—hazard ratio; CI—confidence interval; KTAS—Korean Triage and Acuity Scale; AVPU—alert, verbal, pain, unresponsive; SBP—systolic blood pressure; DBP—diastolic blood pressure; PR—pulse rate; RR—respiratory rate; SpO2— peripheral capillary oxygen saturation; OP—Surgical operation; RT—radiotherapy.

Areas under the receiver operating characteristic curves 
(AUROCs) with confidence intervals for each outcome and prediction method. 
LR—logistic regression with L2 penalization; RF—random forest; XGB—extreme 
gradient boost.

Fig. 3.Areas under the receiver operating characteristic curves (AUROCs) with confidence intervals for each outcome and prediction method. LR—logistic regression with L2 penalization; RF—random forest; XGB—extreme gradient boost.

Table 3.Three-month mortality probability grades according to KTAS.
KTASProbability gradeTotal
12345
11 (14.29)0 (0.00)0 (0.00)1 (14.29)5 (71.43)7 (100.00)
25 (7.94)9 (14.29)0 (0.00)14 (22.22)35 (55.56)63 (100.00)
352 (9.54)109 (20.00)119 (21.83)131 (24.04)134 (24.59)545 (100.00)
4112 (28.35)103 (26.08)78 (19.75)71 (17.97)31 (7.85)395 (100.00)
513 (38.24)10 (29.41)8 (23.53)2 (5.88)1 (2.94)34 (100.00)
Total183 (17.52)231 (22.12)205 (19.63)219 (20.97)206 (19.73)1044 (100.00)
Abbreviation: KATS—Korean Triage and Acuity Scale.Values are presented as number (%).
Table 4.Patent with DNR order and prediction result.
Patient who did not received DNR orderaPatient who received DNR order
Number of patients predicted to be survived after 3 months1315144
Number of patients predicted to be death after 3 months489371
In patients who died in 3 months. (n = 515)
Number of patients predicted to be survived after 3 months8664
Number of patients predicted to be death after 3 months154211

aat 3-month period. Cut-off value used in prediction was calculated by Youden index. Abbreviation: DNR—Do Not Resucitate.

Fig. 4 illustrates the output of a personalized dashboard. Patients A and B are expected to die within three months by this model, however patients C and D are not. For instance, patient A has a high chance due to his or her length of stay (LOS), abnormal pulse rate (PR CAT Abnormal), stage 4, and final KTAS value of greater than 4. Patient C is at low risk due to the year of surgery, normal saturation and pulse rate, and the fact that the final KTAS was less than 4.

Illustration of individualized prediction result by risk factor. 
This illustration explains reason of risk of outcome occur (three-month death) 
individually by features.

Fig. 4. Illustration of individualized prediction result by risk factor. This illustration explains reason of risk of outcome occur (three-month death) individually by features.

4. Discussion

The results of this study demonstrated the prediction of patient outcome at the patient’s first visit to the ED after diagnosis. This visit is generally the first time a patient has symptoms and requires immediate clinical decision-making, and supports a treatment plan based on disease prognosis. This model uses patient information that can be obtained in the first visit to the ED and decision-making in the early stage of the visit and, therefore, early decision-making. Thus, the findings of, this study helps ED clinicians to make treatment plans based on not only anticipated ED outcomes but also the prognosis of patients beyond the ED stage and further support the treatment selection and prioritization among patients in the ED.

In addition, as this study focused on patient prognosis, the results help patients end-of-life planning. This study predicted the outcome of a patient at their first visit to the ED, which is generally the first time a patient experiences subjective symptom, at a relatively early time-line of patient diseases. Early discussions and decisions about patients’ treatment and end-of-life plans are associated with better quality of life and satisfaction [22, 23]. This study can support early decision-making for patients and clinicians and can reduce unnecessary treatment in the ED as well as the preparation of end-of-life care.

In addition to known oncologic-related factors, the results of this study showed that the patient initial ED status, which was not directly related to patient lung cancer status, was closely related to patient prognosis. ED visits might be related to symptom onset or aggravation. Therefore, the point at which patients visit the ED visit is another factor of follow-up in the disease process. In addition, both patient status at the ED visit and the number of visits were related to patient prognosis, indicating that the quantity and quality of acute aggravation of patient status are related to patient prognosis.

The length and timepoints for survival prediction also need to be modified according to patient status and prognosis. Therefore, our study provided several survival durations because each patient has different survival and prediction power varies by prediction point. Conversely, many time points of prediction are needed, with re-evaluation and re-prediction based on patient status. Not only the first visit but also subsequent ED visits can be checkpoints for the evaluation and prediction of patient prognosis. Additional possible factors for the evaluation and prediction of disease prognosis include admission, operation, or other events.

The information obtained in this study is helpful for patient-clinician discussions regarding life-sustaining treatment decisions. Most patients want to play a role in setting their treatment plans [24]. However, patients and their families often feel that they do not receive enough information or informed consent regarding their treatment [25]. This situation may be worse in the ED as clinicians may have limited information on the patient because most clinicians seeing patients in the ED are not the patient’s main doctor, and a rapport between the patient and clinician has not yet been established. Despite these circumstances, lung cancer patients generally first visit the ED, due to their symptoms or illness. Therefore, the findings of this study might provide information about disease state and prognosis in the ED to assist in shared decision-making between clinicians and patients. Additionally, our study’s results can be shown individually, which assists both the patient and physician in comprehending the prediction’s outcome and may aid in communication.

According to our investigation, only half of the patients who died in 3 months after the ED visit received a DNR order. Quality of life and end-of-life decision making is an essential issue in cancer patients, and ED presentation is one of the time points of their decision making [5, 26, 27]. Survival prediction in ED first visit might be helpful for the early idea about the end-of-life planning and support discussion between patient, families, and physician.

This single-center, retrospective study might have had selection bias. To minimize bias, we included patients who had only received their first diagnosis at the study center. Second, we did not include cancer-related factors such as genetic mutations or treatment response. Instead, we considered information on chemotherapeutic agent use and treatments by sequence building. Finally, we did not include laboratory results, which can provide additional information about ED status. We excluded this information for future practical use of this model to predict patient prognosis in the early stage of ED visits and allow early decision-making.

Further study is needed on prognosis visualization to allow effective and practical information sharing, especially with patients. In addition, the prediction of each treatment option requires further study to provide specific and focused treatment suggestions.

5. Conclusion

This study provides the prediction model about 3-month survival in first ED visit point based on each patient factor related to disease status as well as factors related to patient status during ED visit. The results of this study provide information about the risk factors associated with the prognosis of patients with NSCLC at their first ED visit and established a prediction models. Not only the disease but also the patient status at the ED visit were related to the disease outcome. Several checkpoints are needed for a more accurate prognosis, of which the first ED visit might be one.

Abbreviations

NSCLC, non-small cell lung cancer; ED, Emergency Department; ICU, Intensive Care Unit; IRB, Institutional Review Board; KTAS, Korean Triage and Acuity Scale; RR, Respiratory Rate; NA, Not Available; GW, General Ward; RT, radiotherapy; ML, machine learning; LR, logistic regression; RF, random forest; XGB, extreme gradient boost; AUROC, areas under the receiver operating curve; AUPRC, areas under the precision-recall curve; CI, 95% confidence intervals; SD, Standard Deviation; SHAP, Shapely additive explanation; HR, Hazard Ratios; CDW, Clinical Data Warehouse

Author contributions

JYY and HC contributed equally to this work. Conceptualization, HC, JYY and WCC; Methodology, HC, JYY, and WCC; Validation, HC, SH, GTL, JEP, SUL, TK, SYH, HY and WCC; Formal Analysis, JYY and WJ. Data Curation, HC, WJ and JYY; Writing–Original Draft Preparation, HC and JYY; Writing–Review and Editing, TK, SYH, HY, and WCC; Visualization, HC and JYY; Supervision, TGS, MSS, IJJ, and WCC. All authors have read and given the final approval of the version of the manuscript to be published. All authors made a substantial contribution to the concept and design of the manuscript.

Ethics approval and consent to participate

This study was approved by the Institutional Review Board (IRB) of Samsung Medical Center (IRB No. 2021-03-092), which waived the requirement for informed consent because of the retrospective, observational, and anonymous nature of the study.

Acknowledgment

We would like to thank Editage (www.editage.co.kr) for English language editing.

Funding

This research was supported by the National Research Foundation of Korea (NRF) grant funded by the Korean government (MSIT) (grant number: 2020R1FA1075860).

Conflict of interest

The authors declare no conflict of interest. Won Chul Cha is serving as one of the Editorial Board members of this journal. We declare that Won Chul Cha had no involvement in the peer review of this article and has no access to information regarding its peer review. Full responsibility for the editorial process for this article was delegated to SF.

References

Shin SH, Lee H, Kang HK, Park JH. Twenty-eight-day mortality in lung cancer patients with metastasis who initiated mechanical ventilation in the emergency department. Scientific Reports. 2019; 9: 1–7.

[Google Scholar]

Griffin JP, Nelson JE, Koch KA, Niell HB, Ackerman TF, Thompson M, et al. End-of-life care in patients with lung cancer. Chest. 2003; 123: 312S–331S.

[Google Scholar]

Siegel RL, Miller KD, Jemal A. Cancer statistics, 2019. CA: A Cancer Journal for Clinicians. 2019; 69: 7–34.

[Google Scholar]

Nawar EW, Niska RW, Xu J. National hospital ambulatory medical care survey: 2005 emergency department summary. Advance Data. 2007; 386: 1–32.

[Google Scholar]

Rondeau DF, Schmidt TA. Treating cancer patients who are near the end of life in the emergency department. Emergency Medicine Clinics of North America. 2009; 27: 341–354.

[Google Scholar]

Kress J, Christenson J, Pohlman AS, Linkin DR, Hall JB. Outcomes of critically ill cancer patients in a university hospital setting. American Journal of Respiratory and Critical Care Medicine. 1999; 160: 1957–1961.

[Google Scholar]

Molina JR, Yang P, Cassivi SD, Schild SE, Adjei AA. Non-small cell lung cancer: epidemiology, risk factors, treatment, and survivorship. Mayo Clinic Proceedings. 2008; 83: 584–594.

[Google Scholar]

Lemjabbar-Alaoui H, Hassan OU, Yang YW, Buchanan P. Lung cancer: biology and treatment options. Biochimica et Biophysica Acta. 2015; 1856: 189–210.

[Google Scholar]

Sharma G, Freeman J, Zhang D, Goodwin JS. Trends in end-of-life ICU use among older adults with advanced lung cancer. Chest. 2008; 133: 72–78.

[Google Scholar]

Chapman AM, Sun KY, Ruestow P, Cowan DM, Madl AK. Lung cancer mutation profile of EGFR, ALK, and KRAS: meta-analysis and comparison of never and ever smokers. Lung Cancer. 2016; 102: 122–134.

[Google Scholar]

Lai YH, Chen WN, Hsu TC, Lin C, Tsao Y, Wu S. Overall survival prediction of non-small cell lung cancer by integrating microarray and clinical data with deep learning. Scientific Reports. 2020; 10: 4679.

[Google Scholar]

She Y, Jin Z, Wu J, Deng J, Zhang L, Su H, et al. Development and validation of a deep learning model for non-small cell lung cancer survival. JAMA Network Open. 2020; 3: e205842.

[Google Scholar]

Iserson KV, Moskop JC. Triage in medicine, part I: concept, history, and types. Annals of Emergency Medicine. 2007; 49: 275–281.

[Google Scholar]

Christ M, Grossmann F, Winter D, Bingisser R, Platz E. Modern triage in the emergency department. Deutsches Ärzteblatt International. 2010; 107: 892–898.

[Google Scholar]

Wright AA, Keating NL, Ayanian JZ, Chrischilles EA, Kahn KL, Ritchie CS, et al. Family perspectives on aggressive cancer care near the end of life. JAMA. 2016; 315: 284–292.

[Google Scholar]

Miao M, Georgiou A, Dahm MR, Li J, Thomas J. Shared decision-making in emergency departments: context sensitivity through divergent discourses. Studies in Health Technology and Informatics. 2019; 265: 128–133.

[Google Scholar]

Collins GS, Reitsma JB, Altman DG, Moons KG. Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD Statement. British Journal of Surgery. 2015; 102: 148–158.

[Google Scholar]

Luo W, Phung D, Tran T, Gupta S, Rana S, Karmakar C, et al. Guidelines for developing and reporting machine learning predictive models in biomedical research: a multidisciplinary view. Journal of Medical Internet Research. 2016; 18: e323.

[Google Scholar]

Barfod C, Lauritzen MM, Danker JK, Sölétormos G, Forberg J, Berlac PA, et al. Abnormal vital signs are strong predictors for intensive care unit admission and in-hospital mortality in adults triaged in the emergency department—a prospective cohort study. Scandinavian Journal of Trauma, Resuscitation and Emergency Medicine. 2012; 20: 1–10.

[Google Scholar]

Philip KEJ, Pack E, Cambiano V, Rollmann H, Weil S, O’Beirne J. The accuracy of respiratory rate assessment by doctors in a London teaching hospital: a cross-sectional study. Journal of Clinical Monitoring and Computing. 2015; 29: 455–460.

[Google Scholar]

Lundberg SM, Lee SI. ’A unified approach to interpreting model predictions’, Proceedings of the 31st International Conference on Neural Information Processing Systems. Seattle, WA, USA. 2017.

[Google Scholar]

Detering KM, Hancock AD, Reade MC, Silvester W. The impact of advance care planning on end of life care in elderly patients: randomised controlled trial. The BMJ. 2010; 340: c1345.

[Google Scholar]

Heyland DK, Allan DE, Rocker G, Dodek P, Pichora D, Gafni A, et al. Discussing prognosis with patients and their families near the end of life: impact on satisfaction with end-of-life care. Open Medicine. 2009; 3: e101–e110.

[Google Scholar]

Schoenfeld EM, Kanzaria HK, Quigley DD, Marie PS, Nayyar N, Sabbagh SH, et al. Patient preferences regarding shared decision making in the emergency department: findings from a multisite survey. Academic Emergency Medicine. 2018; 25: 1118–1128.

[Google Scholar]

Wiener RS, Koppelman E, Bolton R, Lasser KE, Borrelli B, Au DH, et al. Patient and clinician perspectives on shared decision-making in early adopting lung cancer screening programs: a qualitative study. Journal of General Internal Medicine. 2018; 33: 1035–1042.

[Google Scholar]

Akgün KM. Palliative and end-of-life care for patients with malignancy. Clinics in Chest Medicine. 2017; 38: 363–376.

[Google Scholar]

Lim RB. End-of-life care in patients with advanced lung cancer. Therapeutic Advances in Respiratory Disease. 2016; 10: 455–467.

[Google Scholar]