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 139 additions and 233 deletions
Showing only changes of commit 296595fa8a - Show all commits

View File

@ -26,6 +26,12 @@
"data_type": "text", "data_type": "text",
"default": "" "default": ""
}, },
{
"name": "Alias",
"code": "alias",
"data_type": "text",
"default": ""
},
{ {
"name": "point_codes", "name": "point_codes",
"code": "point_codes", "code": "point_codes",
@ -58,107 +64,76 @@
} }
}, },
{ {
"name": "Major LUO Point of the Spleen", "name": "Description",
"code": "major_luo_point_of_the_spleen", "code": "description",
"definition_kind": "object", "data_type": "text",
"multivalue": true, "multivalue": true,
"default": []
},
{
"name": "General Information",
"code": "general_information",
"definition_kind": "object",
"children": [ "children": [
{ {
"name": "point", "name": "Location",
"code": "point", "code": "Location",
"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",
"data_type": "text", "data_type": "text",
"definition_kind": "scalar", "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", "name": "Points",
"code": "major_luo_point_of_the_stomach", "code": "points",
"definition_kind": "object", "definition_kind": "object",
"multivalue": true, "multivalue": true,
"children": [ "children": [
{ {
"name": "point", "name": "Meridian",
"code": "point", "code": "meridian",
"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",
"data_type": "text", "data_type": "text",
"definition_kind": "scalar", "definition_kind": "scalar",
"required": true "default": ""
} },
]
},
{
"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": [
{ {
"name": "point", "name": "Point",
"code": "point", "code": "point",
"data_type": "json", "data_type": "json",
"definition_kind": "scalar", "definition_kind": "scalar",
@ -185,111 +160,37 @@
"content_id_runtime_only": true, "content_id_runtime_only": true,
"do_not_infer_reference_from_label": 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", "name": "Pinyin Name",
"code": "description", "code": "pinyin_name",
"data_type": "text", "data_type": "text",
"definition_kind": "scalar", "definition_kind": "scalar",
"required": true "default": ""
}
]
},
{
"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."
}
}
}, },
{ {
"name": "description", "name": "Connection",
"code": "description", "code": "connection",
"data_type": "text", "data_type": "text",
"definition_kind": "scalar", "definition_kind": "scalar",
"required": true "default": ""
}
]
},
{
"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."
}
}
}, },
{ {
"name": "indications", "name": "Actions",
"code": "actions",
"data_type": "text",
"multivalue": true,
"default": []
},
{
"name": "Indications",
"code": "indications", "code": "indications",
"data_type": "text", "data_type": "text",
"multivalue": true, "multivalue": true,
"definition_kind": "scalar", "default": []
"required": true
} }
] ]
}, },
@ -435,103 +336,108 @@
"attribute_key": "m0001_ct0010.title", "attribute_key": "m0001_ct0010.title",
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "show", "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", "attribute_key": "m0001_ct0010.point_codes",
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "show", "visibility": "hide"
"display_order": 0
}, },
{ {
"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", "empty_behavior": "hide",
"visibility": "show", "visibility": "show",
"display_order": 0 "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", "empty_behavior": "hide",
"visibility": "show", "visibility": "show",
"display_order": 0 "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", "empty_behavior": "hide",
"visibility": "show", "visibility": "show",
"display_order": 0 "display_order": 0
}, },
{ {
"attribute_key": "m0001_ct0010.major_luo_point_of_the_stomach", "attribute_key": "m0001_ct0010.points.point",
"empty_behavior": "hide", "empty_behavior": "hide",
"visibility": "show", "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", "empty_behavior": "hide",
"visibility": "show", "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", "empty_behavior": "hide",
"visibility": "show", "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", "empty_behavior": "hide",
"visibility": "show", "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", "empty_behavior": "hide",
"visibility": "show", "visibility": "show",
"display_order": 0 "display_order": 5
},
{
"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
}, },
{ {
"attribute_key": "m0001_ct0010.link", "attribute_key": "m0001_ct0010.link",