acupedia-api/modules-data/M0001-Acupuncture Points/templates/M0001_CT0025.json

347 lines
9.3 KiB
JSON

{
"name": "extra_acupuncture_points_content",
"description": "",
"code": "M0001_CT0025",
"content_kind": "point",
"attribute_prefix_code": "M0001_CT0025",
"attribute_prefix_name": "extra_acupuncture_points",
"attribute_defs": [
{
"name": "Name",
"code": "name",
"data_type": "text",
"default": ""
},
{
"name": "Code",
"code": "code",
"data_type": "text",
"default": ""
},
{
"name": "Pt Meaning",
"code": "pt_meaning",
"data_type": "text",
"default": ""
},
{
"name": "Location",
"code": "location",
"data_type": "text",
"default": ""
},
{
"name": "Location Note",
"code": "location_note",
"data_type": "text",
"default": ""
},
{
"name": "Regional Anatomy",
"code": "regional_anatomy",
"data_type": "text",
"default": ""
},
{
"name": "Actions",
"code": "actions",
"data_type": "text",
"default": ""
},
{
"name": "Indications",
"code": "indications",
"data_type": "text",
"default": ""
},
{
"name": "Method",
"code": "method",
"data_type": "text",
"default": ""
},
{
"name": "Note",
"code": "note",
"data_type": "text",
"default": ""
},
{
"name": "Caution",
"code": "caution",
"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": "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": {
"collection": "acu_point_collection",
"collection_item": "acu_point_card",
"detail": "acu_point_detail"
},
"link": {
"renderer": "content_link"
},
"attributes": [
{
"attribute_key": "M0001_CT0025.name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "M0001_CT0025.pt_meaning",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 1
},
{
"attribute_key": "M0001_CT0025.location",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 3
},
{
"attribute_key": "M0001_CT0025.location_note",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 4
},
{
"attribute_key": "M0001_CT0025.regional_anatomy",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 5
},
{
"attribute_key": "M0001_CT0025.actions",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 6
},
{
"attribute_key": "M0001_CT0025.indications",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 7
},
{
"attribute_key": "M0001_CT0025.method",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 8
},
{
"attribute_key": "M0001_CT0025.note",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 9
},
{
"attribute_key": "M0001_CT0025.caution",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 10
},
{
"attribute_key": "M0001_CT0025.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": "M0001",
"template_code": "M0001_CT0003",
"source_code": "<canonical-content-code>"
}
},
"persisted_identity": "source_key",
"runtime_identity": "content_id",
"do_not_infer_from_display_strings": true
}
}
}