$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Ethics and Oversight
This study was approved by the Ethics Committee of Wuxi Second Traditional Chinese Medicine Hospital (20220904). All participants provided written informed consent in accordance with the Declaration of Helsinki; procedures were consistent with ICH-GCP principles. Any identifiable media used for demonstration was separately consented. To reduce assessment bias, physicians who evaluated TCM syndrome elements were blinded to the American Joint Committee on Cancer (AJCC) stage and treatment status throughout scoring and adjudication; blinding was maintained by a data steward who removed those fields from assessor-facing sheets.
Patient recruitment and case sources
Consecutive patients with gastric cancer were enrolled between December 1, 2022, and March 31, 2024, from the outpatient and inpatient departments of Wuxi Second TCM Hospital. Screening was logged prospectively (order approached, eligibility decision, reason for exclusion, consent outcome). A de-identified screening checklist and the blank case-report form (CRF) are provided as a table in the public repository under Data Availability. Baseline demographics and staging summaries for the enrolled cohort are presented in Table 1 to contextualize subsequent analyses.
Diagnostic and staging criteria
Diagnosis followed the norms for the diagnosis and treatment of common malignant tumors issued by the Medical Administration Department of the Ministry of Health of the PRC, with pathological confirmation required in every case. Tumor stage was assigned according to the AJCC Cancer Staging Manual, 8th edition, and verified against pathology and imaging source documents before enrollment8.
Eligibility criteria and withdrawal rules
Adults (≥18 years) with pathologically confirmed gastric cancer and Karnofsky Performance Score (KPS) ≥ 60 were eligible, provided they could complete the standardized TCM assessment. Exclusions included pregnancy, unstable severe comorbidities compromising consent/safety, or incomplete core baseline data. Patients receiving or having received chemotherapy, radiotherapy, or targeted/immunotherapy were eligible; treatment status was recorded (Never/Ongoing/Past) and used in stratified and sensitivity analyses. Participants could be withdrawn if data were insufficient for syndrome differentiation, if rapid clinical deterioration occurred, or upon personal request, without impact on subsequent care.
Data collection and management
Trained researchers completed a standardized CRF titled Collection Form of Syndrome Element Information for Gastric Cancer Patients. Data were double-entered using spreadsheet software (version ≥15.30), independently cross-checked, and reconciled before database lock. A data dictionary, coding sheet, and audit log were maintained from the first entry to analysis. Analytical datasets were de-identified and stored with role-based access control; a frozen, time-stamped copy was archived to support replication and auditing.
Standardized TCM assessment
Clinical evaluation adhered to the four classical examinations-inspection, listening/smelling, inquiry, palpation-in a fixed sequence under consistent lighting (~5,000-6,500 K; CRI ≥90). Patients were seated facing the light source; tongue and pulse features were recorded using predefined descriptors. Assessors underwent calibration with pilot cases and exemplar vignettes before formal scoring. All observations were recorded immediately on the CRF to minimize recall error. The cohort-level distribution of composite TCM syndrome patterns derived from this assessment is summarized in Table 2 (footnotes specify whether a single primary pattern or multiple patterns were allowed).
Syndrome-element scoring and adjudication
Items were scored according to the Syndrome Element Scale (full item list and codes in Supplementary Table 1). Inter-rater reliability (present/absent) was quantified using Cohen's κ with 95% CIs and summarized in Supplementary Table 2. Severity weights were: mild = 0.7, moderate = 1.0, severe = 1.5. Weighted items were summed within each element to yield the element score. Presence of an element was defined at threshold = 14; robustness at 12 and 16 is reported in Supplementary Table 3. Two TCM oncology physicians independently scored each case; discordances were resolved in a consensus meeting with a written rationale. Element-level prevalence across patients is reported in Table 3, and a worked example of item-to-element scoring is shown in Supplementary Figure 1.
Statistical analysis
Software and reproducibility
All analyses were performed in R (v4.3). A runnable, version-locked script and the full sessionInfo() output are archived with the dataset (https://doi.org/10.6084/m9.figshare.30405196.v2). A fixed random seed was set before all stochastic procedures. Core functions/packages were: base stats (prcomp, hclust, kmeans), cluster (silhouette), and igraph (network visualization)9. The element-level distribution is summarized in Supplementary Table 1, and the blank case-report form (CRF), data dictionary, and tidy input matrices are available in the public repository referenced in the Data Availability section.
Two-stage H - K clustering
A two-stage procedure was used to derive clinically interpretable groups.
Hierarchical stage: Patient-by-element weighted scores were z-standardized, Euclidean distances were computed, and agglomeration used Ward.D2 linkage. The dendrogram was inspected to propose candidate k using joint consideration of the elbow in within-cluster dispersion, branch stability, and preliminary silhouette patterns10.
k-means refinement. For each candidate k, k-means was initialized from the hierarchical partitions and run with nstart ≥ 50; final membership minimized within-cluster sum of squares. Average silhouette width and per-cluster profiles were exported for traceability. The integral heat map summarizing standardized scores is shown in Figure 1; the corresponding dendrogram is shown in Figure 2.
Principal component analysis and correlation network
Element-score matrices were centered and scaled, and PCA was performed with prcomp(center = TRUE, scale = TRUE). The node size reflects the prevalence of elements; labels were manually checked to ensure no overlap and readability. The resulting correlation network is shown in Figure 3. The PCA biplot is shown in Figure 4. Pairwise Pearson correlations across elements were computed with pairwise-complete observations; edges were retained when |r| ≥ 0.30, with edge width proportional to |r|. A force-directed algorithm (Fruchterman-Reingold) was used for layout to improve readability11.
Missing data and sensitivity
Per-variable completeness (counts, %) is summarized in Supplementary Table 4; because missingness was low, complete-case analysis was used for all primary outputs. Robustness was assessed by recomputing element-presence classification under alternative score cutoffs (12 and 16) relative to the prespecified threshold of 14 (Supplementary Table 3), and-where relevant-within treatment-status strata (Never/Ongoing/Past; Supplementary Table 5). Inter-rater reliability for element adjudication by two independent TCM experts was high (overall agreement 95%), as detailed in Supplementary Table 2. A worked example illustrating item-to-element scoring and thresholding is provided in Supplementary Figure 1.
Quality control, timing, and troubleshooting
Quality assurance included weekly 10% source-data verification, periodic assessor recalibration, and automated range/logic checks before database lock. Typical timelines were ~10-15 min for screening/consent, 20-30 min for standardized TCM assessment and scoring, and 10-15 min for data entry/verification per case. The critical steps here include maintaining stable lighting and a fixed examination sequence; preserving assessor blinding to stage and treatment; and documenting reasons for any adjudication. When summarizing distributions, denominators were explicitly stated as N (patients) or non-exclusive element counts, and the same denominator was used consistently across text, tables, and figure captions.