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": "