{ "name": "points_content", "description": "", "code": "m0016_ct0002", "content_kind": "pattern", "is_searchable": true, "is_filterable": true, "attribute_prefix_code": "m0016_ct0002", "attribute_prefix_name": "four-levels", "attribute_defs": [ { "name": "Name", "code": "name", "data_type": "text", "default": "" }, { "name": "clinical manifestations", "code": "clinical_manifestation", "data_type": "text", "is_multivalue": true, "default": [] }, { "name": "tongue", "code": "tongue", "data_type": "text", "default": "" }, { "name": "pulse", "code": "pulse", "data_type": "text", "default": "" }, { "name": "pathology", "code": "pathology", "data_type": "text", "default": "" }, { "name": "treatment", "code": "treatment", "data_type": "json", "default": {} }, { "name": "treatment principle", "code": "treatment_principle", "data_type": "text", "default": "" }, { "name": "explanation", "code": "explanation", "data_type": "text", "default": "" }, { "name": "Sort Order", "code": "sort_order", "data_type": "number", "default": 0 }, { "name": "Content", "code": "content_count", "data_type": "number", "default": 0 }, { "name": "Content Label", "code": "content_label", "data_type": "text", "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": "template_ref", "allowed_values": [ "template_ref", "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.", "applies_to": [ "content_ref" ], "not_used_by": [ "template_ref" ] } }, { "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.", "applies_to": [ "content_ref" ], "not_used_by": [ "template_ref" ] } }, { "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.", "applies_to": [ "content_ref" ], "not_used_by": [ "template_ref" ] } } ], "metadata": { "identity_contract": { "template_ref": { "authoring": [ "module_code", "template_code" ], "persisted": [ "module_code", "template_code" ], "runtime": [ "module_code", "template_code" ] }, "content_ref": { "authoring": "source_code", "persisted": "source_key", "runtime": "content_id" } } } } ], "metadata": { "value_contract": { "kind": "navigation_ref", "contract_version": "1.0", "allowed_reference_types": [ "template_ref", "content_ref" ], "default_reference_type": "template_ref", "contracts": { "template_ref": { "purpose": "Navigate from the module root/index to another template collection.", "required_target_fields": [ "module_code", "template_code" ], "forbidden_source_fields": [ "source_key", "content_id" ], "source_code_required": false }, "content_ref": { "purpose": "Navigate to a specific content item.", "required_target_fields": [ "module_code", "template_code", "source_code" ], "authoring_identity": "source_code", "persisted_identity": "source_key", "runtime_identity": "content_id", "resolution_pipeline": "source_code -> source_key -> content_id" } }, "rules": { "do_not_infer_reference_from_label": true, "do_not_infer_reference_from_plain_text": true } } } } ], "metadata": { "presentation": { "mode": "single", "renderers": { "detail": "four_levels_detail" } }, "search": { "free_text_enabled": true, "default_logic": "and", "fields": [ { "attribute_key": "m0016_ct0002.name", "label": "Name", "operators": [ "contains", "starts_with", "eq" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.clinical manifestations", "label": "Clinical Manifestations", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.tongue", "label": "Tongue", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.pulse", "label": "Pulse", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.pathology", "label": "Pathology", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.treatment", "label": "Treatment", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.treatment principle", "label": "Treatment Principle", "operators": [ "contains" ], "renderer_hint": "text" }, { "attribute_key": "m0016_ct0002.explanation", "label": "Explanation", "operators": [ "contains" ], "renderer_hint": "text" } ], "sort_fields": [ { "field": "name", "label": "Name" } ], "default_sort": [ { "field": "name", "direction": "asc" } ] }, "navigation_reference_policy": { "contract_version": "1.0", "default_reference_type": "template_ref", "allowed_reference_types": [ "template_ref", "content_ref" ], "template_ref_shape": { "type": "template_ref", "label": "", "target": { "module_code": "", "template_code": "