feat(m0001): update luo-connecting template ct0010 schema

This commit is contained in:
ShivaniKhaire 2026-12-05 11:33:53 +05:30
parent 23abf5baa9
commit 296595fa8a
1 changed files with 139 additions and 233 deletions

View File

@ -26,6 +26,12 @@
"data_type": "text",
"default": ""
},
{
"name": "Alias",
"code": "alias",
"data_type": "text",
"default": ""
},
{
"name": "point_codes",
"code": "point_codes",
@ -58,107 +64,76 @@
}
},
{
"name": "Major LUO Point of the Spleen",
"code": "major_luo_point_of_the_spleen",
"definition_kind": "object",
"name": "Description",
"code": "description",
"data_type": "text",
"multivalue": true,
"default": []
},
{
"name": "General Information",
"code": "general_information",
"definition_kind": "object",
"children": [
{
"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": "Use content_ref for canonical acupuncture points; preserve exceptional descriptive values only where no canonical point exists."
}
}
},
{
"name": "description",
"code": "description",
"name": "Location",
"code": "Location",
"data_type": "text",
"definition_kind": "scalar",
"required": true
"default": ""
},
{
"name": "Actions",
"code": "Actions",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Diagnosis",
"code": "Diagnosis",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Yin vs. Yang",
"code": "Yin_vs_Yang",
"definition_kind": "object",
"children": [
{
"name": "Yin Channel",
"code": "Yin_channel",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
},
{
"name": "Yang Channel",
"code": "Yang_channel",
"data_type": "text",
"definition_kind": "scalar",
"default": ""
}
]
}
]
},
{
"name": "Major LUO Point of the Stomach",
"code": "major_luo_point_of_the_stomach",
"name": "Points",
"code": "points",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"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": "Use content_ref for canonical acupuncture points; preserve exceptional descriptive values only where no canonical point exists."
}
}
},
{
"name": "description",
"code": "description",
"name": "Meridian",
"code": "meridian",
"data_type": "text",
"definition_kind": "scalar",
"required": true
}
]
},
{
"name": "Treating disorders of their interiorly-exteriorly related channel or Zangfu",
"code": "treating_disorders_of_their_interiorly_exteriorly_related_channel_or_zangfu",
"definition_kind": "object",
"multivalue": true,
"children": [
"default": ""
},
{
"name": "point",
"name": "Point",
"code": "point",
"data_type": "json",
"definition_kind": "scalar",
@ -185,111 +160,37 @@
"content_id_runtime_only": true,
"do_not_infer_reference_from_label": true
},
"notes": "Use content_ref for canonical acupuncture points; preserve exceptional descriptive values only where no canonical point exists."
"notes": "Normalize point labels to canonical ct0003 source_code during data migration."
}
}
},
{
"name": "description",
"code": "description",
"name": "Pinyin Name",
"code": "pinyin_name",
"data_type": "text",
"definition_kind": "scalar",
"required": true
}
]
},
{
"name": "Treating disorders in regions reached by the Luo-connecting channel",
"code": "treating_disorders_in_regions_reached_b_the_luo_connecting_channel",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"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": "Use content_ref for canonical acupuncture points; preserve exceptional descriptive values only where no canonical point exists."
}
}
"default": ""
},
{
"name": "description",
"code": "description",
"name": "Connection",
"code": "connection",
"data_type": "text",
"definition_kind": "scalar",
"required": true
}
]
},
{
"name": "Treating psycho-emotional disorders",
"code": "treating_psycho_emotional_disorders",
"definition_kind": "object",
"multivalue": true,
"children": [
{
"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": "Use content_ref for canonical acupuncture points; preserve exceptional descriptive values only where no canonical point exists."
}
}
"default": ""
},
{
"name": "indications",
"name": "Actions",
"code": "actions",
"data_type": "text",
"multivalue": true,
"default": []
},
{
"name": "Indications",
"code": "indications",
"data_type": "text",
"multivalue": true,
"definition_kind": "scalar",
"required": true
"default": []
}
]
},
@ -435,103 +336,108 @@
"attribute_key": "m0001_ct0010.title",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 1
},
{
"attribute_key": "m0001_ct0010.alias",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0010.point_codes",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"visibility": "hide"
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_spleen",
"attribute_key": "m0001_ct0010.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0010.general_information",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 4
},
{
"attribute_key": "m0001_ct0010.general_information.Location",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_spleen.point",
"attribute_key": "m0001_ct0010.general_information.Actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0010.general_information.Diagnosis",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 2
},
{
"attribute_key": "m0001_ct0010.general_information.Yin_vs_Yang",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "m0001_ct0010.general_information.Yin_vs_Yang.Yin_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_spleen.description",
"attribute_key": "m0001_ct0010.general_information.Yin_vs_Yang.Yang_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "m0001_ct0010.points",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 5
},
{
"attribute_key": "m0001_ct0010.points.meridian",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_stomach",
"attribute_key": "m0001_ct0010.points.point",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 1
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_stomach.point",
"attribute_key": "m0001_ct0010.points.pinyin_name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 2
},
{
"attribute_key": "m0001_ct0010.major_luo_point_of_the_stomach.description",
"attribute_key": "m0001_ct0010.points.connection",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 3
},
{
"attribute_key": "m0001_ct0010.treating_disorders_of_their_interiorly_exteriorly_related_channel_or_zangfu",
"attribute_key": "m0001_ct0010.points.actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 4
},
{
"attribute_key": "m0001_ct0010.treating_disorders_of_their_interiorly_exteriorly_related_channel_or_zangfu.point",
"attribute_key": "m0001_ct0010.points.indications",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_disorders_of_their_interiorly_exteriorly_related_channel_or_zangfu.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_disorders_in_regions_reached_b_the_luo_connecting_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_disorders_in_regions_reached_b_the_luo_connecting_channel.point",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_disorders_in_regions_reached_b_the_luo_connecting_channel.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_psycho_emotional_disorders",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_psycho_emotional_disorders.point",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0001_ct0010.treating_psycho_emotional_disorders.indications",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
"display_order": 5
},
{
"attribute_key": "m0001_ct0010.link",