acupedia-content/m0011-eight-principles/templates/m0011_ct0004.json

644 lines
17 KiB
JSON

{
"name": "points_content",
"code": "m0011_ct0004",
"description": "",
"content_kind": "pattern",
"is_searchable": true,
"is_filterable": true,
"attribute_prefix_code": "m0011_ct0004",
"attribute_prefix_name": "eight_principles",
"attribute_defs": [
{
"name": "Title",
"code": "title",
"data_type": "text",
"default": ""
},
{
"name": "Name",
"code": "name",
"data_type": "text",
"default": ""
},
{
"name": "description",
"code": "description",
"data_type": "text",
"default": ""
},
{
"name": "yin_syndrome",
"code": "yin_syndrome",
"data_type": "text",
"default": ""
},
{
"name": "yang_syndrome",
"code": "yang_syndrome",
"data_type": "text",
"default": ""
},
{
"name": "yin_yang",
"code": "yin_yang",
"data_type": "json",
"default": ""
},
{
"name": "yin_syndromes",
"code": "yin_syndromes",
"data_type": "json",
"default": {}
},
{
"name": "yang_syndromes",
"code": "yang_syndromes",
"data_type": "json",
"default": {}
},
{
"name": "note",
"code": "note",
"data_type": "text",
"default": {}
},
{
"name": "inspection",
"code": "inspection",
"data_type": "json",
"default": {}
},
{
"name": "auscultation",
"code": "auscultation",
"data_type": "json",
"default": {}
},
{
"name": "inquiry",
"code": "inquiry",
"data_type": "json",
"default": {}
},
{
"name": "pulse_taking",
"code": "pulse_taking",
"data_type": "json",
"default": {}
},
{
"name": "deficiency_of_Genuine_Yin",
"code": "deficiency_of_Genuine_Yin",
"data_type": "json",
"default": {}
},
{
"name": "deficiency_of_Genuine_Yang",
"code": "deficiency_of_Genuine_Yang",
"data_type": "json",
"default": {}
},
{
"name": "yin_depletion",
"code": "yin_depletion",
"data_type": "json",
"default": {}
},
{
"name": "yand_depletion",
"code": "yang_depletion",
"data_type": "json",
"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
}
}
}
}
],
"sort_order": 1,
"presentation_contracts": [
{
"client_type": "mobile",
"version_no": 1,
"is_active": true,
"mode": "single",
"renderers": {
"detail": "eight_principles_detail"
},
"link": {
"renderer": "content_link"
},
"attributes": [
{
"attribute_key": "m0011_ct0004.title",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 10
},
{
"attribute_key": "m0011_ct0004.description",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 20
},
{
"attribute_key": "m0011_ct0004.yin_syndrome",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 30
},
{
"attribute_key": "m0011_ct0004.yang_syndrome",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 40
},
{
"attribute_key": "m0011_ct0004.yin_yang",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 50
},
{
"attribute_key": "m0011_ct0004.yin_syndromes",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 60
},
{
"attribute_key": "m0011_ct0004.yang_syndromes",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 70
},
{
"attribute_key": "m0011_ct0004.note",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 80
},
{
"attribute_key": "m0011_ct0004.inspection",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 90
},
{
"attribute_key": "m0011_ct0004.auscultation",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 100
},
{
"attribute_key": "m0011_ct0004.inquiry",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 110
},
{
"attribute_key": "m0011_ct0004.pulse_taking",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 120
},
{
"attribute_key": "m0011_ct0004.deficiency_of_Genuine_Yin",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 130
},
{
"attribute_key": "m0011_ct0004.deficiency_of_Genuine_Yang",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 140
},
{
"attribute_key": "m0011_ct0004.yin_depletion",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 150
},
{
"attribute_key": "m0011_ct0004.yang_depletion",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 160
},
{
"attribute_key": "m0011_ct0004.link",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.type",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.label",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target.module_code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target.template_code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target.source_code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target.source_key",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0011_ct0004.link.target.content_id",
"empty_behavior": "hide",
"visibility": "hide"
}
],
"metadata": {
"content_ref_contract_version": "1.0",
"authoring_identity": "source_code",
"navigation_identity": "content_id",
"navigation_ref_contract_version": "1.0",
"allowed_reference_types": [
"template_ref",
"content_ref"
],
"default_reference_type": "template_ref"
}
}
],
"metadata": {
"presentation": {
"mode": "collection",
"renderers": {
"detail": "yin_yang_detail",
"collection": "yin_yang_collection",
"collection_item": "yin_yang_card"
}
},
"search": {
"free_text_enabled": true,
"default_logic": "and",
"fields": [
{
"attribute_key": "m0011_ct0004.title",
"label": "Title",
"operators": [
"eq",
"starts_with",
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.description",
"label": "Description",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.yin_syndrome",
"label": "Yin Syndrome",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.yang_syndrome",
"label": "Yang Syndrome",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.yin_yang",
"label": "Yin Yang",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.yin_syndromes",
"label": "Yin Syndromes",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.yang_syndromes",
"label": "Yang Syndromes",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.note",
"label": "Note",
"operators": [
"contains"
],
"renderer_hint": "text"
},
{
"attribute_key": "m0011_ct0004.inspection",
"label": "Inspection",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.auscultation",
"label": "Auscultation",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.inquiry",
"label": "Inquiry",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.pulse_taking",
"label": "Pulse Taking",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.deficiency_of_Genuine_Yin",
"label": "Deficiency of Genuine Yin",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.deficiency_of_Genuine_Yang",
"label": "Deficiency of Genuine Yang",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.yin_depletion",
"label": "Yin Depletion",
"operators": [
"contains"
],
"renderer_hint": "json"
},
{
"attribute_key": "m0011_ct0004.yang_depletion",
"label": "Yang Depletion",
"operators": [
"contains"
],
"renderer_hint": "json"
}
],
"sort_fields": [
{
"field": "title",
"label": "Title"
},
{
"field": "yin_syndrome",
"label": "Yin Syndrome"
},
{
"field": "yang_syndrome",
"label": "Yang Syndrome"
}
],
"default_sort": [
{
"field": "title",
"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": "<display label>",
"target": {
"module_code": "<module code>",
"template_code": "<template code>"
}
},
"content_ref_shape": {
"type": "content_ref",
"label": "<display label>",
"target": {
"module_code": "<module code>",
"template_code": "<template code>",
"source_code": "<canonical source code>"
}
}
}
}
}