From 40d267154296ecd820d3a26938d33fa30322c7b7 Mon Sep 17 00:00:00 2001 From: Amit Salunke Date: Sat, 12 Sep 2026 11:54:46 +0530 Subject: [PATCH] update m0042 --- config.json | 2 +- m0042-gynecological-disorders/data/list.json | 42 +-- .../data/problems_during_period/list.json | 20 +- m0042-gynecological-disorders/module.json | 31 +- .../templates/m0042_ct0001.json | 335 ++++++++++++++++++ .../templates/m0042_ct0002.json | 335 ++++++++++++++++++ .../templates/m0042_ct0003.json | 335 ++++++++++++++++++ .../{M0042_CT0001.json => m0042_ct0004.json} | 60 +++- 8 files changed, 1086 insertions(+), 74 deletions(-) create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0001.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0002.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0003.json rename m0042-gynecological-disorders/templates/{M0042_CT0001.json => m0042_ct0004.json} (83%) diff --git a/config.json b/config.json index 922234d..f3ca495 100644 --- a/config.json +++ b/config.json @@ -108,7 +108,7 @@ }, { "name": "Gynecological Disorders", - "code": "M0042", + "code": "m0042", "path": "m0042-gynecological-disorders", "status": "active", "sort_order": "40002" diff --git a/m0042-gynecological-disorders/data/list.json b/m0042-gynecological-disorders/data/list.json index ce6345f..ae78ee3 100644 --- a/m0042-gynecological-disorders/data/list.json +++ b/m0042-gynecological-disorders/data/list.json @@ -9,8 +9,8 @@ "type": "template_ref", "label": "Menstrual Irregularities", "target": { - "module_code": "M0042", - "template_code": "M0042_CT0001" + "module_code": "m0042", + "template_code": "m0042_ct0002" } }, "code": "menstrual_irregularities" @@ -24,8 +24,8 @@ "type": "template_ref", "label": "Problems during Period", "target": { - "module_code": "M0042", - "template_code": "M0042_CT0001" + "module_code": "m0042", + "template_code": "m0042_ct0003" } }, "code": "problems_during_period" @@ -39,41 +39,11 @@ "type": "template_ref", "label": "Diseases of Pregnancy", "target": { - "module_code": "M0042", - "template_code": "M0042_CT0001" + "module_code": "m0042", + "template_code": "m0042_ct0004" } }, "code": "diseases_of_pregnancy" - }, - { - "name": "Diseases after Childbirth", - "sort_order": 3, - "content_count": 12, - "content_label": "categories", - "link": { - "type": "template_ref", - "label": "Diseases after Childbirth", - "target": { - "module_code": "M0042", - "template_code": "M0042_CT0001" - } - }, - "code": "diseases_after_childbirth" - }, - { - "name": "Other", - "sort_order": 4, - "content_count": 11, - "content_label": "categories", - "link": { - "type": "template_ref", - "label": "Other", - "target": { - "module_code": "M0042", - "template_code": "M0042_CT0001" - } - }, - "code": "other" } ] } diff --git a/m0042-gynecological-disorders/data/problems_during_period/list.json b/m0042-gynecological-disorders/data/problems_during_period/list.json index 41d8420..7dc125f 100644 --- a/m0042-gynecological-disorders/data/problems_during_period/list.json +++ b/m0042-gynecological-disorders/data/problems_during_period/list.json @@ -4,7 +4,7 @@ "name": "Breast distension during Periods", "sort_order": 0, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Breast distension during Periods", @@ -19,7 +19,7 @@ "name": "Headache during Periods", "sort_order": 1, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Headache during Periods", @@ -34,7 +34,7 @@ "name": "Edema during Periods", "sort_order": 2, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Edema during Periods", @@ -49,7 +49,7 @@ "name": "Diarrhea during Periods", "sort_order": 3, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Diarrhea during Periods", @@ -64,7 +64,7 @@ "name": "Body ache during Periods", "sort_order": 4, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Body ache during Periods", @@ -79,7 +79,7 @@ "name": "Fever during Periods", "sort_order": 5, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Fever during Periods", @@ -94,7 +94,7 @@ "name": "Epistaxis during Periods", "sort_order": 6, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Epistaxis during Periods", @@ -109,7 +109,7 @@ "name": "Mouth ulcers during Periods", "sort_order": 7, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Mouth ulcers during Periods", @@ -124,7 +124,7 @@ "name": "Skin eruptions during Periods", "sort_order": 8, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Skin eruptions during Periods", @@ -139,7 +139,7 @@ "name": "Dizziness during Periods", "sort_order": 9, "content_count": 1, - "content_label": "categories", + "content_label": "patterns", "link": { "type": "template_ref", "label": "Dizziness during Periods", diff --git a/m0042-gynecological-disorders/module.json b/m0042-gynecological-disorders/module.json index 123476e..118bc88 100644 --- a/m0042-gynecological-disorders/module.json +++ b/m0042-gynecological-disorders/module.json @@ -2,8 +2,9 @@ "name": "Gynecological Disorders", "description": "", "short_description": "", - "code": "M0042", + "code": "m0042", "kind": "therapeutic", + "default_template": "m0042_ct0001", "metadata": { "version": "0.1", "status": "active" @@ -12,17 +13,31 @@ { "name": "module_list_content", "description": "", - "code": "M0042_CT0001", + "code": "m0042_ct0001", "data_path": "data/list.json", - "template_path": "templates/M0042_CT0001.json" + "template_path": "templates/m0042_ct0001.json" }, { - "name": "disease_content", + "name": "menstrual_irregularities_list_content", "description": "", - "code": "M0042_CT0002", - "data_path": "data/gynecological_disorders.json", - "template_path": "templates/M0042_CT0002.json" - } + "code": "m0042_ct0002", + "data_path": "data/menstrual_irregularities/list.json", + "template_path": "templates/m0042_ct0002.json" + }, + { + "name": "problems_during_period_list_content", + "description": "", + "code": "m0042_ct0003", + "data_path": "data/problems_during_period/list.json", + "template_path": "templates/m0042_ct0003.json" + }, + { + "name": "diseases_of_pregnancy_list_content", + "description": "", + "code": "m0042_ct0004", + "data_path": "data/diseases_of_pregnancy/list.json", + "template_path": "templates/m0042_ct0004.json" + } ] } diff --git a/m0042-gynecological-disorders/templates/m0042_ct0001.json b/m0042-gynecological-disorders/templates/m0042_ct0001.json new file mode 100644 index 0000000..0b447cb --- /dev/null +++ b/m0042-gynecological-disorders/templates/m0042_ct0001.json @@ -0,0 +1,335 @@ +{ + "name": "gynecological_disorders_list_content", + "description": "", + "code": "m0042_ct0001", + "content_kind": "therapeutic", + "attribute_prefix_code": "m0042_ct0001", + "attribute_prefix_name": "gynecological_disorders_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_ct0001_collection", + "collection_item": "m0042_ct0001_card", + "detail": "m0042_ct0001_detail" + }, + "link": { + "renderer": "content_link" + }, + "attributes": [ + { + "attribute_key": "m0042_ct0001.name", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0001.code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.content_count", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0001.content_label", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0001.sort_order", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.type", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.label", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.target", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.target.module_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.target.template_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.target.source_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.link.target.source_key", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0001.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": "", + "target": { + "module_code": "", + "template_code": "