feat(gynecology): add m0042_ct0071-ct0084 templates and link childbirth diseases
This commit is contained in:
parent
da70413fd6
commit
fb373466f9
|
|
@ -63,7 +63,15 @@
|
|||
"source_code": "abdominal_pain_after_childbirth_retention_of_food"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Abdominal Pain after childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0071"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Breast Milk not Flowing",
|
||||
|
|
@ -110,7 +118,15 @@
|
|||
"source_code": "breast_milk_not_flowing_liver_qi_stagnation"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Breast Milk not Flowing",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0072"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Collapse after Childbirth",
|
||||
|
|
@ -157,7 +173,15 @@
|
|||
"source_code": "collapse_after_childbirth_blood_stasis_tense_syndrome"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Collapse after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0073"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Constipation after Childbirth",
|
||||
|
|
@ -222,7 +246,15 @@
|
|||
"source_code": "constipation_after_childbirth_kidney_yin_deficiency"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Constipation after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0074"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Convulsions after Childbirth",
|
||||
|
|
@ -269,7 +301,15 @@
|
|||
"source_code": "convulsions_after_childbirth_exterior_invasion_of_toxin"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Convulsions after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0075"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Fever after Childbirth",
|
||||
|
|
@ -388,7 +428,15 @@
|
|||
"source_code": "fever_after_childbirth_retention_of_food"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Fever after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0076"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Hemorrhoids after Childbirth",
|
||||
|
|
@ -489,7 +537,15 @@
|
|||
"source_code": "hemorrhoids_after_childbirth_damp_heat"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Hemorrhoids after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0077"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Joint Pain after Childbirth",
|
||||
|
|
@ -572,7 +628,15 @@
|
|||
"source_code": "joint_pain_after_childbirth_liver_blood_and_kidney_yang_deficiency"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Joint Pain after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0078"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Persistent Lochial discharge",
|
||||
|
|
@ -637,7 +701,15 @@
|
|||
"source_code": "persistent_lochial_discharge_blood_heat"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Persistent Lochial discharge",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0079"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Post-Natal Depression",
|
||||
|
|
@ -702,7 +774,15 @@
|
|||
"source_code": "post_natal_depression_heart_blood_stasis"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Post-Natal Depression",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0080"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Retention of Lochia",
|
||||
|
|
@ -749,7 +829,15 @@
|
|||
"source_code": "retention_of_lochia_stagnation_of_cold_and_stasis_of_blood"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Retention of Lochia",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0081"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Spontaneous Flow of Milk",
|
||||
|
|
@ -796,7 +884,15 @@
|
|||
"source_code": "spontaneous_flow_of_milk_liver_fire"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Spontaneous Flow of Milk",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0082"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Sweating after Childbirth",
|
||||
|
|
@ -843,7 +939,15 @@
|
|||
"source_code": "sweating_after_childbirth_heart_yin_deficiency"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Sweating after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0083"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Urinary Difficulty after Childbirth",
|
||||
|
|
@ -962,7 +1066,15 @@
|
|||
"source_code": "urinary_difficulty_after_childbirth_lung_and_spleen_qi_deficiency"
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Urinary Difficulty after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0084"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -304,6 +304,104 @@
|
|||
"code": "m0042_ct0064",
|
||||
"data_path": "data/diseases_of_pregnancy/aphonia/list.json",
|
||||
"template_path": "templates/m0042_ct0064.json"
|
||||
},
|
||||
{
|
||||
"name": "abdominal_pain_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0071",
|
||||
"data_path": "data/diseases_after_childbirth/abdominal_pain/list.json",
|
||||
"template_path": "templates/m0042_ct0071.json"
|
||||
},
|
||||
{
|
||||
"name": "breast_milk_not_flowing_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0072",
|
||||
"data_path": "data/diseases_after_childbirth/breast_milk_not_flowing/list.json",
|
||||
"template_path": "templates/m0042_ct0072.json"
|
||||
},
|
||||
{
|
||||
"name": "collapse_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0073",
|
||||
"data_path": "data/diseases_after_childbirth/collapse/list.json",
|
||||
"template_path": "templates/m0042_ct0073.json"
|
||||
},
|
||||
{
|
||||
"name": "constipation_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0074",
|
||||
"data_path": "data/diseases_after_childbirth/constipation/list.json",
|
||||
"template_path": "templates/m0042_ct0074.json"
|
||||
},
|
||||
{
|
||||
"name": "convulsions_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0075",
|
||||
"data_path": "data/diseases_after_childbirth/convulsions/list.json",
|
||||
"template_path": "templates/m0042_ct0075.json"
|
||||
},
|
||||
{
|
||||
"name": "fever_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0076",
|
||||
"data_path": "data/diseases_after_childbirth/fever/list.json",
|
||||
"template_path": "templates/m0042_ct0076.json"
|
||||
},
|
||||
{
|
||||
"name": "hemorrhoids_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0077",
|
||||
"data_path": "data/diseases_after_childbirth/hemorrhoids/list.json",
|
||||
"template_path": "templates/m0042_ct0077.json"
|
||||
},
|
||||
{
|
||||
"name": "joint_pain_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0078",
|
||||
"data_path": "data/diseases_after_childbirth/joint_pain/list.json",
|
||||
"template_path": "templates/m0042_ct0078.json"
|
||||
},
|
||||
{
|
||||
"name": "persistent_lochial_discharge_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0079",
|
||||
"data_path": "data/diseases_after_childbirth/persistent_lochial_discharge/list.json",
|
||||
"template_path": "templates/m0042_ct0079.json"
|
||||
},
|
||||
{
|
||||
"name": "postnatal_depression_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0080",
|
||||
"data_path": "data/diseases_after_childbirth/postnatal_depression/list.json",
|
||||
"template_path": "templates/m0042_ct0080.json"
|
||||
},
|
||||
{
|
||||
"name": "retention_of_lochia_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0081",
|
||||
"data_path": "data/diseases_after_childbirth/retention_of_lochia/list.json",
|
||||
"template_path": "templates/m0042_ct0081.json"
|
||||
},
|
||||
{
|
||||
"name": "spontaneous_flow_of_milk_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0082",
|
||||
"data_path": "data/diseases_after_childbirth/spontaneous_flow_of_milk/list.json",
|
||||
"template_path": "templates/m0042_ct0082.json"
|
||||
},
|
||||
{
|
||||
"name": "sweating_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0083",
|
||||
"data_path": "data/diseases_after_childbirth/sweating/list.json",
|
||||
"template_path": "templates/m0042_ct0083.json"
|
||||
},
|
||||
{
|
||||
"name": "urinary_difficulty_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0084",
|
||||
"data_path": "data/diseases_after_childbirth/urinary_difficulty/list.json",
|
||||
"template_path": "templates/m0042_ct0084.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "abdominal_pain_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0071",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0071",
|
||||
"attribute_prefix_name": "abdominal_pain_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0071_collection",
|
||||
"collection_item": "m0042_ct0071_card",
|
||||
"detail": "m0042_ct0071_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0071.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "breast_milk_not_flowing_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0072",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0072",
|
||||
"attribute_prefix_name": "breast_milk_not_flowing_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0072_collection",
|
||||
"collection_item": "m0042_ct0072_card",
|
||||
"detail": "m0042_ct0072_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0072.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "collapse_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0073",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0073",
|
||||
"attribute_prefix_name": "collapse_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0073_collection",
|
||||
"collection_item": "m0042_ct0073_card",
|
||||
"detail": "m0042_ct0073_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0073.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "constipation_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0074",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0074",
|
||||
"attribute_prefix_name": "constipation_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0074_collection",
|
||||
"collection_item": "m0042_ct0074_card",
|
||||
"detail": "m0042_ct0074_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0074.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "convulsions_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0075",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0075",
|
||||
"attribute_prefix_name": "convulsions_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0075_collection",
|
||||
"collection_item": "m0042_ct0075_card",
|
||||
"detail": "m0042_ct0075_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0075.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "fever_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0076",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0076",
|
||||
"attribute_prefix_name": "fever_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0076_collection",
|
||||
"collection_item": "m0042_ct0076_card",
|
||||
"detail": "m0042_ct0076_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0076.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "hemorrhoids_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0077",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0077",
|
||||
"attribute_prefix_name": "hemorrhoids_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0077_collection",
|
||||
"collection_item": "m0042_ct0077_card",
|
||||
"detail": "m0042_ct0077_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0077.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "joint_pain_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0078",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0078",
|
||||
"attribute_prefix_name": "joint_pain_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0078_collection",
|
||||
"collection_item": "m0042_ct0078_card",
|
||||
"detail": "m0042_ct0078_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0078.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "persistent_lochial_discharge_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0079",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0079",
|
||||
"attribute_prefix_name": "persistent_lochial_discharge_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0079_collection",
|
||||
"collection_item": "m0042_ct0079_card",
|
||||
"detail": "m0042_ct0079_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0079.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "postnatal_depression_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0080",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0080",
|
||||
"attribute_prefix_name": "postnatal_depression_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0080_collection",
|
||||
"collection_item": "m0042_ct0080_card",
|
||||
"detail": "m0042_ct0080_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0080.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "retention_of_lochia_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0081",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0081",
|
||||
"attribute_prefix_name": "retention_of_lochia_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0081_collection",
|
||||
"collection_item": "m0042_ct0081_card",
|
||||
"detail": "m0042_ct0081_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0081.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "spontaneous_flow_of_milk_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0082",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0082",
|
||||
"attribute_prefix_name": "spontaneous_flow_of_milk_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0082_collection",
|
||||
"collection_item": "m0042_ct0082_card",
|
||||
"detail": "m0042_ct0082_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0082.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "sweating_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0083",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0083",
|
||||
"attribute_prefix_name": "sweating_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0083_collection",
|
||||
"collection_item": "m0042_ct0083_card",
|
||||
"detail": "m0042_ct0083_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0083.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "urinary_difficulty_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0084",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0084",
|
||||
"attribute_prefix_name": "urinary_difficulty_list_content",
|
||||
"attribute_defs": [
|
||||
{
|
||||
"name": "Name",
|
||||
"code": "name",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Code",
|
||||
"code": "code",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Count",
|
||||
"code": "content_count",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"name": "Label",
|
||||
"code": "content_label",
|
||||
"data_type": "text",
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "Sort Order",
|
||||
"code": "sort_order",
|
||||
"data_type": "number",
|
||||
"default": 0
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"presentation_contracts": [
|
||||
{
|
||||
"client_type": "mobile",
|
||||
"version_no": 1,
|
||||
"is_active": true,
|
||||
"mode": "collection",
|
||||
"renderers": {
|
||||
"collection": "m0042_ct0084_collection",
|
||||
"collection_item": "m0042_ct0084_card",
|
||||
"detail": "m0042_ct0084_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0084.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": {
|
||||
"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>"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue