acupedia-content/m0018-twelve-channels/templates/m0018_ct0002.json

347 lines
9.8 KiB
JSON

{
"name": "twelve_channels_connecting_and_muscle_channel_content",
"description": "",
"code": "m0018_ct0002",
"content_kind": "pattern",
"is_searchable": true,
"is_filterable": true,
"attribute_prefix_code": "m0018_ct0002",
"attribute_prefix_name": "twelve_channels_connecting_and_muscle_channels",
"attribute_defs": [
{
"name": "Name",
"code": "name",
"data_type": "text",
"default": ""
},
{
"name": "code",
"code": "code",
"data_type": "text",
"default": ""
},
{
"name": "main_channel",
"code": "main_channel",
"data_type": "text",
"is_multivalue": true,
"default": []
},
{
"name": "connecting_channel",
"code": "connecting_channel",
"definition_kind": "object",
"is_multivalue": false,
"is_required": false,
"children": [
{
"name": "empty",
"code": "empty",
"data_type": "text",
"definition_kind": "scalar",
"is_multivalue": true,
"is_required": false,
"default": []
},
{
"name": "full",
"code": "full",
"data_type": "text",
"definition_kind": "scalar",
"is_multivalue": true,
"is_required": false,
"default": []
}
]
},
{
"name": "Great Connecting Channel of the Spleen",
"code": "great_connecting_channel_of_the_spleen",
"definition_kind": "object",
"is_multivalue": false,
"is_required": false,
"children": [
{
"name": "Clinical Manifestations",
"code": "clinical_manifestations",
"data_type": "text",
"definition_kind": "scalar",
"is_multivalue": true,
"is_required": false,
"default": []
}
]
},
{
"name": "muscle_channel",
"code": "muscle_channel",
"data_type": "text",
"is_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": [
"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": "content_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
}
}
}
}
],
"sort_order": 1,
"presentation_contracts": [
{
"client_type": "mobile",
"version_no": 1,
"is_active": true,
"mode": "collection",
"renderers": {
"detail": "twelve_channels_detail",
"collection": "twelve_channels_collection",
"collection_item": "twelve_channels_card"
},
"link": {
"renderer": "content_link"
},
"attributes": [
{
"attribute_key": "m0018_ct0002.name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 10
},
{
"attribute_key": "m0018_ct0002.code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0018_ct0002.main_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 20
},
{
"attribute_key": "m0018_ct0002.connecting_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 30
},
{
"attribute_key": "m0018_ct0002.connecting_channel.empty",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 40
},
{
"attribute_key": "m0018_ct0002.connecting_channel.full",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 50
},
{
"attribute_key": "m0018_ct0002.great_connecting_channel_of_the_spleen",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 60
},
{
"attribute_key": "m0018_ct0002.great_connecting_channel_of_the_spleen.clinical_manifestations",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 70
},
{
"attribute_key": "m0018_ct0002.muscle_channel",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 80
},
{
"attribute_key": "m0018_ct0002.link",
"empty_behavior": "hide",
"visibility": "hide"
}
]
}
],
"metadata": {
"content_reference_policy": {
"contract_version": "1.0",
"explicit_relationships_only": true,
"authoring_reference_shape": {
"type": "content_ref",
"target": {
"module_code": "m0018",
"template_code": "m0018_ct0002",
"source_code": "<canonical-content-code>"
}
},
"persisted_identity": "source_key",
"runtime_identity": "content_id",
"do_not_infer_from_display_strings": true
}
}
}