feat(m0001): update back-shu template ct0012 schema

This commit is contained in:
ShivaniKhaire 2026-12-05 11:33:53 +05:30
parent e2a81087a5
commit 7b7d03b85b
1 changed files with 176 additions and 71 deletions

View File

@ -1,7 +1,7 @@
{
"name": "point_categories_back_shu_content",
"code": "m0001_ct0012",
"description": "",
"description": "back_shu",
"content_kind": "point",
"is_searchable": false,
"is_filterable": false,
@ -26,6 +26,18 @@
"data_type": "text",
"default": ""
},
{
"name": "Heading",
"code": "heading",
"data_type": "text",
"default": ""
},
{
"name": "Alias",
"code": "alias",
"data_type": "text",
"default": ""
},
{
"name": "point_codes",
"code": "point_codes",
@ -58,77 +70,123 @@
}
},
{
"name": "The Back-Shu points of the twelve Zangfu",
"code": "points",
"data_type": "json",
"default": {},
"metadata": {
"value_contract": {
"kind": "json_with_content_refs",
"contract_version": "1.0",
"reference_type": "content_ref",
"target_module_code": "m0001",
"target_template_code": "m0001_ct0003",
"authoring_identity": "source_code",
"persisted_identity": "source_key",
"runtime_identity": "content_id",
"reference_paths": [
"$.*"
],
"rules": {
"plain_text_allowed": false,
"source_code_authoring_only": true,
"source_key_persisted_only": true,
"content_id_runtime_only": true,
"do_not_infer_reference_from_label": true
},
"notes": "Zangfu labels remain keys; point-valued leaves become explicit content_ref objects."
}
}
"name": "Description",
"code": "description",
"data_type": "text",
"multivalue": true,
"default": []
},
{
"name": "The functions of the Back-Shu points",
"code": "functions",
"name": "General Information",
"code": "general_information",
"definition_kind": "object",
"children": [
{
"name": "Deficiency and Cold Disorders",
"code": "deficiency_and_cold_disorders",
"name": "Location",
"code": "Location",
"data_type": "text",
"multivalue": true,
"default": []
"definition_kind": "scalar",
"default": ""
},
{
"name": "Excess Disorders",
"code": "excess_disorders",
"name": "Actions",
"code": "Actions",
"data_type": "text",
"multivalue": true,
"default": []
"definition_kind": "scalar",
"default": ""
},
{
"name": "Sensory Organ Disorders",
"code": "sensory_organ_disorders",
"name": "Diagnosis",
"code": "Diagnosis",
"data_type": "text",
"multivalue": true,
"default": []
"definition_kind": "scalar",
"default": ""
},
{
"name": "Yin vs. Yang",
"code": "Yin_vs_Yang",
"definition_kind": "object",
"children": [
{
"name": "Yang Back-Shu Points",
"code": "Yang_Back_Shu_points",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Pairing with Front-Mu Points",
"code": "Pairing_with_Front_Mu_points",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
}
]
}
]
},
{
"name": "Clinical Application",
"code": "clinical_application",
"name": "Points",
"code": "points",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"name": "Diagnosis",
"code": "diagnosis",
"name": "Organ",
"code": "organ",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Point",
"code": "point",
"data_type": "json",
"definition_kind": "scalar",
"required": true,
"default": null,
"is_multivalue": false,
"metadata": {
"value_contract": {
"kind": "content_ref",
"contract_version": "1.0",
"reference_type": "content_ref",
"target_module_code": "m0001",
"target_template_code": "m0001_ct0003",
"cardinality": "one",
"authoring_identity": "source_code",
"persisted_identity": "source_key",
"runtime_identity": "content_id",
"resolution_pipeline": "source_code -> source_key -> content_id",
"rules": {
"explicit_reference_required_when_value_present": true,
"plain_text_allowed": true,
"source_code_authoring_only": true,
"source_key_persisted_only": true,
"content_id_runtime_only": true,
"do_not_infer_reference_from_label": true
},
"notes": "Normalize point labels to canonical ct0003 source_code during data migration."
}
}
},
{
"name": "Pinyin Name",
"code": "pinyin_name",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Actions",
"code": "actions",
"data_type": "text",
"multivalue": true,
"default": []
},
{
"name": "Therapy",
"code": "therapy",
"name": "Indications",
"code": "indications",
"data_type": "text",
"multivalue": true,
"default": []
@ -277,61 +335,108 @@
"attribute_key": "m0001_ct0012.title",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 1
},
{
"attribute_key": "m0001_ct0012.heading",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0012.alias",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0012.point_codes",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0001_ct0012.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 4
},
{
"attribute_key": "m0001_ct0012.general_information",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 5
},
{
"attribute_key": "m0001_ct0012.general_information.Location",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0012.general_information.Actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0012.general_information.Diagnosis",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0012.general_information.Yin_vs_Yang",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0012.general_information.Yin_vs_Yang.Yang_Back_Shu_points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0012.general_information.Yin_vs_Yang.Pairing_with_Front_Mu_points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0012.points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 6
},
{
"attribute_key": "m0001_ct0012.functions",
"attribute_key": "m0001_ct0012.points.organ",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0012.functions.deficiency_and_cold_disorders",
"attribute_key": "m0001_ct0012.points.point",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 1
},
{
"attribute_key": "m0001_ct0012.functions.excess_disorders",
"attribute_key": "m0001_ct0012.points.pinyin_name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 2
},
{
"attribute_key": "m0001_ct0012.functions.sensory_organ_disorders",
"attribute_key": "m0001_ct0012.points.actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 3
},
{
"attribute_key": "m0001_ct0012.clinical_application",
"attribute_key": "m0001_ct0012.points.indications",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0012.clinical_application.diagnosis",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0012.clinical_application.therapy",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 4
},
{
"attribute_key": "m0001_ct0012.link",