$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Baseline characteristics of the physician pool and patient request pool
The simulated analytic dataset comprised 240 physicians and 3,600 patient consultation requests. The baseline characteristics of both sides of the matching system are summarized in Table 2, and the platform-side distribution patterns are illustrated in Figure 3.
Among the 240 physicians, 128 (53.3%) were female. The cohort demonstrated a mean clinical experience of 9.34 years, a mean consultation fee of USD 68.08, a mean nominal daily consultation capacity of 18.52 consultations, a mean historical service rating of 4.63, and a mean first reply time of 5.47 h. Internal Medicine was the largest specialty (19.2%), followed by Orthopedics (15.0%) and Neurology (13.3%). Regarding consultation mode, 41.7% of physicians supported text plus voice, 37.1% supported text-only, and 21.3% supported full text, voice, and video consultations.
Among the 3,600 patient requests, 53.1% were submitted by female patients. The mean age was 36.49 years, and the mean budget ceiling was USD 47.30. Internal Medicine was the most frequent target specialty (20.0%), followed by Neurology (13.8%) and Cardiology (13.0%). Requests were classified by severity (45.7% moderate, 34.2% low, 20.1% high) and urgency (39.1% priority, 35.9% routine, 25.0% urgent). Text consultation was the most common preference (45.1%), and 78.7% of patients reported no physician gender preference. Collectively, these distributions indicate that the platform operated in a heterogeneous consultation environment, validating the need to evaluate both compatibility and capacity constraints within the matching system.
Candidate-pair structure and score separation
Following the specialty-first retrieval and restricted candidate expansion, 9,785 candidate doctor-patient pairs were generated (Table 3, Figure 4). Across the full candidate-pair layer, 3,085 pairs were selected as final matches, while 6,700 were not. Selected pairs exhibited a higher exact specialty-match proportion (99.2% vs. 95.3%) and a slightly higher gender-preference match (90.2% vs. 89.0%) than non-selected pairs.
More importantly, the main pairwise differences were concentrated in operational and composite scoring variables. Selected pairs demonstrated a higher mean compatibility score (0.853 vs. 0.829) and a higher mean capacity score (0.395 vs. 0.381). Consequently, the mean hybrid score was 0.707 among selected pairs compared with 0.686 among non-selected pairs. Selected pairs were also operationally more favorable, presenting a lower mean physician load ratio (0.628 vs. 0.642), more available same-day slots (6.99 vs. 6.65), and a shorter estimated waiting time (12.46 h vs. 12.79 h).
Among the 3,085 selected pairs, 2,584 consultations were completed (83.8% completion rate). The mean patient satisfaction was 4.29 out of 5.00. Defining successful matching as consultation completion, patient satisfaction 4.0, and no 14-day revisit, 1,644 selected pairs met this criterion (53.3% success rate). These results demonstrate that final selections were driven by the intersection of higher compatibility, lower load pressure, and better waiting-time conditions, consistent with the prespecified protocol logic.
Pair-level factors associated with successful final matching
A multivariable logistic regression within the selected-match subset was performed to identify features associated with successful matching (Table 4, Figure 5). The compatibility score remained positively associated with successful matching (adjusted odds ratio [aOR] = 11.99; 95% CI, 1.81–79.46; P = 0.010), as did the capacity score (aOR = 2.08; 95% CI, 1.22–3.55; P = 0.007). Conversely, a longer estimated waiting time reduced the probability of a successful match (aOR = 0.953 per additional hour; 95% CI, 0.934–0.972; P < 0.001). Affordability also remained significant (aOR = 1.33; 95% CI, 1.12–1.57; P = 0.001). Exact specialty matching, gender-preference matching, priority status, and high severity did not remain independently significant. This indicates that matching success depends more on the combined strength of compatibility and absorbable capacity than on any single surface-level feature.
Benchmarking and robustness of the allocation strategies
Comparative benchmarking across the 12 evaluation folds is summarized in Table 5, Table 6, and Figure 6. The proposed hybrid strategy achieved the most favorable overall profile. It produced the highest mean precision at rank 1 (0.740), recall (0.691), and F1 score (0.714), outperforming the rule-based baseline, the compatibility-only strategy, and the capacity-only strategy.
Operationally, the hybrid strategy achieved the highest capacity fill rate (0.825) and the shortest mean estimated waiting time (5.52 h). Patient-centered performance was also optimized, with the hybrid approach yielding the highest mean patient satisfaction (4.43) and the lowest load imbalance index (0.195), indicating a highly even physician workload distribution. Subgroup analyses (Table 7, Figure 6) confirmed that this stable performance pattern was maintained across different urgency strata and hospital tiers, proving the framework's robustness even in highly capacity-constrained settings.

Figure 1: Overall study workflow. (A) Construction of the physician pool and patient request pool. (B) Specialty-first candidate retrieval process with restricted expansion when fewer than two active physicians with remaining capacity are available in the requested specialty. (C) Generation of candidate doctor-patient pairs and derivation of pairwise variables. (D) Construction of the compatibility score, capacity score, and hybrid score. (E) Final physician selection, fold-based benchmarking across four allocation strategies, and calculation of performance outcomes. Please click here to view a larger version of this figure.

Figure 2: Architecture of compatibility and capacity-aware matching framework. (A) Compatibility module, including specialty alignment, consultation-mode fit, gender-preference fit, affordability fit, physician historical rating, and urgency-response fit. (B) Capacity module, including physician load ratio, remaining same-day slots, and estimated waiting time. (C) Score normalization and weighted score aggregation for compatibility score and capacity score. (D) Integration of the two modules into the final hybrid score. (E) Final ranking and tie-breaking logic used to determine the selected doctor-patient match. Please click here to view a larger version of this figure.

Figure 3: Baseline distribution patterns of physician and patient characteristics in the analytic dataset. (A) Specialty distribution of the physician pool. (B) Professional title and hospital-tier distribution of physicians. (C) Specialty distribution of patient consultation requests. (D) Severity and urgency distribution of patient requests. (E) Distribution of preferred consultation mode and preferred physician gender among patient requests. Note: All data distributions presented in this figure are derived directly from the finalized analytic dataset (n = 240 physicians; n = 3,600 patient requests) and are fully consistent with the summary statistics reported in Table 2. Please click here to view a larger version of this figure.

Figure 4: Pair-level score distributions and separation between selected and non-selected candidate matches. (A) Distribution of compatibility scores in selected and non-selected pairs. (B) Distribution of capacity scores in selected and non-selected pairs. (C) Distribution of hybrid scores in selected and non-selected pairs. (D) Estimated waiting time (in hours) by selection status. (E) Joint distribution of compatibility score and capacity score, with selected and non-selected pairs shown separately. Please click here to view a larger version of this figure.

Figure 5: Multivariable analysis of factors associated with successful final matching among selected pairs. (A) Forest plot of adjusted odds ratios for compatibility score, capacity score, estimated waiting time (in hours), affordability fit, specialty match, gender-preference fit, severity level, and urgency level. (B) Marginal probability of successful matching across the observed range of compatibility score. (C) Marginal probability of successful matching across the observed range of capacity score. (D) Inverse association between estimated waiting time (in hours) and probability of successful matching. Please click here to view a larger version of this figure.

Figure 6: Comparative benchmarking of four doctor-patient matching strategies and subgroup performance of the hybrid framework. (A) Precision at rank 1, recall, and F1 score across the four strategies. (B) Capacity fill rate, mean estimated waiting time, and mean patient satisfaction across the four strategies. (C) Load imbalance index across the four strategies. (D) Fold-level performance ranges of the hybrid strategy across 12 repeated evaluation folds. (E) Hybrid strategy subgroup performance heatmap. Note: All values presented in this figure have been cross-validated with the corresponding results reported in Table 5 to ensure absolute consistency. Please click here to view a larger version of this figure.
Table 1: Operational definitions, thresholds, and scoring rules for the matching framework. Abbreviations: SD = standard deviation. Please click here to download this Table.
Table 2: Baseline characteristics of the physician pool and patient request pool. Section, characteristics, and comparative basic statistics of the analytic dataset prior to matching. Please click here to download this Table.
Table 3: Pair-level comparisons between selected and non-selected matches. This table aggregates the pairwise variables and descriptive statistics detailing the structural separation between the final selected matches and non-selected candidates. Please click here to download this Table.
Table 4: Multivariable logistic regression analysis of factors associated with successful final matching among selected pairs. Model information: Dependent variable = successful final match among selected pairs. A successful match was defined as consultation completion, patient satisfaction 4.0/5.0, and no 14-day revisit due to dissatisfaction or mismatch. Please click here to download this Table.
Table 5: Comparative performance of four matching strategies. Summary of comparative strategy-level benchmarking across 12 repeated folds. Please click here to download this Table.
Table 6: Stability and fold-level variability of the hybrid strategy. Summary of fold-level performance ranges of the hybrid strategy across 12 repeated evaluation folds. Please click here to download this Table.
Table 7: Subgroup performance of the hybrid strategy. Detailed subgroup performance of the hybrid strategy based on urgency levels and hospital tiers. Please click here to download this Table.