feat(m0001): update xi-cleft category template and point category data #65

Open
shivani wants to merge 17 commits from fix/m0001-xi-cleft-category into main
1 changed files with 204 additions and 91 deletions
Showing only changes of commit fd0360ca9e - Show all commits

View File

@ -1,7 +1,7 @@
{
"name": "point_categories_front-mu_content",
"code": "m0001_ct0013",
"description": "",
"description": "front_mu",
"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",
@ -57,78 +69,6 @@
}
}
},
{
"name": "images",
"code": "images",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"name": "image_name",
"code": "image_name",
"data_type": "text",
"definition_kind": "scalar",
"required": true
},
{
"name": "image_path",
"code": "image_path",
"data_type": "text",
"definition_kind": "scalar",
"required": true
}
]
},
{
"name": "default_image",
"code": "default_image",
"definition_kind": "object",
"children": [
{
"name": "image_name",
"code": "image_name",
"data_type": "text",
"definition_kind": "scalar",
"required": true
},
{
"name": "image_path",
"code": "image_path",
"data_type": "text",
"definition_kind": "scalar",
"required": true
}
]
},
{
"name": "The Front Mu points of the twelve Zangfu",
"code": "front_mu_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",
@ -137,20 +77,122 @@
"default": []
},
{
"name": "Clinical Application",
"code": "clinical_application",
"name": "General Information",
"code": "general_information",
"definition_kind": "object",
"children": [
{
"name": "Location",
"code": "Location",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Actions",
"code": "Actions",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Diagnosis",
"code": "diagnosis",
"code": "Diagnosis",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Yin vs. Yang",
"code": "Yin_vs_Yang",
"definition_kind": "object",
"children": [
{
"name": "Yin Front-Mu Points",
"code": "Yin_Front_Mu_points",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Pairing with Back-Shu Points",
"code": "Pairing_with_Back_Shu_points",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
}
]
}
]
},
{
"name": "Points",
"code": "points",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"name": "Number",
"code": "number",
"data_type": "number",
"definition_kind": "scalar"
},
{
"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": []
@ -299,44 +341,115 @@
"attribute_key": "m0001_ct0013.title",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 1
},
{
"attribute_key": "m0001_ct0013.heading",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0013.alias",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0013.point_codes",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0013.front_mu_points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"visibility": "hide"
},
{
"attribute_key": "m0001_ct0013.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 4
},
{
"attribute_key": "m0001_ct0013.clinical_application",
"attribute_key": "m0001_ct0013.general_information",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 5
},
{
"attribute_key": "m0001_ct0013.general_information.Location",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0013.clinical_application.diagnosis",
"attribute_key": "m0001_ct0013.general_information.Actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0013.general_information.Diagnosis",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0013.general_information.Yin_vs_Yang",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0013.general_information.Yin_vs_Yang.Yin_Front_Mu_points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0013.clinical_application.therapy",
"attribute_key": "m0001_ct0013.general_information.Yin_vs_Yang.Pairing_with_Back_Shu_points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0013.points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 6
},
{
"attribute_key": "m0001_ct0013.points.number",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0013.points.organ",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0013.points.point",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0013.points.pinyin_name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0013.points.actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 4
},
{
"attribute_key": "m0001_ct0013.points.indications",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 5
},
{
"attribute_key": "m0001_ct0013.link",
"empty_behavior": "hide",