﻿Supplementary material
Compatibility Structure and Classification of Si Jun Zi Tang and Related Formulas
Dongfei Lin

Files and reproduction
record_audit.csv contains one row per exact-title record, in worksheet order, with the Chinese ingredient field, original source citation, harmonized fields and relative weights. The text is UTF-8 with a byte-order mark. It includes three shorthand compositions, identifiable by ingredient_status.
reanalyse.py recalculates descriptive, concordance, sensitivity, relative-dose and bootstrap statistics. With Python 3 and NumPy installed, run python reanalyse.py in the expanded folder. expected_results.txt records the output of the distributed script. The 95% interval is a percentile range under work-level resampling of this selected corpus.
verify_sources.py checks the two source-file fingerprints, screens all 94,705 data rows, and tests the recorded titles, row numbers and ingredient fields. With openpyxl installed, run python verify_sources.py "path to source folder". The raw workbooks are not bundled.
figures/ contains the seven original PNG figures as embedded in the article.

Field definitions
dictionary A is 方剂大辞典_84578.xlsx (worksheet Sheet1). B is 中国方剂精华辞典_10127.xlsx (Sheet1). Record ID concatenates dictionary and physical worksheet row, counting the header as row 1. The original names, sources, and ingredient fields are Unicode Chinese. Codes for missing information are blank. Zero in a binary field means the main ingredient list lacks a recognized label. A blank binary field denotes an unexpanded formula reference.
named_in_syllabus marks the four derivatives explicitly listed in the teaching passage. The parent and names unmentioned in that passage are coded 0 for this field. An unmentioned formula is not a negative expert rating.
expected_ fields give the four indicators derived from the historical commentary and inherited along its chain of named relationships. expected and strict fields describe the founding ingredients only. All other ingredients are allowed to vary.
strict_ fields follow the labels in the main list. Ren Shen requires 人参. Bai Zhu includes processed forms explicitly named 白术. Fu Ling includes 茯苓, 白茯苓, 白茯, 白云苓, and 云苓. Licorice includes raw or processed 甘草, 炙草, 粉草, and 制草. 甘草节 is distinguished. Materials used only for processing, named optional alternatives, and ingredients conditional on an indication do not count as main entries. Uncertain alternative ginseng labels are not inferred from the formula name.
wide_ adds 党参 and 潞参 at the Ren Shen position, 焦术 and 仙居术 at the Bai Zhu position, 茯神 and 赤茯苓 at the Fu Ling position, and 甘草节 at the Gan Cao position. This is a sensitivity coding scheme, not a claim of pharmacological equivalence.
listed_items counts individual items in the main list. Independently listed preparations can remain separate items. A60224 omits a conditional Huang Qin addition. Ingredients used only for processing or described only in the directions are outside the extraction boundary.
marker_ fields use source drug groupings. Citrus peel includes 陈皮, 陈橘皮, 橘皮, 橘红, and 广皮. Ban Xia includes 半夏, processed forms including 半夏曲, and 法夏. Sha Ren includes strings containing 砂仁. Coix includes 薏苡, 苡仁, 米仁, or 苡米. Platycodon includes 桔梗 or 苦梗. Yam includes 山药 or 薯蓣. Lotus includes 莲肉 or 莲子. Hyacinth bean includes 扁豆. Huo Xiang (藿香) and Mu Xiang (木香) are recorded separately.
weight_ variables are proportional amounts in a single common scale within each row. A row may preserve source units or be rescaled, including four components of 1 where equal weights are stated. Between-row absolute weight comparisons are undefined. The four values reproduce all within-core ratios. all_ingredient_weight is the sum of the whole main list on that same scale when every quantity is comparable. For example, B5222 uses a kilogram scale; A36098 uses jin. Both give the same proportions. Do not interpret a blank amount as zero.
The clinical platform did not supply observations. No patient identifiers, orders, or clinical outcomes are present.
