629 lines
17 KiB
JSON
629 lines
17 KiB
JSON
{
|
|
"name": "points_content",
|
|
"code": "M0001_CT0003",
|
|
"description": "",
|
|
"content_kind": "point",
|
|
"attribute_prefix_code": "M0001_CT0003",
|
|
"attribute_prefix_name": "acu_point",
|
|
"attribute_defs": [
|
|
{
|
|
"name": "Name",
|
|
"code": "name",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "alt_name_1",
|
|
"code": "alt_name_1",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "alt_name_2",
|
|
"code": "alt_name_2",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Sort Order",
|
|
"code": "sort_order",
|
|
"data_type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "Code",
|
|
"code": "code",
|
|
"data_type": "text",
|
|
"default": "",
|
|
"filterable": true
|
|
},
|
|
{
|
|
"name": "Channel",
|
|
"code": "channel",
|
|
"data_type": "json",
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": false,
|
|
"is_required": false,
|
|
"is_searchable": false,
|
|
"is_filterable": true,
|
|
"default": null,
|
|
"metadata": {
|
|
"value_contract": {
|
|
"kind": "content_ref",
|
|
"contract_version": "1.0",
|
|
"reference_type": "content_ref",
|
|
"target_module_code": "M0001",
|
|
"target_template_code": "M0001_CT0005",
|
|
"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_not_allowed": true,
|
|
"source_code_authoring_only": true,
|
|
"source_key_persisted_only": true,
|
|
"content_id_runtime_only": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Location",
|
|
"code": "location",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Location Note",
|
|
"code": "location_note",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Needling",
|
|
"code": "needling",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Needling Response",
|
|
"code": "needling_response",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Moxibustion",
|
|
"code": "moxibustion",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Additional Method",
|
|
"code": "additional_method",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Caution",
|
|
"code": "caution",
|
|
"data_type": "text",
|
|
"default": ""
|
|
},
|
|
{
|
|
"name": "Description",
|
|
"code": "description",
|
|
"data_type": "text",
|
|
"is_multivalue": true,
|
|
"default": []
|
|
},
|
|
{
|
|
"name": "Indications",
|
|
"code": "indications",
|
|
"data_type": "text",
|
|
"is_multivalue": true,
|
|
"default": []
|
|
},
|
|
{
|
|
"name": "regional_anatomy",
|
|
"code": "regional_anatomy",
|
|
"definition_kind": "object",
|
|
"children": [
|
|
{
|
|
"name": "structures",
|
|
"code": "structures",
|
|
"data_type": "text",
|
|
"multivalue": true,
|
|
"default": []
|
|
},
|
|
{
|
|
"name": "superficial_layer",
|
|
"code": "superficial_layer",
|
|
"data_type": "text",
|
|
"multivalue": true,
|
|
"default": []
|
|
},
|
|
{
|
|
"name": "deep_layer",
|
|
"code": "deep_layer",
|
|
"data_type": "text",
|
|
"multivalue": true,
|
|
"default": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "actions",
|
|
"code": "actions",
|
|
"data_type": "text",
|
|
"is_multivalue": true,
|
|
"default": []
|
|
},
|
|
{
|
|
"name": "methods",
|
|
"code": "methods",
|
|
"data_type": "json",
|
|
"default": {}
|
|
},
|
|
{
|
|
"name": "point_images",
|
|
"code": "point_images",
|
|
"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": "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": "collection",
|
|
"renderers": {
|
|
"collection": "acu_point_collection",
|
|
"collection_item": "acu_point_card",
|
|
"detail": "acu_point_detail"
|
|
},
|
|
"link": {
|
|
"renderer": "content_link"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"attribute_key": "M0001_CT0003.name",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.alt_name_1",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.alt_name_2",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.sort_order",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.code",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.channel",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.location",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.location_note",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.needling",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.needling_response",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.moxibustion",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.additional_method",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.caution",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.description",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.indications",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.regional_anatomy",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.regional_anatomy.structures",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.regional_anatomy.superficial_layer",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.regional_anatomy.deep_layer",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.actions",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.methods",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.point_images",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.type",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.label",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.target",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.target.module_code",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.target.template_code",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.target.source_code",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.link.target.source_key",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.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": "<display label>",
|
|
"target": {
|
|
"module_code": "<module code>",
|
|
"template_code": "<template code>",
|
|
"source_code": "<canonical source code>"
|
|
}
|
|
},
|
|
"persisted_reference_identity": "source_key",
|
|
"runtime_reference_identity": "content_id",
|
|
"do_not_infer_from_display_strings": true
|
|
},
|
|
"search": {
|
|
"free_text_enabled": true,
|
|
"default_logic": "and",
|
|
"fields": [
|
|
{
|
|
"attribute_key": "M0001_CT0003.code",
|
|
"label": "Point Code",
|
|
"operators": [
|
|
"eq",
|
|
"starts_with",
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.name",
|
|
"label": "Point Name",
|
|
"operators": [
|
|
"eq",
|
|
"starts_with",
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.alt_name_1",
|
|
"label": "Alternative Name",
|
|
"operators": [
|
|
"starts_with",
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.alt_name_2",
|
|
"label": "English Name",
|
|
"operators": [
|
|
"starts_with",
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.channel",
|
|
"label": "Channel",
|
|
"operators": [
|
|
"eq",
|
|
"in"
|
|
],
|
|
"renderer_hint": "select",
|
|
"allowed_values": [
|
|
"Bladder Channel of Foot Taiyang",
|
|
"Conception Vessel (Ren Channel)",
|
|
"Gall Bladder Channel of Foot Shaoyang",
|
|
"Heart Meridian of Hand Shaoyin",
|
|
"Kidney Channel of Foot Shaoyin",
|
|
"Large Intestine Channel of Hand Yangming",
|
|
"Liver Channel of Foot Juein",
|
|
"Lung Channel of Hand Taiyin",
|
|
"Pericardium Channel of Hand Jueyin",
|
|
"Small Intestine Channel of Hand Taiyang",
|
|
"Spleen Channel of Foot Taiyin",
|
|
"Stomach Channel of Foot Yangming",
|
|
"Triple Energizer Channel of Hand Shaoyang"
|
|
]
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.point_type",
|
|
"label": "Point Type",
|
|
"operators": [
|
|
"contains",
|
|
"in"
|
|
],
|
|
"renderer_hint": "typeahead_multi_select"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.indications",
|
|
"label": "Indications",
|
|
"operators": [
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.actions",
|
|
"label": "Actions",
|
|
"operators": [
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
},
|
|
{
|
|
"attribute_key": "M0001_CT0003.location",
|
|
"label": "Location",
|
|
"operators": [
|
|
"contains"
|
|
],
|
|
"renderer_hint": "text"
|
|
}
|
|
],
|
|
"sort_fields": [
|
|
{
|
|
"field": "sort_order",
|
|
"label": "Sort Order"
|
|
},
|
|
{
|
|
"field": "code",
|
|
"label": "Point Code"
|
|
},
|
|
{
|
|
"field": "name",
|
|
"label": "Point Name"
|
|
},
|
|
{
|
|
"field": "channel",
|
|
"label": "Channel"
|
|
}
|
|
],
|
|
"default_sort": [
|
|
{
|
|
"field": "sort_order",
|
|
"direction": "asc"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|