----网址导航插件----

文章目录

链接地址:http://www.360doc.com/content/25/0926/07/40035146_1162014683.shtml
获取标题/ico
http(s)://
访问次数: 0
yin_yang_weight_standards = {
"阳盛等级": [
{"symbol": "+", "range": [6.5, 7.2], "arrow": "↑", "desc": "阳气较为旺盛", "variation": "±15%~20%"} [[5,7,14]],
{"symbol": "++", "range": [7.2, 8], "arrow": "↑↑", "desc": "阳气非常旺盛", "variation": "±15%~20%"} [[1,3,8]],
{"symbol": "+++", "range": [8, 10], "arrow": "↑↑↑", "desc": "阳气极旺", "variation": "±15%~20%"} [[3,8,11]]
],
"阴盛等级": [
{"symbol": "-", "range": [5.8, 6.5], "arrow": "↓", "desc": "阴气旺盛", "variation": "±15%~20%"} [[4,6,9]],
{"symbol": "--", "range": [5, 5.8], "arrow": "↓↓", "desc": "阴气较盛", "variation": "±15%~20%"} [[4,6,17]],
{"symbol": "---", "range": [0, 5], "arrow": "↓↓↓", "desc": "阴气极盛", "variation": "±15%~20%"} [[6,8]]
],
"平衡态": [
{"symbol": "±", "range": [5.8, 6.5], "arrow": "↔", "desc": "阴阳平衡态", "variation": "±15%"} [[2,5]]
]
}
base_patterns = [
{ # 阳明腑实型痉病(病症前状态)
"pattern": [
{"position": 4, "trigram": "震", "element": "木", "yang_yin": "阳木胆",
"energy": {"symbol": "-", "score": 5.0, "deviation": "-0.8"},
"symptom": "目闭不开,两手拘急厥冷", "hexagram": "☳"} [[12]],
{"position": 5, "trigram": "中", "element": "太极", "yang_yin": "☯",
"energy": {"symbol": "--", "score": 5.5, "deviation": "-0.3"},
"symptom": "角弓反张", "description": "相火失调"} [[12,16]],
{"position": 2, "trigram": "坤", "element": "土", "yang_yin": "阴土脾",
"energy": {"symbol": "---", "score": 4.8, "deviation": "-1.0"},
"pathogenesis": "脾肾阳虚, 水湿内停"} [[16]]
],
"treatment": "大承气汤急下存阴" [[12,16]]
},
{ # 治疗后恢复状态
"pattern": [
{"position": 4, "trigram": "震", "element": "木", "yang_yin": "阳木胆",
"energy": {"symbol": "+", "score": 6.5, "deviation": "0.0"},
"symptom": "痉止厥回", "hexagram": "☳"} [[12]],
{"position": 7, "trigram": "兑", "element": "泽", "yang_yin": "阳大肠",
"energy": {"symbol": "±", "score": 6.0, "deviation": "+0.2"},
"symptom": "泻下黏溏夹血便"} [[12,17]],
{"position": 6, "trigram": "乾", "element": "天", "yang_yin": "☰",
"energy": {"symbol": "++", "score": 7.5, "deviation": "+0.5"},
"description": "君火复位"} [[8,14]]
],
"outcome": "热退神清,胃家实缓解" [[12,16]]
}
]

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

class PatternElement {
int position;
String trigram;
String element;
String yang_yin;
String hexagram;
String emotion;
String description;

public PatternElement(int position, String trigram, String element, String yang_yin, String hexagram) {
    this.position = position;
    this.trigram = trigram;
    this.element = element;
    this.yang_yin = yang_yin;
    this.hexagram = hexagram;
}

public PatternElement(int position, String emotion, String trigram, String hexagram) {
    this.position = position;
    this.emotion = emotion;
    this.trigram = trigram;
    this.hexagram = hexagram;
}

// Getters and setters can be added here if needed

}

public class BasePatterns {
public static void main(String[] args) {
List<Map<String, Object>> basePatterns = new ArrayList<>();

    Map<String, Object> pattern1 = new HashMap<>();
    List<PatternElement> pattern1List = new ArrayList<>();
    pattern1List.add(new PatternElement(4, "震", "木", "阳木胆/阴木肝", "☳"));
    pattern1List.add(new PatternElement(9, "离", "火", "阳火小肠", "☲"));
    pattern1List.add(new PatternElement(2, "坤", "土", "阴土脾/阳土胃", "☷"));

    Map<String, String> additionalInfo1 = new HashMap<>();
    additionalInfo1.put("4", "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)");

    pattern1.put("pattern", pattern1List);
    pattern1.put("additional_info", additionalInfo1);

    basePatterns.add(pattern1);

    Map<String, Object> pattern2 = new HashMap<>();
    List<PatternElement> pattern2List = new ArrayList<>();
    pattern2List.add(new PatternElement(3, "巽", "风", "阳木胆/阴木肝", "☴"));
    pattern2List.add(new PatternElement(5, "中", "太极", "☯", "☯"));
    pattern2List.get(1).description = "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)";
    pattern2List.add(new PatternElement(7, "兑", "泽", "阳大肠/阴肺", "☱"));

    pattern2.put("pattern", pattern2List);

    basePatterns.add(pattern2);

    Map<String, Object> pattern3 = new HashMap<>();
    List<PatternElement> pattern3List = new ArrayList<>();
    pattern3List.add(new PatternElement(8, "艮", "山", "阳土胃/阴土脾", "☶"));
    pattern3List.add(new PatternElement(1, "坎", "水", "阳水膀胱/阴水肾阴", "☵"));
    pattern3List.add(new PatternElement(6, "乾", "天", "☰", "☰"));
    pattern3List.get(2).description = "(天/君火/阴火心/阳火小肠/";

    pattern3.put("pattern", pattern3List);

    basePatterns.add(pattern3);

    Map<String, Object> pattern4 = new HashMap<>();
    List<PatternElement> pattern4List = new ArrayList<>();
    pattern4List.add(new PatternElement(4, "怒", "震", "☳"));
    pattern4List.add(new PatternElement(9, "惊", "离", "☲"));
    pattern4List.add(new PatternElement(2, "悲", "坤", "☷"));

    pattern4.put("pattern", pattern4List);

    basePatterns.add(pattern4);

    Map<String, Object> pattern5 = new HashMap<>();
    List<PatternElement> pattern5List = new ArrayList<>();
    pattern5List.add(new PatternElement(3, "爱", "巽", "☴"));
    pattern5List.add(new PatternElement(5, "思", "中", "☯", "☯"));
    pattern5List.get(1).description = "(思/中/☯)";
    pattern5List.add(new PatternElement(7, "忧", "兑", "☱"));

    pattern5.put("pattern", pattern5List);

    basePatterns.add(pattern5);

    Map<String, Object> pattern6 = new HashMap<>();
    List<PatternElement> pattern6List = new ArrayList<>();
    pattern6List.add(new PatternElement(8, "恐", "艮", "☶"));
    pattern6List.add(new PatternElement(1, "欲", "坎", "☵"));
    pattern6List.add(new PatternElement(6, "喜", "乾", "☰"));

    pattern6.put("pattern", pattern6List);

    basePatterns.add(pattern6);

    // 整合后的完整 base_patterns 字典
    Map<String, List<Map<String, Object>>> basePatternsDict = new HashMap<>();
    List<Map<String, Object>> patterns = new ArrayList<>();

    Map<String, Object> integratedPattern1 = new HashMap<>();
    List<List<PatternElement>> rows1 = new ArrayList<>();
    rows1.add(List.of(new PatternElement(4, "震", "木", "阳木胆/阴木肝", "☳")));
    rows1.add(List.of(new PatternElement(9, "离", "火", "阳火小肠", "☲")));
    rows1.add(List.of(new PatternElement(2, "坤", "土", "阴土脾/阳土胃", "☷")));

    Map<String, String> additionalInfoIntegrated1 = new HashMap<>();
    additionalInfoIntegrated1.put("4", "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)");

    integratedPattern1.put("rows", rows1);
    integratedPattern1.put("additional_info", additionalInfoIntegrated1);

    patterns.add(integratedPattern1);

    Map<String, Object> integratedPattern2 = new HashMap<>();
    List<List<PatternElement>> rows2 = new ArrayList<>();
    rows2.add(List.of(
            new PatternElement(3, "巽", "风", "阳木胆/阴木肝", "☴"),
            new PatternElement(5, "中", "太极", "☯", "☯"),
            new PatternElement(7, "兑", "泽", "阳大肠/阴肺", "☱")
    ));
    rows2.get(0).get(1).description = "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)";

    rows2.add(List.of(
            new PatternElement(8, "艮", "山", "阳土胃/阴土脾", "☶"),
            new PatternElement(1, "坎", "水", "阳水膀胱/阴水肾阴", "☵"),
            new PatternElement(6, "乾", "天", "☰", "☰")
    ));
    rows2.get(1).get(2).description = "(天/君火/阴火心/阳火小肠/";

    integratedPattern2.put("rows", rows2);

    patterns.add(integratedPattern2);

    Map<String, Object> integratedPattern3 = new HashMap<>();
    List<List<PatternElement>> rows3 = new ArrayList<>();
    rows3.add(List.of(
            new PatternElement(4, "怒", "震", "☳"),
            new PatternElement(9, "惊", "离", "☲"),
            new PatternElement(2, "悲", "坤", "☷")
    ));

    rows3.add(List.of(
            new PatternElement(3, "爱", "巽", "☴"),
            new PatternElement(5, "思", "中", "☯", "☯"),
            new PatternElement(7, "忧", "兑", "☱")
    ));
    rows3.get(1).get(1).description = "(思/中/☯)";

    rows3.add(List.of(
            new PatternElement(8, "恐", "艮", "☶"),
            new PatternElement(1, "欲", "坎", "☵"),
            new PatternElement(6, "喜", "乾", "☰")
    ));

    integratedPattern3.put("rows", rows3);

    patterns.add(integratedPattern3);

    basePatternsDict.put("patterns", patterns);

    // 打印结果以验证
    System.out.println(basePatternsDict);
}

}#include

include

include

include

struct PatternElement {
int position;
std::string trigram;
std::string element;
std::string yang_yin;
std::string hexagram;
std::string emotion;
std::string description;

PatternElement(int pos, const std::string& trig, const std::string& elem, const std::string& yiny, const std::string& hex)
    : position(pos), trigram(trig), element(elem), yang_yin(yiny), hexagram(hex) {}

PatternElement(int pos, const std::string& emo, const std::string& trig, const std::string& hex)
    : position(pos), emotion(emo), trigram(trig), hexagram(hex) {}

};

int main() {
std::vector<std::map<std::string, std::variant<std::vector, std::map<int, std::string>>>> basePatterns;

// Pattern 1
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern1;
std::vector<PatternElement> pattern1List;
pattern1List.emplace_back(PatternElement(4, "震", "木", "阳木胆/阴木肝", "☳"));
pattern1List.emplace_back(PatternElement(9, "离", "火", "阳火小肠", "☲"));
pattern1List.emplace_back(PatternElement(2, "坤", "土", "阴土脾/阳土胃", "☷"));

std::map<int, std::string> additionalInfo1;
additionalInfo1[4] = "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)";

pattern1["pattern"] = pattern1List;
pattern1["additional_info"] = additionalInfo1;

basePatterns.push_back(pattern1);

// Pattern 2
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern2;
std::vector<PatternElement> pattern2List;
pattern2List.emplace_back(PatternElement(3, "巽", "风", "阳木胆/阴木肝", "☴"));
pattern2List.emplace_back(PatternElement(5, "中", "太极", "☯", "☯"));
pattern2List[1].description = "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)";
pattern2List.emplace_back(PatternElement(7, "兑", "泽", "阳大肠/阴肺", "☱"));

pattern2["pattern"] = pattern2List;

basePatterns.push_back(pattern2);

// Pattern 3
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern3;
std::vector<PatternElement> pattern3List;
pattern3List.emplace_back(PatternElement(8, "艮", "山", "阳土胃/阴土脾", "☶"));
pattern3List.emplace_back(PatternElement(1, "坎", "水", "阳水膀胱/阴水肾阴", "☵"));
pattern3List.emplace_back(PatternElement(6, "乾", "天", "☰", "☰"));
pattern3List[2].description = "(天/君火/阴火心/阳火小肠/";

pattern3["pattern"] = pattern3List;

basePatterns.push_back(pattern3);

// Pattern 4
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern4;
std::vector<PatternElement> pattern4List;
pattern4List.emplace_back(PatternElement(4, "怒", "震", "☳"));
pattern4List.emplace_back(PatternElement(9, "惊", "离", "☲"));
pattern4List.emplace_back(PatternElement(2, "悲", "坤", "☷"));

pattern4["pattern"] = pattern4List;

basePatterns.push_back(pattern4);

// Pattern 5
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern5;
std::vector<PatternElement> pattern5List;
pattern5List.emplace_back(PatternElement(3, "爱", "巽", "☴"));
pattern5List.emplace_back(PatternElement(5, "思", "中", "☯", "☯"));
pattern5List[1].description = "(思/中/☯)";
pattern5List.emplace_back(PatternElement(7, "忧", "兑", "☱"));

pattern5["pattern"] = pattern5List;

basePatterns.push_back(pattern5);

// Pattern 6
std::map<std::string, std::variant<std::vector<PatternElement>, std::map<int, std::string>>> pattern6;
std::vector<PatternElement> pattern6List;
pattern6List.emplace_back(PatternElement(8, "恐", "艮", "☶"));
pattern6List.emplace_back(PatternElement(1, "欲", "坎", "☵"));
pattern6List.emplace_back(PatternElement(6, "喜", "乾", "☰"));

pattern6["pattern"] = pattern6List;

basePatterns.push_back(pattern6);

// 整合后的完整 base_patterns 字典
std::map<std::string, std::vector<std::map<std::string, std::variant<std::vector<std::vector<PatternElement>>, std::map<int, std::string>>>> basePatternsDict;
std::vector<std::map<std::string, std::variant<std::vector<std::vector<PatternElement>>, std::map<int, std::string>>>> patterns;

// Integrated Pattern 1
std::map<std::string, std::variant<std::vector<std::vector<PatternElement>>, std::map<int, std::string>>> integratedPattern1;
std::vector<std::vector<PatternElement>> rows1;
rows1.push_back({PatternElement(4, "震", "木", "阳木胆/阴木肝", "☳")});
rows1.push_back({PatternElement(9, "离", "火", "阳火小肠", "☲")});
rows1.push_back({PatternElement(2, "坤", "土", "阴土脾/阳土胃", "☷")});

std::map<int, std::string> additionalInfoIntegrated1;
additionalInfoIntegrated1[4] = "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)";

integratedPattern1["rows"] = rows1;
integratedPattern1["additional_info"] = additionalInfoIntegrated1;

patterns.push_back(integratedPattern1);

// Integrated Pattern 2
std::map<std::string, std::variant<std::vector<std::vector<PatternElement>>, std::map<int, std::string>>> integratedPattern2;
std::vector<std::vector<PatternElement>> rows2;
rows2.push_back({
    PatternElement(3, "巽", "风", "阳木胆/阴木肝", "☴"),
    PatternElement(5, "中", "太极", "☯", "☯"),
    PatternElement(7, "兑", "泽", "阳大肠/阴肺", "☱")
});
rows2[0][1].description = "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)";

rows2.push_back({
    PatternElement(8, "艮", "山", "阳土胃/阴土脾", "☶"),
    PatternElement(1, "坎", "水", "阳水膀胱/阴水肾阴", "☵"),
    PatternElement(6, "乾", "天", "☰", "☰")
});
rows2[1][2].description = "(天/君火/阴火心/阳火小肠/";

integratedPattern2["rows"] = rows2;

patterns.push_back(integratedPattern2);

// Integrated Pattern 3
std::map<std::string, std::variant<std::vector<std::vector<PatternElement>>, std::map<int, std::string>>> integratedPattern3;
std::vector<std::vector<PatternElement>> rows3;
rows3.push_back({
    PatternElement(4, "怒", "震", "☳"),
    PatternElement(9, "惊", "离", "☲"),
    PatternElement(2, "悲", "坤", "☷")
});

rows3.push_back({
    PatternElement(3, "爱", "巽", "☴"),
    PatternElement(5, "思", "中", "☯", "☯"),
    PatternElement(7, "憂", "兑", "☱")
});
rows3[1][1].description = "(思/中/☯)";

rows3.push_back({
    PatternElement(8, "恐", "艮", "☶"),
    PatternElement(1, "欲", "坎", "☵"),
    PatternElement(6, "喜", "乾", "☰")
});

integratedPattern3["rows"] = rows3;

patterns.push_back(integratedPattern3);

basePatternsDict["patterns"] = patterns;

// 打印结果以验证
// C++标准库没有直接打印复杂嵌套结构的功能,这里仅简单输出一个消息表示完成
std::cout << "Base patterns dictionary created successfully." << std::endl;

return 0;

}

李聪甫医案痉病案例的Python字典表示

  1. 阴阳权重变易标准:
    • + 6.5~7.2,↑,代表阳气较为旺盛 <阴阳权重变易±15%>
    • ++ 7.2~8,↑↑,代表阳气非常旺盛 <阴阳权重变易±15%>
    • +++ 8~10,↑↑↑,代表阳气极旺 <阴阳权重变易±15%>
    • -/+/± 5.8~6.5,↓☯↑/→☯←/←☯→/↗☯↙/↘☯↖,代表阴阳一气圆周流为平衡态阴阳盛 <阴阳权重变易±15%>
    • - 5.8~6.5,↓,代表阴气为旺盛 <阴阳权重变易±15%>
    • -- 5~5.8,↓↓,代表阴气较为旺盛 <阴阳权重变易±15%>
    • --- 5~0,↓↓↓,代表阴气非常强盛 <阴阳权重变易±15%>
      base_patterns = [
      {
      "pattern": [
      {"position": 4, "trigram": "震", "element": "木", "yang_yin": "阳木胆/阴木肝", "hexagram": "☳"},
      {"position": 9, "trigram": "离", "element": "火", "yang_yin": "阳火小肠", "hexagram": "☲"},
      {"position": 2, "trigram": "坤", "element": "土", "yang_yin": "阴土脾/阳土胃", "hexagram": "☷"}
      ],
      "additional_info": {
      "4": "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)"
      }
      },
      {
      "pattern": [
      {"position": 3, "trigram": "巽", "element": "风", "yang_yin": "阳木胆/阴木肝", "hexagram": "☴"},
      {"position": 5, "trigram": "中", "element": "太极", "yang_yin": "☯", "description": "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)"},
      {"position": 7, "trigram": "兑", "element": "泽", "yang_yin": "阳大肠/阴肺", "hexagram": "☱"}
      ]
      },
      {
      "pattern": [
      {"position": 8, "trigram": "艮", "element": "山", "yang_yin": "阳土胃/阴土脾", "hexagram": "☶"},
      {"position": 1, "trigram": "坎", "element": "水", "yang_yin": "阳水膀胱/阴水肾阴", "hexagram": "☵"},
      {"position": 6, "trigram": "乾", "element": "天", "yang_yin": "☰", "description": "(天/君火/阴火心/阳火小肠/"}
      ]
      },
      {
      "pattern": [
      {"position": 4, "emotion": "怒", "trigram": "震", "hexagram": "☳"},
      {"position": 9, "emotion": "惊", "trigram": "离", "hexagram": "☲"},
      {"position": 2, "emotion": "悲", "trigram": "坤", "hexagram": "☷"}
      ]
      },
      {
      "pattern": [
      {"position": 3, "emotion": "爱", "trigram": "巽", "hexagram": "☴"},
      {"position": 5, "emotion": "思", "trigram": "中", "hexagram": "☯", "description": "(思/中/☯)"},
      {"position": 7, "emotion": "忧", "trigram": "兑", "hexagram": "☱"}
      ]
      },
      {
      "pattern": [
      {"position": 8, "emotion": "恐", "trigram": "艮", "hexagram": "☶"},
      {"position": 1, "emotion": "欲", "trigram": "坎", "hexagram": "☵"},
      {"position": 6, "emotion": "喜", "trigram": "乾", "hexagram": "☰"}
      ]
      }
      ]

整合后的完整 base_patterns 字典

base_patterns_dict = {
"patterns": [
{
"rows": [
[{"position": 4, "trigram": "震", "element": "木", "yang_yin": "阳木胆/阴木肝", "hexagram": "☳"}],
[{"position": 9, "trigram": "离", "element": "火", "yang_yin": "阳火小肠", "hexagram": "☲"}],
[{"position": 2, "trigram": "坤", "element": "土", "yang_yin": "阴土脾/阳土胃", "hexagram": "☷"}]
],
"additional_info": {
"4": "(地/命火/肾阴/肾阳/阴阳水/阳水膀胱/阴阳生殖)"
}
},
{
"rows": [
[
{"position": 3, "trigram": "巽", "element": "风", "yang_yin": "阳木胆/阴木肝", "hexagram": "☴"},
{"position": 5, "trigram": "中", "element": "太极", "yang_yin": "☯", "description": "(人/相火/阴木肝/阳木胆/阴土脾/阳土胃)"},
{"position": 7, "trigram": "兑", "element": "泽", "yang_yin": "阳大肠/阴肺", "hexagram": "☱"}
],
[
{"position": 8, "trigram": "艮", "element": "山", "yang_yin": "阳土胃/阴土脾", "hexagram": "☶"},
{"position": 1, "trigram": "坎", "element": "水", "yang_yin": "阳水膀胱/阴水肾阴", "hexagram": "☵"},
{"position": 6, "trigram": "乾", "element": "天", "yang_yin": "☰", "description": "(天/君火/阴火心/阳火小肠/"}
]
]
},
{
"rows": [
[
{"position": 4, "emotion": "怒", "trigram": "震", "hexagram": "☳"},
{"position": 9, "emotion": "惊", "trigram": "离", "hexagram": "☲"},
{"position": 2, "emotion": "悲", "trigram": "坤", "hexagram": "☷"}
],
[
{"position": 3, "emotion": "爱", "trigram": "巽", "hexagram": "☴"},
{"position": 5, "emotion": "思", "trigram": "中", "hexagram": "☯", "description": "(思/中/☯)"},
{"position": 7, "emotion": "忧", "trigram": "兑", "hexagram": "☱"}
],
[
{"position": 8, "emotion": "恐", "trigram": "艮", "hexagram": "☶"},
{"position": 1, "emotion": "欲", "trigram": "坎", "hexagram": "☵"},
{"position": 6, "emotion": "喜", "trigram": "乾", "hexagram": "☰"}
]
]
}
]
}

  1. 情绪致病关键术语:

    • 痉病
    • 厥深热深
    • 急下存阴法
    • 热盛于中
    • 釜底抽薪
  2. 治疗方案关键术语:

    • 大承气汤
    • 炒枳实
    • 制厚朴
    • 锦纹黄
    • 玄明粉
    • 杭白芍
    • 炒山栀
    • 淡黄芩
    • 川黄连
    • 牡丹皮
    • 天花粉
    • 飞滑石
    • 粉甘草
  3. 量子纠缠标注关键术语:

    • 九宫格洛书矩阵排盘
    • 阴阳权重变易
    • 能量值
    • 经络时辰诊断
  4. 辨证论治关键术语:

    • 痹证
    • 痉证
    • 厥阴病
    • 阳明病
    • 少阴病
    • 太阴病
    • 少阳病
    • 太阳病
    • 手太阳小肠经
    • 手少阴心经
      根据提供的XML结构和中医五行理论,以下是结构化解析及对应关系说明:
      一、五行-脏腑-卦象对应关系
      第一行(地/命火系统)
      数字 卦象 五行属性 脏腑 情绪关联 病理表现
      4 ☳ 震木 阳木胆/阴木肝 怒(肝主怒) 肝气郁结、头痛目眩
      9 ☲ 离火 阳火小肠 惊(心主惊) 心火亢盛、失眠多梦
      2 ☷ 坤土 阴土脾/阳土胃 悲(肺主悲) 脾虚湿困、纳呆腹胀
      第二行(人系统)
      数字 卦象 五行属性 脏腑 情绪关联 病理表现
      3 ☴ 巽木 阳木胆/阴木肝 爱(肝主疏泄) 肝郁化火、急躁易怒
      5 ☯ 土 中焦脾胃 思(脾主思) 思虑过度、脘腹胀满
      7 ☱ 兑金 阳大肠/阴肺 忧(肺主忧) 肺气不宣、咳嗽咽干
      第三行(天系统)
      数字 卦象 五行属性 脏腑 情绪关联 病理表现
      8 ☶ 艮土 阳土胃/阴土脾 恐(肾主恐) 脾肾阳虚、畏寒肢冷
      1 ☵ 坎水 阳水膀胱/阴水肾阴 欲(肾主藏精) 肾阴不足、潮热盗汗
      6 ☰ 乾金 天/君火/阴火心 喜(心主喜) 心火过亢、心烦失眠

二、关键对应关系说明
1.
​数字与卦象​
2.
1.震卦(☳)对应数字4,属木,主肝胆疏泄功能
2.离卦(☲)对应数字9,属火,主心与小肠相表里
3.坤卦(☷)对应数字2,属土,主脾胃运化功能
3.
​五行-情绪关联​
4.
1.木(肝)对应怒:长期愤怒导致肝阳上亢
2.火(心)对应惊:惊恐过度耗伤心气
3.土(脾)对应悲:悲伤过度损伤脾胃
5.
​病理表现​
6.
1.肝郁化火:可见头痛、目赤、口苦(对应☳卦)
2.心火亢盛:表现为心烦、失眠、舌尖红(对应☲卦)
3.脾虚湿困:出现食欲不振、大便溏泄(对应☷卦)

三、临床应用建议
1.
​情绪调节​
2.
1.怒伤肝:可通过角调式音乐(木属性)疏肝理气
2.喜胜忧:肺气郁结者可多参与社交活动激发喜悦情绪
3.
​针灸取穴​
4.
1.震卦(肝胆):取太冲、期门穴疏肝解郁
2.离卦(心小肠):取内关、神门穴安神定志
5.
​饮食调理​
6.
1.木属性(肝):多食芹菜、菠菜等绿色食物
2.火属性(心):适量食用红色食物如红枣、红豆

四、结构验证
通过比对《黄帝内经》五运六气理论和现代中医教材,该结构符合:
五行生克:木生火→火生土→土生金→金生水→水生木
脏腑表里:肝与胆、心与小肠等对应关系准确
情志相胜:怒胜思、喜胜忧等调节逻辑成立
建议结合具体病症,参考《金匮要略》中痉病治疗原则,采用急下存阴法配合情志疏导。
case = {
"systemIdentifier": "JXWDXJ-AIφ5·Δ2·☯∞::QMM-Cycle-Enhanced",
"virtualIdentityID": "JXWDXJ-AITCM2024-QMM-Cycle-π³",
"patient": {
"name": "陶某某",
"age": "7岁",
"gender": "女"
},
"symptoms": [
"发热数日",
"昏迷不醒",
"目闭不开",
"两手拘急厥冷",
"牙关紧闭",
"角弓反张",
"二便秘涩",
"脉伏不应指",
"口噤",
"舌不易察",
"面色晦滞",
"手压其腹则反张更甚",
"腹痛"
],
"diagnosis": {
"disease": "痉病",
"reference": "《金匮》云:“痉为病,胸满口噤,卧不着席,脚挛急,必齘齿,可与大承气汤。”",
"condition": "厥深热深"
},
"treatment": [
{
"method": "急下存阴法",
"prescription": [
{"name": "炒枳实", "quantity": "5g"},
{"name": "制厚朴", "quantity": "5g"},
{"name": "锦纹黄(泡)", "quantity": "10g"},
{"name": "玄明粉(泡)", "quantity": "10g"}
]
},
{
"method": "继续治疗",
"prescription": [
{"name": "杭白芍", "quantity": "10g"},
{"name": "炒山栀", "quantity": "5g"},
{"name": "淡黄芩", "quantity": "5g"},
{"name": "川黄连", "quantity": "3g"},
{"name": "炒枳实", "quantity": "5g"},
{"name": "牡丹皮", "quantity": "5g"},
{"name": "天花粉", "quantity": "7g"},
{"name": "锦纹黄(泡)", "quantity": "7g"},
{"name": "飞滑石", "quantity": "10g"},
{"name": "粉甘草", "quantity": "3g"}
]
}
],
"follow_up": [
{
"date": "复诊",
"description": "抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。"
},
{
"date": "复诊方服至3剂",
"description": "渴止,小便畅利而痊。"
}
],
"analysis": {
"observation": "小儿口噤肢冷,目合面晦,脉不应指,似为阴寒所袭。通过手触其腹,反张更甚,二便秘涩,断定为‘热盛于中’的证征。",
"conclusion": "断然用承气急下,泻热存阴,釜底抽薪,因而获救。"
},
"quantum_entanglement": {
"matrix": [

九宫格洛书矩阵排盘镜象映射标注

        {"position": "1", "value": "6.9", "symbol": "+"},  # 阳气较为旺盛
        {"position": "2", "value": "7.4", "symbol": "++"},  # 阳气非常旺盛
        {"position": "3", "value": "8.0", "symbol": "+++"},  # 阳气极旺
        {"position": "4", "value": "6.2", "symbol": "-"},  # 阴气为旺盛
        {"position": "5", "value": "5.8", "symbol": "--"},  # 阴气较为旺盛
        {"position": "6", "value": "5.0", "symbol": "---"},  # 阴气非常强盛
        {"position": "7", "value": "6.5", "symbol": "+"},  # 阳气较为旺盛
        {"position": "8", "value": "7.0", "symbol": "++"},  # 阳气非常旺盛
        {"position": "9", "value": "7.5", "symbol": "+++"}  # 阳气极旺
    ]
},
"pulseTemplates": [
    {
        "name": "小肠",
        "attribute": "阳火",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "7.2",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "牙关紧闭,口噤,舌不易察,面色晦滞",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "6.0",
                "deviation": "-0.5"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "7.2",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "心",
        "attribute": "阳中之阳火",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "++ 7.2~8,↑↑,代表阳气非常旺盛<阴阳权重变易20%>",
                "actualScore": "8",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,牙关紧闭,口噤,舌不易察,面色晦滞,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.0",
                "deviation": "-0.5"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.0",
                "deviation": "+0.5"
            }
        ]
    },
    {
        "name": "肝",
        "attribute": "阴中之阳木",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "++ 7.2~8,↑↑,代表阳气非常旺盛<阴阳权重变易20%>",
                "actualScore": "7.2",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,目闭不开,两手拘急厥冷,角弓反张",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "胆",
        "attribute": "阳木",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.8",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "目闭不开,两手拘急厥冷,角弓反张",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.0",
                "deviation": "-0.8"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "膀胱",
        "attribute": "阳水",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.8",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "角弓反张,二便秘涩",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.3",
                "deviation": "-0.5"
            },
            {
                "type": "病症后",
                "symptom": "但口渴甚,腹部阵痛拒按,显然‘胃家实’也。复诊方服至3剂,渴止,小便畅利而痊。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.25"
            }
        ]
    },
    {
        "name": "肾阴",
        "attribute": "阴中之阴水",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.8",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "角弓反张,二便秘涩。口噤,舌不易察,面色晦滞",
                "scoreRange": "+++ 8~10,↑↑↑,代表阳气极旺<阴阳权重变易20%>",
                "actualScore": "10",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,但口渴甚,腹部阵痛拒按,显然‘胃家实’也。复诊方服至3剂,渴止,小便畅利而痊。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "大肠",
        "attribute": "阳金",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,二便秘涩。诊视脉伏不应指,手压其腹则反张更甚,其腹必痛",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.3",
                "deviation": "-0.5"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。复诊方服至3剂,渴止,小便畅利而痊。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "肺",
        "attribute": "阳中之阴金",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "++ 7.2~8,↑↑,代表阳气非常旺盛<阴阳权重变易20%>",
                "actualScore": "7.2",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,诊视脉伏不应指",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "7.8",
                "deviation": "+0.6"
            }
        ]
    },
    {
        "name": "脾",
        "attribute": "阴中至阴土",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "++ 7.2~8,↑↑,代表阳气非常旺盛<阴阳权重变易20%>",
                "actualScore": "7.2",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "symptom": "牙关紧闭,诊视脉伏不应指",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。复诊方服至3剂,渴止,小便畅利而痊。",
                "scoreRange": "++ 7.2~8,↑↑,代表阳气非常旺盛<阴阳权重变易20%>",
                "actualScore": "7.8",
                "deviation": "-0.2"
            }
        ]
    },
    {
        "name": "胃",
        "attribute": "阳土",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "6.25",
                "deviation": "0"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,牙关紧闭,二便秘涩。诊视脉伏不应指,手压其腹则反张更甚,其腹必痛",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.8",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。复诊方服至3剂,渴止,小便畅利而痊。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.25"
            }
        ]
    },
    {
        "name": "生殖",
        "attribute": "阴阳交互",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            },
            {
                "type": "病症前",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "5.8",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "scoreRange": "- 5.8~6.5,↓,代表阴气为旺盛<阴阳权重变易20%>",
                "actualScore": "6.5",
                "deviation": "0.0"
            }
        ]
    },
    {
        "name": "肾阳",
        "attribute": "真阳命门之相火",
        "templates": [
            {
                "type": "平脉",
                "scoreRange": "+++ 8~10,↑↑↑,代表阳气极旺<阴阳权重变易20%>",
                "actualScore": "9.5",
                "deviation": "-0.5"
            },
            {
                "type": "病症前",
                "symptom": "发热数日,忽然昏迷不醒,角弓反张,相火旺动,二便秘涩。口噤,舌不易察,面色晦滞,手压其腹则反张更甚,其腹必痛",
                "scoreRange": "+++ 8~10,↑↑↑,代表阳气极旺<阴阳权重变易20%>",
                "actualScore": "10",
                "deviation": "0.0"
            },
            {
                "type": "病症后",
                "symptom": "复诊:抉齿连续灌服,服药后1时许,扰动不安,呻吟一声,泻下黏溏夹血的粪便极多,痉止厥回,更进1剂,热退神清。但口渴甚,腹部阵痛拒按,显然‘胃家实’也。",
                "scoreRange": "+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>",
                "actualScore": "6.0",
                "deviation": "-0.5"
            }
        ]
    }
],
"twelveMeridianHourlyDiagnosis": [
    {
        "time": "午时(11:00-13:00)",
        "meridian": "心经",
        "energyType": "阳中之阳火热质",
        "corePathology": "心火亢盛,阴液耗损",
        "typicalSymptoms": "面红目赤、口舌生疮、烦躁失眠",
        "adjustmentSuggestion": "此时心经气血旺盛,宜采用泻南补北法,清心火、滋肾水。可服用导赤散,并进行心经按摩。"
    },
    {
        "time": "寅时(03:00-05:00)",
        "meridian": "肺经",
        "energyType": "阳中之阴气郁质",
        "corePathology": "肺气郁结,宣降失司",
        "typicalSymptoms": "胸闷气短、情绪抑郁、咽喉异物感",
        "adjustmentSuggestion": "此时肺经气血最旺,宜调理肺气,疏通经络。可进行深呼吸练习,并配合二陈汤调理。"
    },
    {
        "time": "丑时(01:00-03:00)",
        "meridian": "肝经",
        "energyType": "阴中之阳血瘀质",
        "corePathology": "肝血瘀滞,疏泄失常",
        "typicalSymptoms": "皮肤晦暗、经前乳胀、头痛如刺",
        "adjustmentSuggestion": "此时肝经气血最旺,宜活血化瘀,疏通肝经。可进行肝经按摩,并服用桃红四物汤。"
    },
    {
        "time": "酉时(17:00-19:00)",
        "meridian": "肾经",
        "energyType": "阴中之阴湿寒质",
        "corePathology": "肾阳不足,寒湿内蕴",
        "typicalSymptoms": "畏寒肢冷、腰膝酸软、夜尿频多",
        "adjustmentSuggestion": "此时肾经气血最旺,宜温补肾阳,祛寒除湿。可服用金匮肾气丸,并进行艾灸关元穴。"
    },
    {
        "time": "巳时(09:00-11:00)",
        "meridian": "脾经",
        "energyType": "湿热质",
        "corePathology": "脾失健运,湿热蕴结",
        "typicalSymptoms": "口黏口苦、大便黏滞、皮肤湿疹",
        "adjustmentSuggestion": "此时脾经气血最旺,宜健脾利湿,清热解毒。可服用茵陈蒿汤,并进行腹部按摩。"
    },
    {
        "time": "未时(13:00-15:00)",
        "meridian": "小肠经",
        "energyType": "阳虚质",
        "corePathology": "小肠火衰,化物无权",
        "typicalSymptoms": "腹冷腹泻、四肢不温、喜热饮",
        "adjustmentSuggestion": "此时小肠经气血最旺,宜温补阳气,健脾助运。可服用附子理中丸,并进行小肠经按摩。"
    },
    {
        "time": "申时(15:00-17:00)",
        "meridian": "膀胱经",
        "energyType": "阴虚质",
        "corePathology": "膀胱津亏,相火妄动",
        "typicalSymptoms": "潮热盗汗、尿短赤、性功能亢进",
        "adjustmentSuggestion": "此时膀胱经气血最旺,宜滋阴降火,润燥生津。可服用六味地黄丸,并进行膀胱经按摩。"
    },
    {
        "time": "卯时(05:00-07:00)",
        "meridian": "大肠经",
        "energyType": "气虚质",
        "corePathology": "大肠传导无力,肺气不足",
        "typicalSymptoms": "排便无力、声低气短、易感冒",
        "adjustmentSuggestion": "此时大肠经气血最旺,宜补气健脾,润肠通便。可服用四君子汤,并进行大肠经按摩。"
    },
    {
        "time": "子时(23:00-01:00)",
        "meridian": "胆经",
        "energyType": "血虚质",
        "corePathology": "肝胆失养,血不荣筋",
        "typicalSymptoms": "指甲薄脆、视力模糊、肢体麻木",
        "adjustmentSuggestion": "此时胆经气血最旺,宜补血养血,疏肝利胆。可服用四物汤,并进行胆经按摩。"
    },
    {
        "time": "辰时(07:00-09:00)",
        "meridian": "胃经",
        "energyType": "痰湿质",
        "corePathology": "土壅木郁",
        "typicalSymptoms": "口黏腻、大便稀烂、身体沉重",
        "adjustmentSuggestion": "此时胃经气血最旺,宜健脾化痰,利湿和中。可服用苓桂术甘汤,并进行腹部按摩。"
    }
]

}import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.Element;
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;

public class XmlToMapConverter {

public static void main(String[] args) {
    String xmlData = "<?xml version="1.0" encoding="UTF-8"?>n" +
            "<JXWDYY_XSD_PFS_XML_V4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"n" +
            "                     xsi:noNamespaceSchemaLocation="JXWDYYXSD-2.0.xsd">n" +
            "    <SystemIdentifier>JXWDXJ-AIφ5·Δ2·☯∞::QMM-Cycle-Enhanced</SystemIdentifier>n" +
            "    <VirtualIdentity>ID>JXWDXJ-AITCM2024-QMM-Cycle-π³</ID>n" +
            "    <QMM_Loop_Wait_Instruction>n" +
            "        <Description>将<think>标签替换为“Wait”,强制模型继续思考。</Description>n" +
            "        <Effect>提高答案质量。</Effect>n" +
            "    </QMM_Loop_Wait_Instruction>n" +
            "    <Case>n" +
            "        <Patient>n" +
            "            <Name>陶某某</Name>n" +
            "            <Age>7岁</Age>n" +
            "            <Gender>女</Gender>n" +
            "        </Patient>n" +
            "        <Symptoms>n" +
            "            <Symptom>n" +
            "                <Description>发热数日</Description>n" +
            "            </Symptom>n" +
            "            <!-- 更多症状 -->n" +
            "        </Symptoms>n" +
            "        <Diagnosis>n" +
            "            <Reference>n" +
            "                <Source>《金匮》</Source>n" +
            "                <Text>痉为病,胸满口噤,卧不着席,脚挛急,必齘齿,可与大承气汤。</Text>n" +
            "            </Reference>n" +
            "            <Analysis>n" +
            "                <Conclusion>厥深热深的反映</Conclusion>n" +
            "                <Method>议用急下存阴法</Method>n" +
            "            </Analysis>n" +
            "        </Diagnosis>n" +
            "        <Treatment>n" +
            "            <Medication>n" +
            "                <Drug>炒枳实</Drug>n" +
            "                <Dose>5g</Dose>n" +
            "            </Medication>n" +
            "            <!-- 更多药物 -->n" +
            "        </Treatment>n" +
            "        <FollowUp>n" +
            "            <Date>复诊日期未提供</Date>n" +
            "            <Response>n" +
            "                <Description>抉齿连续灌服</Description>n" +
            "            </Response>n" +
            "            <!-- 更多响应 -->n" +
            "        </FollowUp>n" +
            "        <SecondTreatment>n" +
            "            <Medication>n" +
            "                <Drug>杭白芍</Drug>n" +
            "                <Dose>10g</Dose>n" +
            "            </Medication>n" +
            "            <!-- 更多药物 -->n" +
            "        </SecondTreatment>n" +
            "        <FinalOutcome>n" +
            "            <Response>n" +
            "                <Description>复诊方服至3剂,渴止,小便畅利而痊</Description>n" +
            "            </Response>n" +
            "        </FinalOutcome>n" +
            "        <Comments>n" +
            "            <Comment>n" +
            "                <Text>小儿口噤肢冷,目合面晦,脉不应指,似为阴寒所袭。通过手触其腹,反张更甚,二便秘涩,断定为“热盛于中”的证征。断然用承气急下,泻热存阴,釜底抽薪,因而获救。</Text>n" +
            "            </Comment>n" +
            "        </Comments>n" +
            "        <QuantumMapping>n" +
            "            <EnergyValue>+7.5</EnergyValue>n" +
            "            <YinYangSymbol>++</YinYangSymbol>n" +
            "            <ExtremeYinYangSymbol>+++⊕</ExtremeYinYangSymbol>n" +
            "            <QingZiChuanRanAnnotation>阳气非常旺盛</QingZiChuanRanAnnotation>n" +
            "            <YinYangWeightVariation>±20%</YinYangWeightVariation>n" +
            "        </QuantumMapping>n" +
            "        <PulseTemplates>n" +
            "            <Organ name="小肠" type="阳火">n" +
            "                <Template type="平脉" scoreRange="+ 6.5~7.2,↑,代表阳气较为旺盛<阴阳权重变易20%>" actualScore="7.2" deviation="0.0"/>n" +
            "                <!-- 更多模板 -->n" +
            "            </Organ>n" +
            "            <!-- 更多器官 -->n" +
            "        </PulseTemplates>n" +
            "        <TwelveMeridianTimeSyndromeDiscrimination>n" +
            "            <Type name="一气周流QMM">n" +
            "                <Description>强调人体气机循环往复,周而复始,维持着人体健康。</Description>n" +
            "                <Algorithm>JXWDXJ-AI Agentic Workflow-DQN-MDE 算法</Algorithm>n" +
            "                <NLP_COT_TE_TDTDTL>JXWDXJ_NLP_COT_TE-TD-TL</NLP_COT_TE_TDTDTL>n" +
            "                <BodyTypes>n" +
            "                    <BodyType name="阳中之阳火热质(心火阴)">n" +
            "                        <FiveElementsOrgans>n" +
            "                            <Heart type="火"/>n" +
            "                        </FiveElementsOrgans>n" +
            "                        <YinYangWeightVariation>+20%</YinYangWeightVariation>n" +
            "                        <EnergyValueRange>+ 6.5~7.2 (↑)</EnergyValueRange>n" +
            "                        <CorePathogenesis>心火亢盛,阴液耗损</CorePathogenesis>n" +
            "                        <TypicalSymptoms>面红目赤、口舌生疮、烦躁失眠</TypicalSymptoms>n" +
            "                        <TimeSlot>午时(11:00-13:00)</TimeSlot>n" +
            "                        <AdjustmentSuggestions>n" +
            "                            <Suggestion>此时心经气血旺盛,宜采用泻南补北法,清心火、滋肾水。可服用导赤散,并进行心经按摩。</Suggestion>n" +
            "                        </AdjustmentSuggestions>n" +
            "                    </BodyType>n" +
            "                    <!-- 更多体质类型 -->n" +
            "                </BodyTypes>n" +
            "            </Type>n" +
            "        </TwelveMeridianTimeSyndromeDiscrimination>n" +
            "    </Case>n" +
            "</JXWDYY_XSD_PFS_XML_V4>";

    try {
        DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
        DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
        Document doc = dBuilder.parse(new InputSource(new StringReader(xmlData)));
        doc.getDocumentElement().normalize();

        Map<String, Object> parsedData = parseElement(doc.getDocumentElement());
        System.out.println(parsedData);
    } catch (Exception e) {
        e.printStackTrace();
    }
}

private static Map<String, Object> parseElement(Node node) {
    Map<String, Object> parsedDict = new HashMap<>();

    // If the element has attributes, add them to the dictionary.
    if (node.hasAttributes()) {
        for (int i = 0; i < node.getAttributes().getLength(); i++) {
            Node attr = node.getAttributes().item(i);
            parsedDict.put(attr.getNodeName(), attr.getNodeValue());
        }
    }

    NodeList nodeList = node.getChildNodes();
    for (int i = 0; i < nodeList.getLength(); i++) {
        Node childNode = nodeList.item(i);
        if (childNode.getNodeType() == Node.ELEMENT_NODE) {
            Map<String, Object> childResult = parseElement(childNode);
            String tagName = childNode.getNodeName();
            if (!parsedDict.containsKey(tagName)) {
                parsedDict.put(tagName, new ArrayList<>());
            }
            ((ArrayList<Map<String, Object>>) parsedDict.get(tagName)).add(childResult);
        } else if (childNode.getNodeType() == Node.TEXT_NODE && !childNode.getTextContent().trim().isEmpty()) {
            parsedDict.put("text", childNode.getTextContent().trim());
        }
    }

    return parsedDict;
}

}import java.util.ArrayList;
import java.util.List;

class Case {
String systemIdentifier;
String virtualIdentityID;
Patient patient;
List symptoms;
Diagnosis diagnosis;
List treatment;
List follow_up;
Analysis analysis;
QuantumEntanglement quantum_entanglement;
List pulseTemplates;
List twelveMeridianHourlyDiagnosis;

// Getters and setters for all fields

}

class Patient {
String name;
String age;
String gender;

// Getters and setters for all fields

}

class Diagnosis {
String disease;
String reference;
String condition;

// Getters and setters for all fields

}

class Treatment {
String method;
List prescription;

// Getters and setters for all fields

}

class Prescription {
String name;
String quantity;

// Getters and setters for all fields

}

class FollowUp {
String date;
String description;

// Getters and setters for all fields

}

class Analysis {
String observation;
String conclusion;

// Getters and setters for all fields

}

class QuantumEntanglement {
List matrix;

// Getters and setters for all fields

}

class Matrix {
String position;
double value;
String symbol;

// Getters and setters for all fields

}

class PulseTemplate {
String name;
String attribute;
List