From df7d76e2e39a89856148c48a85db440112d35691 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Sat, 5 Dec 2026 11:33:53 +0530 Subject: [PATCH] feat(m0001): add yuan-luo template ct0026 schema --- .../templates/m0001_ct0026.json | 649 ++++++++++++++++++ 1 file changed, 649 insertions(+) create mode 100644 m0001-acupuncture-points/templates/m0001_ct0026.json diff --git a/m0001-acupuncture-points/templates/m0001_ct0026.json b/m0001-acupuncture-points/templates/m0001_ct0026.json new file mode 100644 index 0000000..e662911 --- /dev/null +++ b/m0001-acupuncture-points/templates/m0001_ct0026.json @@ -0,0 +1,649 @@ +{ + "name": "point_categories_yuan_luo_content", + "code": "m0001_ct0026", + "description": "yuan_luo", + "content_kind": "point", + "is_searchable": false, + "is_filterable": false, + "attribute_prefix_code": "m0001_ct0026", + "attribute_prefix_name": "yuan_luo", + "attribute_defs": [ + { + "name": "Name", + "code": "name", + "data_type": "text", + "default": "" + }, + { + "name": "Code", + "code": "code", + "data_type": "text", + "default": "" + }, + { + "name": "Title", + "code": "title", + "data_type": "text", + "default": "" + }, + { + "name": "Alias", + "code": "alias", + "data_type": "text", + "default": "" + }, + { + "name": "point_codes", + "code": "point_codes", + "data_type": "json", + "multivalue": true, + "default": [], + "definition_kind": "scalar", + "is_multivalue": true, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "m0001", + "target_template_code": "m0001_ct0003", + "cardinality": "many", + "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": false, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + } + } + } + }, + { + "name": "Description", + "code": "description", + "data_type": "text", + "multivalue": true, + "default": [] + }, + { + "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", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Yuan vs. Luo", + "code": "Yuan_vs_Luo", + "definition_kind": "object", + "children": [ + { + "name": "For Deficiency (Xu) of the Primary Meridian", + "code": "For Deficiency (Xu) of the Primary Meridian", + "definition_kind": "object", + "children": [ + { + "name": "Host (Yuan-Source Point)", + "code": "Host (Yuan-Source Point)", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Guest (Luo-Connecting Point)", + "code": "Guest (Luo-Connecting Point)", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + } + ] + }, + { + "name": "For Excess (Shi) of the Primary Meridian", + "code": "For Excess (Shi) of the Primary Meridian", + "definition_kind": "object", + "children": [ + { + "name": "Host (Yuan-Source Point)", + "code": "Host (Yuan-Source Point)", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Guest (Luo-Connecting Point)", + "code": "Guest (Luo-Connecting Point)", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + } + ] + } + ] + } + ] + }, + { + "name": "Pairings", + "code": "pairings", + "definition_kind": "object", + "multivalue": true, + "children": [ + { + "name": "Number", + "code": "number", + "data_type": "number", + "definition_kind": "scalar" + }, + { + "name": "Host Point", + "code": "host", + "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": "Guest Point", + "code": "guest", + "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": "Meridian Pair", + "code": "meridian_pair", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Patterns", + "code": "patterns", + "definition_kind": "object", + "multivalue": true, + "children": [ + { + "name": "Pattern Code", + "code": "pattern_code", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Pattern Name", + "code": "pattern_name", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Needle Technique", + "code": "needle_technique", + "data_type": "text", + "definition_kind": "scalar", + "default": "" + }, + { + "name": "Actions", + "code": "actions", + "data_type": "text", + "multivalue": true, + "default": [] + }, + { + "name": "Indications", + "code": "indications", + "data_type": "text", + "multivalue": true, + "default": [] + } + ] + } + ] + }, + { + "name": "Content Link", + "code": "link", + "definition_kind": "object", + "is_multivalue": false, + "is_required": false, + "is_searchable": false, + "is_filterable": false, + "children": [ + { + "name": "Type", + "code": "type", + "data_type": "text", + "definition_kind": "scalar", + "is_required": true, + "default": "content_ref", + "allowed_values": [ + "content_ref" + ] + }, + { + "name": "Label", + "code": "label", + "data_type": "text", + "definition_kind": "scalar", + "is_required": false + }, + { + "name": "Target", + "code": "target", + "definition_kind": "object", + "is_required": true, + "children": [ + { + "name": "Module Code", + "code": "module_code", + "data_type": "text", + "definition_kind": "scalar", + "is_required": true + }, + { + "name": "Template Code", + "code": "template_code", + "data_type": "text", + "definition_kind": "scalar", + "is_required": true + }, + { + "name": "Source Code", + "code": "source_code", + "data_type": "text", + "definition_kind": "scalar", + "is_required": false, + "is_searchable": false, + "is_filterable": false, + "metadata": { + "lifecycle": "authoring_only", + "description": "Canonical target content code used in source/seed JSON. Seeder resolves it to source_key before persistence." + } + }, + { + "name": "Source Key", + "code": "source_key", + "data_type": "text", + "definition_kind": "scalar", + "is_required": false, + "metadata": { + "lifecycle": "persisted", + "description": "Stable target identity derived from template_code and source_code." + } + }, + { + "name": "Content ID", + "code": "content_id", + "data_type": "text", + "definition_kind": "scalar", + "is_required": false, + "metadata": { + "lifecycle": "runtime_hydrated", + "description": "Target content UUID hydrated by the backend for client navigation." + } + } + ], + "metadata": { + "identity_contract": { + "authoring": "source_code", + "persisted": "source_key", + "runtime": "content_id" + } + } + } + ], + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "authoring_identity": "source_code", + "persisted_identity": "source_key", + "runtime_identity": "content_id", + "resolution_pipeline": "source_code -> source_key -> content_id", + "rules": { + "type_must_equal": "content_ref", + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true, + "do_not_infer_reference_from_plain_text": true + } + } + } + } + ], + "sort_order": 1, + "presentation_contracts": [ + { + "client_type": "mobile", + "version_no": 1, + "is_active": true, + "mode": "single", + "renderers": { + "detail": "yuan_luo_detail" + }, + "link": { + "renderer": "content_link" + }, + "attributes": [ + { + "attribute_key": "m0001_ct0026.name", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.title", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.alias", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 2 + }, + { + "attribute_key": "m0001_ct0026.point_codes", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.description", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 3 + }, + { + "attribute_key": "m0001_ct0026.general_information", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 4 + }, + { + "attribute_key": "m0001_ct0026.general_information.Location", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.general_information.Actions", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.general_information.Diagnosis", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 2 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 3 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Deficiency (Xu) of the Primary Meridian", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Deficiency (Xu) of the Primary Meridian.Host (Yuan-Source Point)", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Deficiency (Xu) of the Primary Meridian.Guest (Luo-Connecting Point)", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Excess (Shi) of the Primary Meridian", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Excess (Shi) of the Primary Meridian.Host (Yuan-Source Point)", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.general_information.Yuan_vs_Luo.For Excess (Shi) of the Primary Meridian.Guest (Luo-Connecting Point)", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.pairings", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 5 + }, + { + "attribute_key": "m0001_ct0026.pairings.number", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.pairings.host", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.pairings.guest", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 2 + }, + { + "attribute_key": "m0001_ct0026.pairings.meridian_pair", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 3 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 4 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns.pattern_code", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns.pattern_name", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 1 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns.needle_technique", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 2 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns.actions", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 3 + }, + { + "attribute_key": "m0001_ct0026.pairings.patterns.indications", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 4 + }, + { + "attribute_key": "m0001_ct0026.link", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.type", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.label", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target.module_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target.template_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target.source_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target.source_key", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0026.link.target.content_id", + "empty_behavior": "hide", + "visibility": "hide" + } + ], + "metadata": { + "content_ref_contract_version": "1.0", + "authoring_identity": "source_code", + "navigation_identity": "content_id" + } + } + ], + "metadata": { + "content_reference_policy": { + "contract_version": "1.0", + "explicit_relationships_only": true, + "authoring_reference_shape": { + "type": "content_ref", + "label": "", + "target": { + "module_code": "", + "template_code": "