From ff59ee9c62af0c61c5cf3d1d2c7d6c9622e0ace1 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Thu, 5 Nov 2026 14:54:55 +0530 Subject: [PATCH] feat(gynecology): add m0042_ct0091-ct0102 templates and link other diseases --- .../data/other/list.json | 1364 +---------------- m0042-gynecological-disorders/module.json | 84 + .../templates/m0042_ct0007.json | 76 +- .../templates/m0042_ct0091.json | 337 ++++ .../templates/m0042_ct0092.json | 337 ++++ .../templates/m0042_ct0093.json | 337 ++++ .../templates/m0042_ct0094.json | 337 ++++ .../templates/m0042_ct0095.json | 337 ++++ .../templates/m0042_ct0096.json | 337 ++++ .../templates/m0042_ct0097.json | 337 ++++ .../templates/m0042_ct0098.json | 337 ++++ .../templates/m0042_ct0099.json | 337 ++++ .../templates/m0042_ct0100.json | 337 ++++ .../templates/m0042_ct0101.json | 337 ++++ .../templates/m0042_ct0102.json | 337 ++++ 15 files changed, 4214 insertions(+), 1354 deletions(-) create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0091.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0092.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0093.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0094.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0095.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0096.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0097.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0098.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0099.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0100.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0101.json create mode 100644 m0042-gynecological-disorders/templates/m0042_ct0102.json diff --git a/m0042-gynecological-disorders/data/other/list.json b/m0042-gynecological-disorders/data/other/list.json index bb659a2..9761ee0 100644 --- a/m0042-gynecological-disorders/data/other/list.json +++ b/m0042-gynecological-disorders/data/other/list.json @@ -6,100 +6,14 @@ "sort_order": 0, "content_count": 5, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Liver-Qi Stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_liver_qi_stagnation" - } - }, - { - "type": "content_ref", - "label": "Retention of food and Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_retention_of_food_and_phlegm" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Qi and Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_stagnation_of_qi_and_blood" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood knotted in the Interior", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_stasis_of_blood_knotted_in_the_interior" - } - }, - { - "type": "content_ref", - "label": "Deficiency of Upright Qi and stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_deficiency_of_upright_qi_and_stasis_of_blood" - } + "link": { + "type": "template_ref", + "label": "Abdominal Masses", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0091" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Liver-Qi Stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_liver_qi_stagnation" - } - }, - { - "type": "content_ref", - "label": "Retention of food and Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_retention_of_food_and_phlegm" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Qi and Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_stagnation_of_qi_and_blood" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood knotted in the Interior", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_stasis_of_blood_knotted_in_the_interior" - } - }, - { - "type": "content_ref", - "label": "Deficiency of Upright Qi and stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "abdominal_masses_deficiency_of_upright_qi_and_stasis_of_blood" - } - } - ] + } }, { "name": "Breast Lumps", @@ -107,118 +21,14 @@ "sort_order": 1, "content_count": 6, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Stagnation of Liver-Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_stagnation_of_liver_qi" - } - }, - { - "type": "content_ref", - "label": "Spleen-Yang deficiency with Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_spleen_yang_deficiency_with_phlegm" - } - }, - { - "type": "content_ref", - "label": "Directing and Penetrating Vessel (Ren and Chong Mai) Disharmony", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_directing_and_penetrating_vessel_ren_and_chong_mai_disharmony" - } - }, - { - "type": "content_ref", - "label": "Stagnant Liver-Qi turned into Fire", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_stagnant_liver_qi_turned_into_fire" - } - }, - { - "type": "content_ref", - "label": "Toxic-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_toxic_heat" - } - }, - { - "type": "content_ref", - "label": "Liver- and Kidney-Yin deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_liver_and_kidney_yin_deficiency" - } + "link": { + "type": "template_ref", + "label": "Breast Lumps", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0092" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Stagnation of Liver-Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_stagnation_of_liver_qi" - } - }, - { - "type": "content_ref", - "label": "Spleen-Yang deficiency with Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_spleen_yang_deficiency_with_phlegm" - } - }, - { - "type": "content_ref", - "label": "Directing and Penetrating Vessel (Ren and Chong Mai) Disharmony", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_directing_and_penetrating_vessel_ren_and_chong_mai_disharmony" - } - }, - { - "type": "content_ref", - "label": "Stagnant Liver-Qi turned into Fire", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_stagnant_liver_qi_turned_into_fire" - } - }, - { - "type": "content_ref", - "label": "Toxic-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_toxic_heat" - } - }, - { - "type": "content_ref", - "label": "Liver- and Kidney-Yin deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "breast_lumps_liver_and_kidney_yin_deficiency" - } - } - ] + } }, { "name": "Endometriosis", @@ -226,208 +36,14 @@ "sort_order": 2, "content_count": 11, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Liver-Blood Stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_liver_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_stagnation_of_cold" - } - }, - { - "type": "content_ref", - "label": "Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_dampness" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_damp_phlegm_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yang deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yang_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yin deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yin_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Cold in the Uterus, Blood stasis, Kidney-Yang deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_cold_in_the_uterus_blood_stasis_kidney_yang_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yang deficiency with Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yang_deficiency_with_damp_phlegm_in_the_uterus" - } + "link": { + "type": "template_ref", + "label": "Endometriosis", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0093" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Liver-Blood Stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_liver_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_stagnation_of_cold" - } - }, - { - "type": "content_ref", - "label": "Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_dampness" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_damp_phlegm_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yang deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yang_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yin deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yin_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Cold in the Uterus, Blood stasis, Kidney-Yang deficiency and Dampness", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_cold_in_the_uterus_blood_stasis_kidney_yang_deficiency_and_dampness" - } - }, - { - "type": "content_ref", - "label": "Blood stasis, Kidney-Yang deficiency with Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "endometriosis_blood_stasis_kidney_yang_deficiency_with_damp_phlegm_in_the_uterus" - } - } - ] + } }, { "name": "Excessive Vaginal Discharge", @@ -435,118 +51,14 @@ "sort_order": 3, "content_count": 6, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Spleen Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_spleen_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Toxic-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_toxic_heat" - } - }, - { - "type": "content_ref", - "label": "Liver-Qi stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_liver_qi_stagnation" - } + "link": { + "type": "template_ref", + "label": "Excessive Vaginal Discharge", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0094" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Spleen Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_spleen_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Toxic-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_toxic_heat" - } - }, - { - "type": "content_ref", - "label": "Liver-Qi stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "excessive_vaginal_discharge_liver_qi_stagnation" - } - } - ] + } }, { "name": "Genital Eczema", @@ -554,46 +66,14 @@ "sort_order": 4, "content_count": 2, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "genital_eczema_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Blood deficient and Dry", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "genital_eczema_blood_deficient_and_dry" - } + "link": { + "type": "template_ref", + "label": "Genital Eczema", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0095" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "genital_eczema_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Blood deficient and Dry", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "genital_eczema_blood_deficient_and_dry" - } - } - ] + } }, { "name": "Infertility", @@ -601,172 +81,14 @@ "sort_order": 5, "content_count": 9, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Cold in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_cold_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Dampness in the Lower Burner", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_dampness_in_the_lower_burner" - } - }, - { - "type": "content_ref", - "label": "Blood-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_blood_heat" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_stagnation_of_qi" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_stasis_of_blood" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_damp_phlegm" - } + "link": { + "type": "template_ref", + "label": "Infertility", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0096" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Cold in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_cold_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Dampness in the Lower Burner", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_dampness_in_the_lower_burner" - } - }, - { - "type": "content_ref", - "label": "Blood-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_blood_heat" - } - }, - { - "type": "content_ref", - "label": "Stagnation of Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_stagnation_of_qi" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_stasis_of_blood" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "infertility_damp_phlegm" - } - } - ] + } }, { "name": "Menopausal Syndrome", @@ -774,136 +96,14 @@ "sort_order": 6, "content_count": 7, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin and Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yin_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney- and Liver-Yin deficiency with Liver-Yang rising", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_and_liver_yin_deficiency_with_liver_yang_rising" - } - }, - { - "type": "content_ref", - "label": "Kidneys and Heart not harmonized", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidneys_and_heart_not_harmonized" - } - }, - { - "type": "content_ref", - "label": "Accumulation of Phlegm and stagnation of Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_accumulation_of_phlegm_and_stagnation_of_qi" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_stasis_of_blood" - } + "link": { + "type": "template_ref", + "label": "Menopausal Syndrome", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0097" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yin_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney-Yin and Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_yin_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Kidney- and Liver-Yin deficiency with Liver-Yang rising", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidney_and_liver_yin_deficiency_with_liver_yang_rising" - } - }, - { - "type": "content_ref", - "label": "Kidneys and Heart not harmonized", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_kidneys_and_heart_not_harmonized" - } - }, - { - "type": "content_ref", - "label": "Accumulation of Phlegm and stagnation of Qi", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_accumulation_of_phlegm_and_stagnation_of_qi" - } - }, - { - "type": "content_ref", - "label": "Stasis of Blood", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "menopausal_syndrome_stasis_of_blood" - } - } - ] + } }, { "name": "Myoma", @@ -911,100 +111,14 @@ "sort_order": 7, "content_count": 5, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Blood Stasis from Qi Stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_from_qi_stagnation" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis from Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_from_cold" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_phlegm" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Qi and Blood Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_qi_and_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_kidney_yang_deficiency" - } + "link": { + "type": "template_ref", + "label": "Myoma", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0098" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Blood Stasis from Qi Stagnation", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_from_qi_stagnation" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis from Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_from_cold" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Phlegm", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_phlegm" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Qi and Blood Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_qi_and_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood Stasis with Kidney-Yang Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "myoma_blood_stasis_with_kidney_yang_deficiency" - } - } - ] + } }, { "name": "Pcos", @@ -1012,208 +126,14 @@ "sort_order": 8, "content_count": 11, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Dampness or Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_or_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Spleen- and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_spleen_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Liver-Fire and Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_liver_fire_and_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Blood deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm, Kidney-Yang deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_kidney_yang_deficiency_and_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm, Kidney-Yin deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_kidney_yin_deficiency_and_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Dampness and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Dampness, Kidney-Yin deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_kidney_yin_deficiency_and_blood_stasis" - } + "link": { + "type": "template_ref", + "label": "Pcos", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0099" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Damp-Phlegm in the Uterus", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_in_the_uterus" - } - }, - { - "type": "content_ref", - "label": "Dampness or Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_or_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Spleen- and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_spleen_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Liver-Fire and Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_liver_fire_and_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Blood deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_blood_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm, Kidney-Yang deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_kidney_yang_deficiency_and_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Damp-Phlegm, Kidney-Yin deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_damp_phlegm_kidney_yin_deficiency_and_blood_stasis" - } - }, - { - "type": "content_ref", - "label": "Dampness and Kidney-Yang deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_and_kidney_yang_deficiency" - } - }, - { - "type": "content_ref", - "label": "Dampness, Kidney-Yin deficiency and Blood stasis", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "pcos_dampness_kidney_yin_deficiency_and_blood_stasis" - } - } - ] + } }, { "name": "Prolapse of the Uterus", @@ -1221,46 +141,14 @@ "sort_order": 9, "content_count": 2, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Spleen-Qi Sinking", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "prolapse_of_the_uterus_spleen_qi_sinking" - } - }, - { - "type": "content_ref", - "label": "Kidney-Qi Deficient and Sinking", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "prolapse_of_the_uterus_kidney_qi_deficient_and_sinking" - } + "link": { + "type": "template_ref", + "label": "Prolapse of the Uterus", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0100" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Spleen-Qi Sinking", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "prolapse_of_the_uterus_spleen_qi_sinking" - } - }, - { - "type": "content_ref", - "label": "Kidney-Qi Deficient and Sinking", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "prolapse_of_the_uterus_kidney_qi_deficient_and_sinking" - } - } - ] + } }, { "name": "Vaginal Itching", @@ -1268,64 +156,14 @@ "sort_order": 10, "content_count": 3, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Dampness and Spleen-Qi Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_dampness_and_spleen_qi_deficiency" - } - }, - { - "type": "content_ref", - "label": "Liver- and Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_liver_and_kidney_yin_deficiency" - } + "link": { + "type": "template_ref", + "label": "Vaginal Itching", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0101" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Damp-Heat in the Liver channel", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_damp_heat_in_the_liver_channel" - } - }, - { - "type": "content_ref", - "label": "Dampness and Spleen-Qi Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_dampness_and_spleen_qi_deficiency" - } - }, - { - "type": "content_ref", - "label": "Liver- and Kidney-Yin Deficiency", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vaginal_itching_liver_and_kidney_yin_deficiency" - } - } - ] + } }, { "name": "Vulvar Sores", @@ -1333,46 +171,14 @@ "sort_order": 11, "content_count": 2, "content_label": "patterns", - "point_codes": [ - { - "type": "content_ref", - "label": "Toxic-Heat with Liver-Fire and Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vulvar_sores_toxic_heat_with_liver_fire_and_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Retention of Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vulvar_sores_retention_of_cold" - } + "link": { + "type": "template_ref", + "label": "Vulvar Sores", + "target": { + "module_code": "m0042", + "template_code": "m0042_ct0102" } - ], - "pattern_codes": [ - { - "type": "content_ref", - "label": "Toxic-Heat with Liver-Fire and Damp-Heat", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vulvar_sores_toxic_heat_with_liver_fire_and_damp_heat" - } - }, - { - "type": "content_ref", - "label": "Retention of Cold", - "target": { - "module_code": "m0042", - "template_code": "m0042_ct0005", - "source_code": "vulvar_sores_retention_of_cold" - } - } - ] + } } ] -} +} \ No newline at end of file diff --git a/m0042-gynecological-disorders/module.json b/m0042-gynecological-disorders/module.json index b895e1f..1db781d 100644 --- a/m0042-gynecological-disorders/module.json +++ b/m0042-gynecological-disorders/module.json @@ -402,6 +402,90 @@ "code": "m0042_ct0084", "data_path": "data/diseases_after_childbirth/urinary_difficulty/list.json", "template_path": "templates/m0042_ct0084.json" + }, + { + "name": "abdominal_masses_list_content", + "description": "", + "code": "m0042_ct0091", + "data_path": "data/other/abdominal_masses/list.json", + "template_path": "templates/m0042_ct0091.json" + }, + { + "name": "breast_lumps_list_content", + "description": "", + "code": "m0042_ct0092", + "data_path": "data/other/breast_lumps/list.json", + "template_path": "templates/m0042_ct0092.json" + }, + { + "name": "endometriosis_list_content", + "description": "", + "code": "m0042_ct0093", + "data_path": "data/other/endometriosis/list.json", + "template_path": "templates/m0042_ct0093.json" + }, + { + "name": "excessive_vaginal_discharge_list_content", + "description": "", + "code": "m0042_ct0094", + "data_path": "data/other/excessive_vaginal_discharge/list.json", + "template_path": "templates/m0042_ct0094.json" + }, + { + "name": "genital_eczema_list_content", + "description": "", + "code": "m0042_ct0095", + "data_path": "data/other/genital_eczema/list.json", + "template_path": "templates/m0042_ct0095.json" + }, + { + "name": "infertility_list_content", + "description": "", + "code": "m0042_ct0096", + "data_path": "data/other/infertility/list.json", + "template_path": "templates/m0042_ct0096.json" + }, + { + "name": "menopausal_syndrome_list_content", + "description": "", + "code": "m0042_ct0097", + "data_path": "data/other/menopausal_syndrome/list.json", + "template_path": "templates/m0042_ct0097.json" + }, + { + "name": "myoma_list_content", + "description": "", + "code": "m0042_ct0098", + "data_path": "data/other/myoma/list.json", + "template_path": "templates/m0042_ct0098.json" + }, + { + "name": "pcos_list_content", + "description": "", + "code": "m0042_ct0099", + "data_path": "data/other/pcos/list.json", + "template_path": "templates/m0042_ct0099.json" + }, + { + "name": "prolapse_of_uterus_list_content", + "description": "", + "code": "m0042_ct0100", + "data_path": "data/other/prolapse_of_uterus/list.json", + "template_path": "templates/m0042_ct0100.json" + }, + { + "name": "vaginal_itching_list_content", + "description": "", + "code": "m0042_ct0101", + "data_path": "data/other/vaginal_itching/list.json", + "template_path": "templates/m0042_ct0101.json" + }, + { + "name": "vulvar_sores_list_content", + "description": "", + "code": "m0042_ct0102", + "data_path": "data/other/vulvar_sores/list.json", + "template_path": "templates/m0042_ct0102.json" } ] } \ No newline at end of file diff --git a/m0042-gynecological-disorders/templates/m0042_ct0007.json b/m0042-gynecological-disorders/templates/m0042_ct0007.json index a8c7034..a2feedf 100644 --- a/m0042-gynecological-disorders/templates/m0042_ct0007.json +++ b/m0042-gynecological-disorders/templates/m0042_ct0007.json @@ -206,68 +206,6 @@ } } } - }, - { - "name": "Patterns", - "code": "pattern_codes", - "data_type": "json", - "multivalue": true, - "default": [], - "definition_kind": "scalar", - "is_multivalue": true, - "metadata": { - "value_contract": { - "kind": "content_ref", - "contract_version": "1.0", - "reference_type": "content_ref", - "target_module_code": "m0042", - "target_template_code": "m0042_ct0005", - "cardinality": "many", - "authoring_identity": "source_code", - "persisted_identity": "source_key", - "runtime_identity": "content_id", - "resolution_pipeline": "source_code -> source_key -> content_id", - "rules": { - "explicit_reference_required_when_value_present": true, - "plain_text_allowed": false, - "source_code_authoring_only": true, - "source_key_persisted_only": true, - "content_id_runtime_only": true, - "do_not_infer_reference_from_label": true - } - } - } - }, - { - "name": "Points", - "code": "point_codes", - "data_type": "json", - "multivalue": true, - "default": [], - "definition_kind": "scalar", - "is_multivalue": true, - "metadata": { - "value_contract": { - "kind": "content_ref", - "contract_version": "1.0", - "reference_type": "content_ref", - "target_module_code": "m0042", - "target_template_code": "m0042_ct0005", - "cardinality": "many", - "authoring_identity": "source_code", - "persisted_identity": "source_key", - "runtime_identity": "content_id", - "resolution_pipeline": "source_code -> source_key -> content_id", - "rules": { - "explicit_reference_required_when_value_present": true, - "plain_text_allowed": false, - "source_code_authoring_only": true, - "source_key_persisted_only": true, - "content_id_runtime_only": true, - "do_not_infer_reference_from_label": true - } - } - } } ], "presentation_contracts": [ @@ -354,18 +292,6 @@ "attribute_key": "m0042_ct0007.link.target.content_id", "empty_behavior": "hide", "visibility": "hide" - }, - { - "attribute_key": "m0042_ct0007.pattern_codes", - "empty_behavior": "hide", - "visibility": "show", - "display_order": 20 - }, - { - "attribute_key": "m0042_ct0007.point_codes", - "empty_behavior": "hide", - "visibility": "show", - "display_order": 20 } ], "metadata": { @@ -408,4 +334,4 @@ } } } -} +} \ No newline at end of file diff --git a/m0042-gynecological-disorders/templates/m0042_ct0091.json b/m0042-gynecological-disorders/templates/m0042_ct0091.json new file mode 100644 index 0000000..7633d88 --- /dev/null +++ b/m0042-gynecological-disorders/templates/m0042_ct0091.json @@ -0,0 +1,337 @@ +{ + "name": "abdominal_masses_list_content", + "description": "", + "code": "m0042_ct0091", + "content_kind": "therapeutic", + "is_searchable": true, + "is_filterable": true, + "attribute_prefix_code": "m0042_ct0091", + "attribute_prefix_name": "abdominal_masses_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_ct0091_collection", + "collection_item": "m0042_ct0091_card", + "detail": "m0042_ct0091_detail" + }, + "link": { + "renderer": "content_link" + }, + "attributes": [ + { + "attribute_key": "m0042_ct0091.name", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0091.code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.content_count", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0091.content_label", + "empty_behavior": "hide", + "visibility": "show" + }, + { + "attribute_key": "m0042_ct0091.sort_order", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.type", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.label", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.target", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.target.module_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.target.template_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.target.source_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.link.target.source_key", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0042_ct0091.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": "