From fb373466f9bdbd15e519dbe778740fc5f708a683 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Thu, 5 Nov 2026 14:38:25 +0530 Subject: [PATCH] feat(gynecology): add m0042_ct0071-ct0084 templates and link childbirth diseases --- .../data/diseases_after_childbirth/list.json | 142 +++++++- m0042-gynecological-disorders/module.json | 98 +++++ .../templates/m0042_ct0071.json | 337 ++++++++++++++++++ .../templates/m0042_ct0072.json | 337 ++++++++++++++++++ .../templates/m0042_ct0073.json | 337 ++++++++++++++++++ .../templates/m0042_ct0074.json | 337 ++++++++++++++++++ .../templates/m0042_ct0075.json | 337 ++++++++++++++++++ .../templates/m0042_ct0076.json | 337 ++++++++++++++++++ .../templates/m0042_ct0077.json | 337 ++++++++++++++++++ .../templates/m0042_ct0078.json | 337 ++++++++++++++++++ .../templates/m0042_ct0079.json | 337 ++++++++++++++++++ .../templates/m0042_ct0080.json | 337 ++++++++++++++++++ .../templates/m0042_ct0081.json | 337 ++++++++++++++++++ .../templates/m0042_ct0082.json | 337 ++++++++++++++++++ .../templates/m0042_ct0083.json | 337 ++++++++++++++++++ .../templates/m0042_ct0084.json | 337 ++++++++++++++++++ 16 files changed, 4943 insertions(+), 15 deletions(-) create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0071.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0072.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0073.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0074.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0075.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0076.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0077.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0078.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0079.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0080.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0081.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0082.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0083.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0084.json diff --git a/m0042-gynecological-disorders/data/diseases_after_childbirth/list.json b/m0042-gynecological-disorders/data/diseases_after_childbirth/list.json index 8cf9af6..d55de4f 100644 --- a/m0042-gynecological-disorders/data/diseases_after_childbirth/list.json +++ b/m0042-gynecological-disorders/data/diseases_after_childbirth/list.json @@ -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" + } + } } ] -} +} \ No newline at end of file diff --git a/m0042-gynecological-disorders/module.json b/m0042-gynecological-disorders/module.json index 4125075..b895e1f 100644 --- a/m0042-gynecological-disorders/module.json +++ b/m0042-gynecological-disorders/module.json @@ -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" } ] } \ No newline at end of file diff --git a/m0042-gynecological-disorders/templates/m0042_ct0071.json b/m0042-gynecological-disorders/templates/m0042_ct0071.json new file mode 100644 index 0000000..1f3bd89 --- /dev/null +++ b/m0042-gynecological-disorders/templates/m0042_ct0071.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": "", + "target": { + "module_code": "", + "template_code": "