feat(m0011): update eight principles structure, overview and templates #6

Merged
amit merged 1 commits from eight-principles into main 2026-09-24 10:01:59 +00:00
7 changed files with 71 additions and 39 deletions

View File

@ -0,0 +1,9 @@
{
"contents": [
{
"title": "Identification of patterns according to Eight Principles",
"code": "identification_of_patterns_according_to_eight_principles",
"content": "The eight principles include exterior, interior, cold, heat, deficiency, excess, yin and yang. Syndrome differentiation (pattern identification) of the eight principles is an essential paradigm in the Chinese medicine system.\nPattern identification of the eight principles aims to tell about the disease location, the pathogenic nature and the strength between antipathogenic qi and pathogenic factors, thus generalizing the condition into eight categories.\nThe eight principles can be divided into four pairs: interior/exterior for the depth of pathogens; cold/heat for the disease nature; deficiency/excess for the strength between antipathogenic qi and pathogenic factors; and yin/yang for the preponderance of yin and yang. However, yin and yang can also generalize the other six principles: exterior, heat and excess are ascribed to yang, and interior, cold and deficiency to yin.\nTwo or more principles may occur concurrently, such as an exterior cold syndrome and an interior deficiency cold syndrome. A combined deficiency and excess may also be present. The principles may transform into each other as well, such as cold transforming into heat, or the exterior entering the interior. Additionally, a true cold may sometimes manifest as a false heat or vice versa."
}
]
}

View File

@ -1,25 +1,12 @@
{
"contents": [
{
"name": "Eight Principles",
"sort_order": 0,
"content_count": 1,
"content_label": "content",
"link": {
"type": "template_ref",
"label": "Eight Principles",
"target": {
"module_code": "m0011",
"template_code": "m0011_ct0001"
}
},
"code": "eight_principles"
},
{
"name": "Exterior-Interior",
"sort_order": 1,
"content_count": 1,
"content_label": "content",
"content_label": "principle",
"code": "exterior_interior",
"description": "Differentiation of an exterior from an interior syndrome identifies the location and depth of disease.",
"link": {
"type": "template_ref",
"label": "Exterior-Interior",
@ -27,38 +14,55 @@
"module_code": "m0011",
"template_code": "m0011_ct0002"
}
},
"code": "exterior_interior"
}
},
{
"name": "Deficiency-Excess Patterns",
"name": "Cold-Heat",
"sort_order": 2,
"content_count": 1,
"content_label": "content",
"content_label": "principle",
"code": "cold_heat",
"description": "Differentiation of a cold syndrome from a heat syndrome identifies the pathogenic nature.",
"link": {
"type": "template_ref",
"label": "Deficiency-Excess Patterns",
"label": "Cold-Heat",
"target": {
"module_code": "m0011",
"template_code": "m0011_ct0001"
}
}
},
{
"name": "Deficiency-Excess",
"sort_order": 3,
"content_count": 1,
"content_label": "principle",
"code": "deficiency_excess",
"description": "Differentiation of deficiency from excess identifies the relative strength of antipathogenic qi and pathogens.",
"link": {
"type": "template_ref",
"label": "Deficiency-Excess",
"target": {
"module_code": "m0011",
"template_code": "m0011_ct0003"
}
},
"code": "deficiency_excess_patterns"
}
},
{
"name": "Eight Principles Syndromes",
"sort_order": 3,
"name": "Yin-Yang",
"sort_order": 4,
"content_count": 1,
"content_label": "content",
"content_label": "principle",
"code": "yin_yang",
"description": "Yin and Yang are the general principles that summarize and synthesize the other six principles.",
"link": {
"type": "template_ref",
"label": "Eight Principles Syndromes",
"label": "Yin-Yang",
"target": {
"module_code": "m0011",
"template_code": "m0011_ct0004"
}
},
"code": "eight_principles_syndromes"
}
}
]
}

View File

@ -309,7 +309,7 @@
"is_active": true,
"mode": "single",
"renderers": {
"detail": "pattern_detail"
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"

View File

@ -268,7 +268,7 @@
"is_active": true,
"mode": "single",
"renderers": {
"detail": "pattern_detail"
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"

View File

@ -300,6 +300,12 @@
"code": "yin_deficiency",
"data_type": "json",
"default": {}
},
{
"name": "summary",
"code": "summary",
"data_type": "text",
"default": ""
}
],
"sort_order": 1,
@ -310,7 +316,7 @@
"is_active": true,
"mode": "single",
"renderers": {
"detail": "pattern_detail"
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"

View File

@ -286,7 +286,7 @@
"is_active": true,
"mode": "single",
"renderers": {
"detail": "pattern_detail"
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"

View File

@ -18,6 +18,13 @@
"data_type": "text",
"default": ""
},
{
"name": "Description",
"code": "description",
"data_type": "text",
"default": "",
"is_searchable": true
},
{
"name": "Sort Order",
"code": "sort_order",
@ -213,9 +220,9 @@
"is_active": true,
"mode": "collection",
"renderers": {
"collection": "module_catalog_collection",
"collection_item": "module_catalog_card",
"detail": "module_catalog_detail"
"collection": "eight_principles_collection",
"collection_item": "eight_principles_card",
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"
@ -227,6 +234,12 @@
"visibility": "show",
"display_order": 10
},
{
"attribute_key": "m0011_ct0005.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 15
},
{
"attribute_key": "m0011_ct0005.code",
"empty_behavior": "hide",
@ -296,9 +309,9 @@
"presentation": {
"mode": "collection",
"renderers": {
"detail": "tcm_pattern_list_detail",
"collection": "tcm_pattern_list_collection",
"collection_item": "tcm_pattern_list_card"
"detail": "eight_principles_detail",
"collection": "eight_principles_collection",
"collection_item": "eight_principles_card"
}
},
"search": {