feat(m0042): add Diseases after Childbirth and Other categories to gynecological disorders list
This commit is contained in:
parent
bcb462212a
commit
a77c8f9399
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"contents": []
|
||||
}
|
||||
|
|
@ -44,6 +44,36 @@
|
|||
}
|
||||
},
|
||||
"code": "diseases_of_pregnancy"
|
||||
},
|
||||
{
|
||||
"name": "Diseases after Childbirth",
|
||||
"sort_order": 3,
|
||||
"content_count": 0,
|
||||
"content_label": "patterns",
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Diseases after Childbirth",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0006"
|
||||
}
|
||||
},
|
||||
"code": "diseases_after_childbirth"
|
||||
},
|
||||
{
|
||||
"name": "Other",
|
||||
"sort_order": 4,
|
||||
"content_count": 0,
|
||||
"content_label": "patterns",
|
||||
"link": {
|
||||
"type": "template_ref",
|
||||
"label": "Other",
|
||||
"target": {
|
||||
"module_code": "m0042",
|
||||
"template_code": "m0042_ct0007"
|
||||
}
|
||||
},
|
||||
"code": "other"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"contents": []
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
"code": "m0042_ct0003",
|
||||
"data_path": "data/problems_during_period/list.json",
|
||||
"template_path": "templates/m0042_ct0003.json"
|
||||
},
|
||||
},
|
||||
{
|
||||
"name": "diseases_of_pregnancy_list_content",
|
||||
"description": "",
|
||||
|
|
@ -45,7 +45,20 @@
|
|||
"code": "m0042_ct0005",
|
||||
"data_path": "data/detail_patterns.json",
|
||||
"template_path": "templates/m0042_ct0005.json"
|
||||
},
|
||||
{
|
||||
"name": "diseases_after_childbirth_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0006",
|
||||
"data_path": "data/diseases_after_childbirth/list.json",
|
||||
"template_path": "templates/m0042_ct0006.json"
|
||||
},
|
||||
{
|
||||
"name": "other_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0007",
|
||||
"data_path": "data/other/list.json",
|
||||
"template_path": "templates/m0042_ct0007.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,337 @@
|
|||
{
|
||||
"name": "diseases_after_childbirth_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0006",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0006",
|
||||
"attribute_prefix_name": "diseases_after_childbirth_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_ct0006_collection",
|
||||
"collection_item": "m0042_ct0006_card",
|
||||
"detail": "m0042_ct0006_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0006.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": "other_list_content",
|
||||
"description": "",
|
||||
"code": "m0042_ct0007",
|
||||
"content_kind": "therapeutic",
|
||||
"is_searchable": true,
|
||||
"is_filterable": true,
|
||||
"attribute_prefix_code": "m0042_ct0007",
|
||||
"attribute_prefix_name": "other_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_ct0007_collection",
|
||||
"collection_item": "m0042_ct0007_card",
|
||||
"detail": "m0042_ct0007_detail"
|
||||
},
|
||||
"link": {
|
||||
"renderer": "content_link"
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.name",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.content_count",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.content_label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "show"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.sort_order",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.type",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.label",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.target",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.target.module_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.target.template_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.target.source_code",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.link.target.source_key",
|
||||
"empty_behavior": "hide",
|
||||
"visibility": "hide"
|
||||
},
|
||||
{
|
||||
"attribute_key": "m0042_ct0007.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