From eb3a0ce413de94daa4e0dacc99dcd2554cb31872 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Sat, 19 Sep 2026 17:16:42 +0530 Subject: [PATCH 1/2] fix: gynecology leaf node presentation and data fixes --- .../data/eov/eov.json.bak | 148 + .../search_facets.json.bakc | 78 + .../templates/M0001_CT0007.json.bak | 624 +++ m0002-ear-acupuncture/search_facets.json.bak | 78 + .../templates/M0002_CT0001.json.bak | 376 ++ .../templates/M0002_CT0002.json.bak | 341 ++ .../templates/M0002_CT0003.json.bak | 346 ++ .../templates/M0002_CT0004.json.bak | 346 ++ .../templates/M0002_CT0005.json.bak | 346 ++ .../templates/M0002_CT0006.json.bak | 346 ++ .../templates/M0002_CT0007.json.bak | 346 ++ .../templates/M0002_CT0011.json.bak | 445 ++ .../data/scalp_acupuncture.json | 74 +- .../search_facets.json.bak | 60 + .../templates/M0003_CT0001.json.bak | 401 ++ .../data/detail_patterns.json | 3793 +++++++++++++++++ .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data/diseases_of_pregnancy/list.json | 32 +- .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data/menstrual_irregularities/list.json | 24 +- .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data.json} | 0 .../list.json} | 0 .../data/problems_during_period/list.json | 22 +- .../mouth_ulcers_during_period.json | 0 .../mouth_ulcers_during_period_list.json | 0 .../data.json} | 0 .../list.json} | 0 m0042-gynecological-disorders/module.json | 13 +- .../search_facets.json.bak | 42 + .../templates/m0042_ct0005.json | 119 +- 72 files changed, 8310 insertions(+), 90 deletions(-) create mode 100644 m0001-acupuncture-points/data/eov/eov.json.bak create mode 100644 m0001-acupuncture-points/search_facets.json.bakc create mode 100644 m0001-acupuncture-points/templates/M0001_CT0007.json.bak create mode 100644 m0002-ear-acupuncture/search_facets.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0001.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0002.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0003.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0004.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0005.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0006.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0007.json.bak create mode 100644 m0002-ear-acupuncture/templates/M0002_CT0011.json.bak create mode 100644 m0003-scalp-acupuncture/search_facets.json.bak create mode 100644 m0003-scalp-acupuncture/templates/M0003_CT0001.json.bak create mode 100644 m0042-gynecological-disorders/data/detail_patterns.json rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{abdominal_pain_during_pregnancy.json => abdominal_pain/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{abdominal_pain_during_pregnancy_list.json => abdominal_pain/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{anxiety_during_pregnancy.json => anxiety/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{anxiety_during_pregnancy_list.json => anxiety/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{aphonia_during_pregnancy.json => aphonia/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{aphonia_during_pregnancy_list.json => aphonia/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{constipation_during_pregnancy.json => constipation/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{constipation_during_pregnancy_list.json => constipation/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{convulsions_during_pregnancy.json => convulsions/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{convulsions_during_pregnancy_list.json => convulsions/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{cough_during_pregnancy.json => cough/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{cough_during_pregnancy_list.json => cough/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{dizziness_during_pregnancy.json => dizziness/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{dizziness_during_pregnancy_list.json => dizziness/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{edema_during_pregnancy.json => edema/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{edema_during_pregnancy_list.json => edema/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{feeling_of_suffocation_during_pregnancy.json => feeling_of_suffocation/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{feeling_of_suffocation_during_pregnancy_list.json => feeling_of_suffocation/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{fetus_not_growing.json => fetus_not_growing/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{fetus_not_growing_list.json => fetus_not_growing/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{habitual_miscarriage.json => habitual_miscarriage/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{habitual_miscarriage_list.json => habitual_miscarriage/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{morning_sickness.json => morning_sickness/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{morning_sickness_list.json => morning_sickness/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{retention_of_urine_during_pregnancy.json => retention_of_urine/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{retention_of_urine_during_pregnancy_list.json => retention_of_urine/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{threatened_miscarriage.json => threatened_miscarriage/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{threatened_miscarriage_list.json => threatened_miscarriage/list.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{urinary_syndrome_during_pregnancy.json => urinary_syndrome/data.json} (100%) rename m0042-gynecological-disorders/data/diseases_of_pregnancy/{urinary_syndrome_during_pregnancy_list.json => urinary_syndrome/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{body_aches_during_period.json => body_aches/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{body_aches_during_period_list.json => body_aches/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{breast_distension_during_periods.json => breast_distension/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{breast_distension_list.json => breast_distension/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{diarrhea_during_period.json => diarrhea/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{diarrhea_during_period_list.json => diarrhea/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{dizziness_during_period.json => dizziness/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{dizziness_during_period _list.json => dizziness/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{edema_during_periods.json => edema/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{edema_during_periods_list.json => edema/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{epistaxis_or_hemoptysis_during_period.json => epistaxis_or_hemoptysis/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{epistaxis_or_hemoptysis_during_period_list.json => epistaxis_or_hemoptysis/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{fever_during_period.json => fever/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{fever_during_period_list.json => fever/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{headaches_during_periods.json => headaches/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{headaches_during_periods_list.json => headaches/list.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{ => mouth_ulcers}/mouth_ulcers_during_period.json (100%) rename m0042-gynecological-disorders/data/problems_during_period/{ => mouth_ulcers}/mouth_ulcers_during_period_list.json (100%) rename m0042-gynecological-disorders/data/problems_during_period/{skin_eruptions_during_period.json => skin_eruptions/data.json} (100%) rename m0042-gynecological-disorders/data/problems_during_period/{skin_eruptions_during_period_list.json => skin_eruptions/list.json} (100%) create mode 100644 m0042-gynecological-disorders/search_facets.json.bak diff --git a/m0001-acupuncture-points/data/eov/eov.json.bak b/m0001-acupuncture-points/data/eov/eov.json.bak new file mode 100644 index 0000000..88976c9 --- /dev/null +++ b/m0001-acupuncture-points/data/eov/eov.json.bak @@ -0,0 +1,148 @@ +{ + "contents": [ + { + "title": "Motor Area", + "code": "motor_area", + "slug": "m0003-ct0001-motor-area", + "area": "Motor Area", + "location": "The upper end lies on anterior-posterior line 0.5 cm behind the midpoint and the lower end lies at the intersect of eyebrow-occipital line intersects the anterior hairline. The connecting line of two points is motor area which is divided in five sections. Then three regions are measured as follows: upper 1/5 region, middle 2/5 region, and lower 2/5 region", + "indication": "Paralysis or weakness in the face, trunk, or limbs caused by stroke, multiple sclerosis, traumatic paraplegia, acute myelitis, neuritis, poliomyelitis, post-polio syndrome, periodic paralysis, hysterical paralysis, Bell's palsy, spinal cord injury, traumatic Brain injury, Charcot-Marie-Tooth disease, and Brain damage from Brain surgery. Upper 1/5 treats contralateral lower extremity, trunk, spinal cord and neck dysfunction. Middle 2/5 treats contralateral upper extremity dysfunction. Lower 2/5 treats bilateral face and head dysfunction and dysphasia." + }, + { + "title": "Sensory Area", + "code": "sensory_area", + "slug": "m0003-ct0001-sensory-area", + "area": "Sensory Area", + "location": "Parallel to and 1.5 cm behind the motor area", + "indication": "Abnormal sensation and pain in lower extremities, trunk, back, chest and neck; upper extremity disorders; face and head disorders including migraine, headache, trigeminal neuralgia, toothache and TMJ pain." + }, + { + "title": "Chorea and Tremor Area", + "code": "chorea_and_tremor_area", + "slug": "m0003-ct0001-chorea-and-tremor-area", + "area": "Chorea and Tremor Area", + "location": "Parallel to and 1.5 cm front of the motor area", + "indication": "Parkinson’s disease, tremors, shaking of head/body/extremities, chorea, tic, restless leg syndrome, dystonia, muscular tension and tightness." + }, + { + "title": "Vascular dilation and constriction area", + "code": "vascular_dilation_and_constriction_area", + "slug": "m0003-ct0001-vascular-dilation-and-constriction-area", + "area": "Vascular dilation and constriction area", + "location": "Parallel to and 1.5 cm front of the Chorea and Tremor Area", + "indication": "Essential hypertension, cortical edema and autonomic vascular dysfunctions." + }, + { + "title": "Vertigo and Hearing area", + "code": "vertigo_and_hearing_area", + "slug": "m0003-ct0001-vertigo-and-hearing-area", + "area": "Vertigo and Hearing area", + "location": "A 4 cm wide horizontal line with its midpoint 1.5 cm directly above the ear apex.", + "indication": "Vertigo, dizziness, Meniere’s disease, tinnitus, hearing loss and auditory hallucinations." + }, + { + "title": "Speech I area", + "code": "speech_i_area", + "slug": "m0003-ct0001-speech-i-area", + "area": "Speech I area", + "location": "Lower 2/5 area of motor area.", + "indication": "Dysarthria, dysphonia or motor aphasia after stroke or brain injury." + }, + { + "title": "Speech II area", + "code": "speech_ii_area", + "slug": "m0003-ct0001-speech-ii-area", + "area": "Speech II area", + "location": "A 3 cm line parallel to anterior-posterior line, which goes downwards from the point 2 cm behind the parietal tubercle.", + "indication": "Nominal aphasia (inability to name objects)." + }, + { + "title": "Speech III area", + "code": "speech_iii_area", + "slug": "m0003-ct0001-speech-iii-area", + "area": "Speech III area", + "location": "A horizontal line which goes 4 cm backward from the midpoint of Vertigo and Hearing area.", + "indication": "Receptive aphasia." + }, + { + "title": "Praxis Area", + "code": "praxis_area", + "slug": "m0003-ct0001-praxis-area", + "area": "Praxis Area", + "location": "3 lines, 3 cm in length each, starting from the parietal tubercle one running straight downward and the other two at a 40-degree angle anterior and posterior to the vertical line.", + "indication": "Apraxia; inability to execute certain fine motor activities." + }, + { + "title": "Vision Area", + "code": "vision_area", + "slug": "m0003-ct0001-vision-area", + "area": "Vision Area", + "location": "A parallel line of 4 cm in length one cm beside the anterior-posterior median line, which goes upward from the level of the external occipital tuberosity.", + "indication": "Vision loss due to stroke or brain injury, visual field loss, double vision, visual hallucination and nystagmus." + }, + { + "title": "Balance Area", + "code": "balance_area", + "slug": "m0003-ct0001-balance-area", + "area": "Balance Area", + "location": "A vertical line of 4 cm in length and 3.5 cm beside the anterior-posterior median line, which goes downward from the level of external occipital tuberosity.", + "indication": "Disequilibrium, cerebellar atrophy, cerebellar strokes, multiple sclerosis, Parkinson's disease, ataxia and loss of balance due to traumatic brain injury." + }, + { + "title": "FMSA", + "code": "fmsa", + "slug": "m0003-ct0001-fmsa", + "area": "FMSA", + "location": "Parallel to the anterior-posterior line, 1 cm lateral to the midline beginning at the level of the midpoint of the anterior-posterior line and running 4 cm posteriorly.", + "indication": "Leg/foot paralysis, restless leg syndrome, leg and foot pain, neuropathy, plantar fasciitis, CRPS, fibromyalgia, phantom pain, urinary/stool incontinence, IBS, reproductive disorders, psoriasis, shingles, ADHD, PTSD, post-concussion syndrome, poor memory and concentration." + }, + { + "title": "Head Area", + "code": "head_area", + "slug": "m0003-ct0001-head-area", + "area": "Head Area", + "location": "On the midline at the forehead, running from the hairline 2 cm superiorly and inferiorly", + "indication": "Insomnia, poor memory, poor concentration, anxiety and depression." + }, + { + "title": "Stomach Area", + "code": "stomach_area", + "slug": "m0003-ct0001-stomach-area", + "area": "Stomach Area", + "location": "A 2-cm vertical line which goes upward from the level of anterior hairline and runs parallel with the anterior-posterior median line and directly above the center of the pupil.", + "indication": "Stomach pain and upper epigastric discomfort." + }, + { + "title": "Thoracic Cavity Area", + "code": "thoracic_cavity_area", + "slug": "m0003-ct0001-thoracic-cavity-area", + "area": "Thoracic Cavity Area", + "location": "A 4-cm vertical line right between the anterior-posterior median line and the Stomach area, with 2 cm above and 2 cm below the anterior hairline.", + "indication": "Asthma and tachycardia." + }, + { + "title": "Liver & GB Area", + "code": "liver_and_gb_area", + "slug": "m0003-ct0001-liver-and-gb-area", + "area": "Liver & GB Area", + "location": "A 2-cm line extending downward from the Stomach area and in parallel with the anterior-posterior median line.", + "indication": "Costal pain and rib pain due to hepatitis, gallstones and shingles." + }, + { + "title": "Reproductive Area", + "code": "reproductive_area", + "slug": "m0003-ct0001-reproductive-area", + "area": "Reproductive Area", + "location": "A 2-cm vertical line going upward from the frontal corner in parallel with the anterior-posterior median line.", + "indication": "Menstrual cramps, bleeding and urinary tract infection." + }, + { + "title": "Large Intestine Area", + "code": "large_intestine_area", + "slug": "m0003-ct0001-large-intestine-area", + "area": "Large Intestine Area", + "location": "A 2-cm vertical line extending further downward from the reproductive area.", + "indication": "Diarrhea and constipation." + } + ] +} \ No newline at end of file diff --git a/m0001-acupuncture-points/search_facets.json.bakc b/m0001-acupuncture-points/search_facets.json.bakc new file mode 100644 index 0000000..08b3ddc --- /dev/null +++ b/m0001-acupuncture-points/search_facets.json.bakc @@ -0,0 +1,78 @@ +{ + "version": "1.0", + "module_code": "M0001", + "facets": [ + { + "code": "channel", + "label": "Channel", + "category": "TCM Classification", + "description": "Acupuncture channel/meridian associated with the content.", + "control_type": "typeahead_multi", + "allow_multiple_values": true, + "value_source": "projected", + "sort_order": 10, + "mappings": [ + { + "template_code": "M0001_CT0003", + "attribute_key": "M0001_CT0003.channel", + "content_kind": "point", + "mapping_strategy": "content_ref_label" + } + ] + }, + { + "code": "point_category", + "label": "Point Category", + "category": "Point Properties", + "description": "Clinical or classical category assigned to an acupuncture point.", + "control_type": "typeahead_multi", + "allow_multiple_values": true, + "value_source": "projected", + "sort_order": 20, + "mappings": [ + { + "template_code": "M0001_CT0003", + "attribute_key": "M0001_CT0003.description", + "content_kind": "point", + "mapping_strategy": "multivalue" + } + ] + }, + { + "code": "clinical_indication", + "label": "Clinical Indication", + "category": "Clinical", + "description": "Indications, symptoms or clinical conditions for which content is relevant.", + "control_type": "typeahead_multi", + "allow_multiple_values": true, + "value_source": "projected", + "sort_order": 30, + "mappings": [ + { + "template_code": "M0001_CT0003", + "attribute_key": "M0001_CT0003.indications", + "content_kind": "point", + "mapping_strategy": "multivalue" + } + ] + }, + { + "code": "action", + "label": "Action", + "category": "Clinical", + "description": "Therapeutic actions associated with content.", + "control_type": "typeahead_multi", + "allow_multiple_values": true, + "value_source": "projected", + "sort_order": 40, + "mappings": [ + { + "template_code": "M0001_CT0003", + "attribute_key": "M0001_CT0003.actions", + "content_kind": "point", + "mapping_strategy": "multivalue" + } + ] + } + ] +} diff --git a/m0001-acupuncture-points/templates/M0001_CT0007.json.bak b/m0001-acupuncture-points/templates/M0001_CT0007.json.bak new file mode 100644 index 0000000..2f72131 --- /dev/null +++ b/m0001-acupuncture-points/templates/M0001_CT0007.json.bak @@ -0,0 +1,624 @@ +{ + "name": "eov_content", + "code": "M0001_CT0007", + "description": "", + "content_kind": "point", + "attribute_prefix_code": "M0001_CT0007", + "attribute_prefix_name": "eov_content", + "attribute_defs": [ + { + "name": "Name", + "code": "name", + "data_type": "text", + "default": "" + }, + { + "name": "Code", + "code": "code", + "data_type": "text", + "default": "" + }, + { + "name": "Alternative Name", + "code": "alt_name", + "data_type": "text", + "multivalue": true, + "default": [] + }, + { + "name": "Master Point", + "code": "master_point", + "data_type": "json", + "default": null, + "definition_kind": "scalar", + "is_multivalue": false, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "M0001", + "target_template_code": "M0001_CT0003", + "cardinality": "one", + "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": true, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + } + } + } + }, + { + "name": "Coupled Point", + "code": "coupled_point", + "data_type": "json", + "default": null, + "definition_kind": "scalar", + "is_multivalue": false, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "M0001", + "target_template_code": "M0001_CT0003", + "cardinality": "one", + "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": true, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + } + } + } + }, + { + "name": "Luo Point", + "code": "luo_point", + "data_type": "json", + "default": null, + "definition_kind": "scalar", + "is_multivalue": false, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "M0001", + "target_template_code": "M0001_CT0003", + "cardinality": "one", + "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": true, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + } + } + } + }, + { + "name": "XI-Cleft Point", + "code": "xi_cleft_point", + "data_type": "json", + "default": null, + "definition_kind": "scalar", + "is_multivalue": false, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "M0001", + "target_template_code": "M0001_CT0003", + "cardinality": "one", + "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": true, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + } + } + } + }, + { + "name": "Intersection Points", + "code": "intersection_points", + "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": "M0001", + "target_template_code": "M0001_CT0003", + "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": true, + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true + }, + "notes": "Mixed legacy ranges such as 'KI-11 thru KI-21' may remain text; individual canonical points should use content_ref." + } + } + }, + { + "name": "Paired Meridians", + "code": "paired_meridian", + "data_type": "json", + "default": null, + "definition_kind": "scalar", + "is_multivalue": false, + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "target_module_code": "M0001", + "target_template_code": "M0001_CT0007", + "cardinality": "one", + "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 + }, + "notes": "Paired extraordinary vessel is a same-template content_ref." + } + } + }, + { + "name": "Areas of Effect", + "code": "areas_of_effect", + "data_type": "text", + "multivalue": true, + "default": [] + }, + { + "name": "functions", + "code": "functions", + "data_type": "text", + "multivalue": true, + "default": [] + }, + { + "name": "pathway", + "code": "pathway", + "data_type": "json", + "default": {} + }, + { + "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": "content_ref", + "allowed_values": [ + "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." + } + }, + { + "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." + } + }, + { + "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." + } + } + ], + "metadata": { + "identity_contract": { + "authoring": "source_code", + "persisted": "source_key", + "runtime": "content_id" + } + } + } + ], + "metadata": { + "value_contract": { + "kind": "content_ref", + "contract_version": "1.0", + "reference_type": "content_ref", + "authoring_identity": "source_code", + "persisted_identity": "source_key", + "runtime_identity": "content_id", + "resolution_pipeline": "source_code -> source_key -> content_id", + "rules": { + "type_must_equal": "content_ref", + "source_code_authoring_only": true, + "source_key_persisted_only": true, + "content_id_runtime_only": true, + "do_not_infer_reference_from_label": true, + "do_not_infer_reference_from_plain_text": true + } + } + } + } + ], + "sort_order": 1, + "presentation_contracts": [ + { + "client_type": "mobile", + "version_no": 1, + "is_active": true, + "mode": "collection", + "renderers": { + "collection": "eov_collection", + "collection_item": "eov_card", + "detail": "eov_detail" + }, + "link": { + "renderer": "content_link" + }, + "attributes": [ + { + "attribute_key": "m0001_ct0007.name", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.alt_name", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.master_point", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.coupled_point", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.luo_point", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.xi_cleft_point", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.intersection_points", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.paired_meridian", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.areas_of_effect", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.functions", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.pathway", + "empty_behavior": "hide", + "visibility": "show", + "display_order": 0 + }, + { + "attribute_key": "m0001_ct0007.link", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.type", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.label", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.target", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.target.module_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.target.template_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.target.source_code", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_ct0007.link.target.source_key", + "empty_behavior": "hide", + "visibility": "hide" + }, + { + "attribute_key": "m0001_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" + } + } + ], + "metadata": { + "content_reference_policy": { + "contract_version": "1.0", + "explicit_relationships_only": true, + "authoring_reference_shape": { + "type": "content_ref", + "label": "", + "target": { + "module_code": "", + "template_code": "