gynecology-fix #114

Merged
amit merged 11 commits from gynecology-fix into main 2026-11-05 10:26:06 +00:00
7 changed files with 708 additions and 29 deletions

View File

@ -0,0 +1,611 @@
import React, { useMemo } from "react";
import { StyleSheet, Text, View } from "react-native";
import { Ionicons } from "@expo/vector-icons";
import { moderateScale, verticalScale } from "react-native-size-matters";
import { Colors } from "@/theme";
import { asString, humanizeKey } from "../helpers/value";
import { Hero } from "../shared/Hero";
import { CollectionScaffold } from "../shared/CollectionScaffold";
import type { CollectionRendererProps } from "../../types/renderer.types";
export interface GynecologyDiseaseInfo {
title: string;
code?: string;
overview: string;
}
export const GYNECOLOGY_DISEASE_DATA: Record<string, GynecologyDiseaseInfo> = {
"m0042_ct0011": {
title: "Early Periods",
code: "early_periods",
overview: "Early Periods are defined as periods that come consistently up to 9 days early so that the cycle is less than 28 days long; the definition applies if this happens more than twice in succession. The amount of bleeding may be normal, scanty or excessive.",
},
"m0042_ct0012": {
title: "Late Periods",
code: "late_periods",
overview: "The periods are defined as Late Periods when they arrive late so that the menstrual cycle is longer than 28–30 days consistently (or at least for 3 consecutive months). It can be up to 40–50 days long. If the periods are only occasionally late, this may be due to external circumstances such as emotional upsets or travelling. Obviously, if after always being regular the period is suddenly late one month, then this might indicate pregnancy.",
},
"m0042_ct0013": {
title: "Irregular Periods",
code: "irregular_periods",
overview: "The term ‘Irregular Periods’ refers to periods that come with an irregular cycle, sometimes early, sometimes late. It is important to note that if the periods come consistently early or consistently late, they fall under the categories of Early Periods or Late Periods respectively: thus, it is only when they are sometimes late and sometimes early in an unpredictable manner that they constitute Irregular Periods. An irregularity of the cycle in the time preceding the menopause is normal; similarly for some months after the menarche.",
},
"m0042_ct0014": {
title: "Heavy Periods",
code: "heavy_periods",
overview: "‘Heavy Periods’ means periods that occur regularly and last the customary 5 days or thereabouts but are heavier than normal. As mentioned in physiology, the average blood loss during a menstrual cycle is 30-80 ml. Since the range of blood loss is quite broad, the definition of a ‘heavy’ period can be rather subjective and difficult to gauge. Generally speaking, a period may be called ‘heavy’ if it starts with a gush of blood, catching the woman unaware and necessitating an urgent resort to a tampon or sanitary towel (pad), or if the woman has to make very frequent changes of these protective devices.\n\nAs a category of disease-symptom in Chinese medicine, Heavy Periods should be differentiated from Flooding and Trickling. The former consists of heavy bleeding which occurs at the proper time and within the proper span of the periods (approximately 5 days); the latter consists of very heavy bleeding that may both start before the proper time and continue after it, and may also trickle on for a long time after the period should have ended. The distinction between these two conditions is not too important in terms of pathology and treatment, which are essentially the same, but it matters from a prognostic perspective: in fact, Flooding and Trickling is more difficult to treat than Heavy Periods.",
},
"m0042_ct0015": {
title: "Scanty Periods",
code: "scanty_periods",
overview: "The periods are defined as ‘Scanty Periods’ when the bleeding is very light (so as to necessitate few changes of sanitary towels/pads or tampons), or when the bleeding lasts only 2–3 days or is extremely scanty, like a small drip. It is important to ask women about the amount of bleeding in detail as most of them do not see scanty bleeding as a ‘problem’. Thus, if we ask only a general question, such as ‘Is the amount of bleeding normal?’, a woman might reply ‘Yes’ although her periods in fact last only 2 days. Because few women see scanty periods as a matter of concern, it is seldom the main presenting problem and is usually treated only when it accompanies other conditions. For example, a woman might complain of tiredness as her main problem; were this due to Blood deficiency, her periods might be scanty and therefore need treatment.",
},
"m0042_ct0016": {
title: "Long Periods",
code: "long_periods",
overview: "Long Periods are characterized by prolonged bleeding which may last 7–10 days; the cycle is regular and the amount of bleeding itself is not excessive. Thus, they differ from Heavy Periods, in which the amount of bleeding is excessive, and from Flooding and Trickling, in which the cycle is somewhat irregular because bleeding can occur before the right time.",
},
"m0042_ct0017": {
title: "Painful Periods",
code: "painful_periods",
overview: "Painful Periods indicates menstrual pain that occurs before, during or after menstruation. The pain may occur in the lower abdomen or sacral region and sometimes extend to the legs. In severe cases, there may be nausea and vomiting or even fainting.\n\nThe Liver, Penetrating Vessel and Directing Vessel are responsible for the physiology of menstruation. For a normal period to occur, Blood must be abundant and move adequately. Proper movement of Blood relies on the free flow of Liver-Qi and of the Qi of the Penetrating Vessel.\n\nAs we have seen in physiology, four different phases may be identified in each menstrual cycle. During the pre-menstrual phase, Yang rises and Liver-Qi moves in preparation for moving Blood during the period. Thus, a proper movement of Liver-Qi and Liver-Blood is essential for a pain-free period. If Liver-Qi stagnates, it may cause pain, especially before the period, while if Liver-Blood stagnates, it causes pain during the period. Stagnation is therefore the most important pathological condition causing painful periods: even in deficiency conditions when the pain is mild, it is some element of stagnation that causes it.",
},
"m0042_ct0018": {
title: "Bleeding between Periods",
code: "bleeding_between_periods",
overview: "An irregularity of the cycle is menstrual bleeding that occurs consistently at about the mid-point of the cycle. The bleeding may last 1-2 days or even longer; if it lasts much longer and is relatively heavy, this condition may be mistakenly interpreted as being Early Periods. The main factors are usually a disharmony of Yin-Yang, imbalance of Qi and Blood, stasis of Blood or Damp-Heat.\n\nBleeding between Periods should be differentiated from Early Periods, Flooding and Trickling (Beng Lou) and Red or White-Red Leucorrhea. Early Periods are characterized by bleeding some time before the normal; the amount of bleeding is normal or profuse. Flooding and Trickling is characterized by either very heavy bleeding at or before the right time or long trickling of blood after the period. Red or Red–White Leucorrhea is characterized by a persistent discharge, unrelated to the cycle, but which, especially in the case of Red Leucorrhea, may be mistaken for menstrual blood.",
},
"m0042_ct0019": {
title: "No Periods (Amenorrhea)",
code: "no_periods_amenorrhea",
overview: "The absence of periods (amenorrhea) is called Bi Jing in Chinese: Jing means menstruation and bi means 'shut' or 'closed'. Western medicine distinguishes between primary amenorrhea, which occurs when a woman has not had a period by the time she is 18, and secondary amenorrhea, which occurs when a woman has had periods but they have stopped for at least 3 months.\n\nObviously, the temporary interruption of the menses that occurs after childbirth and during breastfeeding is not considered amenorrhea, nor, similarly, is the stopping of the menses for 1 or 2 months as a consequence of sudden environmental or living condition changes. If a woman presents with secondary amenorrhea, it is of course very important to exclude pregnancy first of all because, were the patient treated for amenorrhea, the medicines are contraindicated in pregnancy. We shall call this condition 'No Periods' rather than 'amenorrhea'.",
},
"m0042_ct0020": {
title: "Flooding and Trickling (Metrorrhagia)",
code: "flooding_and_trickling_metrorrhagia",
overview: "The condition of Flooding and Trickling is called Beng Lou in Chinese: beng means 'flood' or 'flooding, bursting through' and lou means 'trickle, drip, dribble' or 'trickling, dripping, dribbling, leaking'. It corresponds to metrorrhagia in Western medicine.\n\nFlooding and Trickling encompasses two distinct symptoms, the former (Beng) indicating a period that starts suddenly with a flood, often before the proper time, and the latter (Lou) a period that continues with a trickle after the proper time. Flooding and Trickling should be distinguished from Heavy Periods: the latter indicates heavy blood loss during the proper period time (about 5 days), with the periods coming at regular intervals, rather than the sudden, profuse and often early bleeding of Flooding. In terms of quantity, Flooding involves a heavier bleeding than Heavy Periods. In general, the pathology of Heavy Periods and of Flooding and Trickling is the same although the latter is a more serious condition and therefore more difficult to treat.\n\n“When Yin is deficient and Yang throbs, Flooding occurs”. This statement refers to pulse diagnosis, i.e. when the Yin pulses are deficient and the Yang pulses forceful, a woman may suffer from Flooding. However, the statement may also be interpreted in a general sense, i.e. when Yin is deficient and Yang in excess, there may be Flooding because excess Yang heats the Blood and makes it spill from the blood vessels.",
},
"m0042_ct0021": {
title: "Pre-Menstrual Syndrome (PMS)",
code: "pre_menstrual_syndrome_pms",
overview: "The term Pre-Menstrual Syndrome (PMS) broadly describes emotional and physical symptoms occurring before a period. These may include depression, sadness, irritability, anxiety, lethargy, loss of concentration, aggressiveness, changes in libido, changes in bowel habit, skin eruptions, food cravings, crying, propensity to outbursts of anger, clumsiness, distension of abdomen and breasts, and insomnia. These symptoms can vary in intensity from very mild to extremely serious; a woman suffering severe Pre-Menstrual Syndrome may actually injure a member of her family or some other person. The symptoms vary in duration as well as in intensity, ranging from 1 day to 2 weeks before the period. Rarely, these symptoms may be experienced after the period. Pre-Menstrual Syndrome is more common in the 30–40 age groups.",
},
"m0042_ct0031": {
title: "Pre-Menstrual Breast Distension",
code: "pre_menstrual_breast_distension",
overview: "Pre-menstrual breast distension is a very common problem occurring mostly before the onset of a period, although occasionally it may occur after a period. It can vary from mild to a very severe distension, with swelling, enlargement, hardness and pain. In many cases, pre-menstrual breast distension is also accompanied by small lumps in the breast which may become larger before and during the period and smaller afterwards. This corresponds to benign fibrocystic breast disease and will be discussed separately under the chapter on benign breast lumps.",
},
"m0042_ct0032": {
title: "Headaches During Periods",
code: "headaches_during_periods",
overview: "Headache occurring at period time is an extremely common problem. When chronic headache is linked to the menstrual cycle it must be treated by regulating the menses and the Uterus, plus any other treatment that may be called for. Headaches at period time may occur before, during or after the period; the incidence is more or less equal. As a rough guide, headaches occurring before the period are due to Qi or Blood stagnation; headaches during the period, to Liver-Yang rising; headaches after the period, to Blood deficiency. However, this is only a rough diagnostic guide and, in practice, there may be deviations from the above rule.",
},
"m0042_ct0033": {
title: "Edema During Periods",
code: "edema_during_periods",
overview: "Edema at period time can affect the face, hands, lower legs and abdomen. It usually occurs before the period.",
},
"m0042_ct0034": {
title: "Diarrhea During Period",
code: "diarrhea_during_period",
overview: "This includes diarrhea or loose stools occurring before, during or after each period.",
},
"m0042_ct0035": {
title: "Dizziness during Period",
code: "dizziness_during_period",
overview: "Dizziness during or in connection with the period is frequently encountered in clinical practice. It is most commonly associated with Blood deficiency or Liver-Yang rising.",
},
"m0042_ct0036": {
title: "Body Aches during Period",
code: "body_aches_during_period",
overview: "The aches and pains occur in connection with the menstrual cycle, they are often related to a Blood pathology rather than to actual Painful Obstruction Syndrome with invasion of external Wind, Dampness or Cold. Of course, the two conditions may be, and often are, combined so that there is a deficiency of Blood in the channel, which facilitates the invasion of external pathogenic factors. The treatment in such cases must definitely stress nourishing the Blood as, if this is not done, external pathogenic factors will not be expelled.",
},
"m0042_ct0037": {
title: "Fever during Period",
code: "fever_during_period",
overview: "‘Fever’ here includes both an actual fever and a pronounced feeling of heat, which is more frequent before or during the period but may also occur after it. It should be stressed that if there is only a feeling of heat, this should be both subjective and objective, i.e. the patient has a feeling of heat and her skin (particularly of the dorsum of the hands) also feels hot to the touch.",
},
"m0042_ct0038": {
title: "Mouth Ulcers during Period",
code: "mouth_ulcers_during_period",
overview: "This condition consists in the appearance of mouth and/or tongue ulcers at period time.",
},
"m0042_ct0039": {
title: "Skin Eruptions during Period",
code: "skin_eruptions_during_period",
overview: "Papular, itchy skin eruptions may appear suddenly before the period and subside after the period. Generalized skin eruptions such as these are not common but the localized around the chin and face are very common.",
},
"m0042_ct0040": {
title: "Epistaxis or Hemoptysis during Period",
code: "epistaxis_or_hemoptysis_during_period",
overview: "Epistaxis or hemoptysis may occur before, during or after the period. From a Western perspective, these symptoms may indicate endometriosis, but they may also occur in the absence of such a disease. From a Chinese perspective, they are usually associated with a situation of Qi rebelling upwards and are therefore strongly related to a Penetrating Vessel pathology: for these reasons, this condition was sometimes called ‘rebellious period’, or ‘reverse period’.",
},
"m0042_ct0051": {
title: "Morning Sickness",
code: "morning_sickness",
overview: "Morning sickness is one of the earliest signs of pregnancy although not all pregnant women have it. It may range from a mild nausea to very severe and frequent vomiting. It usually lasts only for about 3 months but in severe cases it may go on for a long time or even for the whole pregnancy. The intensity of morning sickness is obviously related to the pre-existing state of the woman’s digestive system. In spite of its name, ‘morning sickness’ can occur at any time of day although it is usually more pronounced in the morning.\n\nThe symptoms associated with nausea and vomiting should be carefully considered to distinguish Heat from Cold and deficiency from excess:\n• Vomiting soon after eating: Heat and Fullness.\n• Vomiting of dilute fluids: Cold and deficiency.\n• Vomiting with retching and belching: Liver-Qi stagnation.\n• Only slight nausea: Stomach-Qi deficiency.\n• Vomiting of sour fluids: Liver-Qi stagnation.\n• Vomiting of bitter fluids: Stomach and Liver-Heat.",
},
"m0042_ct0052": {
title: "Abdominal Pain during Pregnancy",
code: "abdominal_pain_during_pregnancy",
overview: "Mild abdominal pain is relatively frequent during pregnancy and in most cases it poses no danger to the mother or fetus. However, when faced by a pregnant woman with abdominal pain, we should first exclude the possibility of ectopic pregnancy or threatened miscarriage.",
},
"m0042_ct0053": {
title: "Fetus not Growing",
code: "fetus_not_growing",
overview: "There is essentially only one pattern in this condition and that is a deficiency of Blood and Kidneys in varying degrees. The Kidney deficiency may be of Yang or Yin.",
},
"m0042_ct0054": {
title: "Threatened Miscarriage",
code: "threatened_miscarriage",
overview: "Three conditions may be identified in Chinese medicine: ‘Vaginal Bleeding during Pregnancy’, ‘Restless Fetus’ and ‘Miscarriage’. These three conditions represent different stages of the same process: in the first two stages, the fetus has not yet been damaged and miscarriage can be prevented, while in the third stage the fetus has been injured or has already left the uterus and miscarriage cannot be prevented.\n\nFrom a Western perspective, ‘Vaginal Bleeding during Pregnancy’ corresponds to ‘threatened abortion’ and ‘Restless Fetus’ may correspond to either ‘threatened abortion’ or to ‘inevitable abortion’.\n\nWith regard to vaginal bleeding, however, it should be remembered that a slight bleeding a few weeks after becoming pregnant sometimes occurs without consequence and does not necessarily indicate a threatened miscarriage.",
},
"m0042_ct0055": {
title: "Habitual Miscarriage",
code: "habitual_miscarriage",
overview: "‘Habitual miscarriage’ is usually defined as such after three occurrences. In Chinese medicine, miscarriage takes different names according to the time of pregnancy it occurs. If it occurs within 1 month of pregnancy, it is called an chan, which means ‘hidden labor’. Between 1 and 3 months, it is called duo tai, which means ‘falling fetus’. After 3 months it is called xiao chan or ban chan, which mean ‘small labor’ or ‘half labor’ respectively. Habitual miscarriage is called hua tai, which means ‘slippery fetus’.\n\nIt is important to remember that, according to the experience of Chinese medicine, a miscarriage is as draining to a woman’s energy as labor.",
},
"m0042_ct0056": {
title: "Feeling of Suffocation during Pregnancy",
code: "feeling_of_suffocation_during_pregnancy",
overview: "This condition is called zi xuan in Chinese, xuan meaning ‘suspended’ or ‘anxious’, and also tai qi shang ni, which means ‘fetus’s Qi rebelling upwards’. It includes a feeling of tightness of the chest, anxiety, breathlessness and mental restlessness.",
},
"m0042_ct0057": {
title: "Edema during Pregnancy",
code: "edema_during_pregnancy",
overview: "In Chinese medicine, edema in pregnancy was given different names according to its location:\n• Zi zhong: ‘edema of pregnancy’, indicated edema of the face and whole body together with scanty urination.\n• Zi man: ‘fullness of pregnancy’, indicated swelling of the body with abdominal distension and breathlessness.\n• Zi Qi: ‘Qi of pregnancy’, referred to edema below the knees, with scanty urination, and was caused by Dampness.\n• Zhou jiao: ‘wrinkled foot’, indicated edema of the feet from Dampness.\n• Cui jiao: ‘brittle foot’, referred to edema of the feet from overflowing of Water.",
},
"m0042_ct0058": {
title: "Urinary Syndrome during Pregnancy",
code: "urinary_syndrome_during_pregnancy",
overview: "This condition includes frequency, pain and urgency of urination. It was called zi lin, i.e. ‘lin’ disease in pregnancy, ‘lin’ being Urinary Syndrome.",
},
"m0042_ct0059": {
title: "Retention of Urine during Pregnancy",
code: "retention_of_urine_during_pregnancy",
overview: "This condition is characterized by difficult urination, slight retention of urine, an uncomfortable feeling in the lower abdomen and a feeling of irritability.",
},
"m0042_ct0060": {
title: "Anxiety during Pregnancy",
code: "anxiety_during_pregnancy",
overview: "Anxiety in pregnancy is called zi fan, which literally means ‘child mental restlessness’, intending by that ‘mental restlessness of pregnancy’.",
},
"m0042_ct0061": {
title: "Dizziness during Pregnancy",
code: "dizziness_during_pregnancy",
overview: "Dizziness and vertigo, called zi yun, usually occur in the second and third trimesters of pregnancy. They occur with different degrees of severity: very severe vertigo can be a prodromal symptom of pre-eclampsia or eclampsia, which in Chinese medicine corresponds to ‘convulsions in pregnancy’ (zi xian).",
},
"m0042_ct0062": {
title: "Convulsions during Pregnancy",
code: "convulsions_during_pregnancy",
overview: "This condition is called zi xian, which means ‘convulsions in pregnancy’: it clearly corresponds to eclampsia in Western medicine. It is a condition that occurs not only in pregnancy but also soon after childbirth. The main manifestations are severe dizziness, headache, vomiting, hypertension and, in its late stages, tremors of limbs, convulsions and coma.",
},
"m0042_ct0063": {
title: "Cough during Pregnancy",
code: "cough_during_pregnancy",
overview: "Cough in pregnancy is a condition that is characterized not only by a persistent cough but also by mental restlessness and a feeling of heat.",
},
"m0042_ct0064": {
title: "Aphonia during Pregnancy",
code: "aphonia_during_pregnancy",
overview: "Loss of voice or hoarseness occurring towards the end of pregnancy is called zi yin, which means ‘loss of voice in pregnancy’.",
},
"m0042_ct0071": {
title: "Abdominal Pain after childbirth",
code: "abdominal_pain_after_childbirth",
overview: "The pathology of Abdominal Pain after Childbirth is, as always, characterized by either a deficiency or an excess condition. The Golden Mirror of Medicine says: \u201cPost-partum abdominal pain is caused by deficiency of Blood if there is heavy loss of blood; by stasis of Blood if lochia are retained; by retention of Food if there is poor appetite, distension and fullness; and by invasion of Cold if pain is accompanied by a cold feeling.\u201d Deficient Blood and Qi may cause abdominal pain of a deficient nature, i.e. quite mild, better with pressure and better after eating. Causes which are excess in nature include stagnation of Qi, stasis of Blood and retention of food: these cause a Full type of pain which is more intense, with a feeling of distension in the case of Qi stagnation and fixed, stabbing in the case of Blood stasis. Full-type pain is worse with pressure and worse after eating. It is also possible to have a mixed deficiency/excess condition since when Qi and Blood are deficient, they fail to move Blood properly and hence some stasis of Blood ensues. The Complete Works of Jing Yue says: \u201cDeficiency and Excess should be differentiated in the treatment of post-partum abdominal pain. Pain from stasis of Blood is of the Excess type, while that due to deficiency of Blood is of the Deficient type. Pain accompanied by a feeling of distension or a sensation as if a stream of air was rushing upwards to the chest and hypochondrium, aggravated by pressure, is of the Excess type. To treat it, one must move Qi and disperse. Pain without distension or fullness and alleviated by pressure, warmth or eating, is of the Deficient type. One should not use herbs that expel pathogenic factors.\u201d When a woman has abdominal pain after childbirth, any question of infection must first be excluded. From a Chinese perspective, abdominal pain from infection would be accompanied by shivering, fever that rises continuously and discharge of lochia with a smell like rancid soya sauce.",
},
"m0042_ct0072": {
title: "Breast Milk not Flowing",
code: "breast_milk_not_flowing",
overview: "This condition consists of scanty or absent breast milk after childbirth. The term \u2018Breast Milk not Flowing\u2019 is used in place of \u2018Insufficient Lactation\u2019 or \u2018Agalactia\u2019 because these two terms imply a deficiency, a lack of a vital substance; lack of breast milk, however, may be due not only to a deficiency of milk but also to an obstruction or stagnation that prevents the flow of milk.",
},
"m0042_ct0073": {
title: "Collapse after Childbirth",
code: "collapse_after_childbirth",
overview: "Collapse after Childbirth indicates a condition characterized by severe dizziness with a sudden onset. The woman cannot stand or sit, she has blurred vision and a feeling of tightness of the chest, she suffers nausea and vomiting and, in extreme cases, may faint.",
},
"m0042_ct0074": {
title: "Constipation after Childbirth",
code: "4.07",
overview: "Constipation after Childbirth refers to difficult, dry or very infrequent defecation. Constipation occurring after childbirth in a woman who previously had regular bowel movements is usually due to Blood deficiency and dryness following excessive blood loss during labor. When Blood and fluids are exhausted, the Large Intestine is affected and deficiency of fluids in this organ makes the passage of stools difficult. A state of dryness may also occur as a result of profuse spontaneous sweating after childbirth, but this is rare. Apart from the Large Intestine, the pathology of constipation after childbirth is also related to the Liver when deficient Liver-Blood fails to moisten the faces, and to the Lungs when deficient Lung-Qi fails to descend to the Large Intestine to provide Qi for the effort of defecation.",
},
"m0042_ct0075": {
title: "Convulsions after Childbirth",
code: "convulsions_after_childbirth",
overview: "Convulsions after Childbirth is characterized by rigidity of the spine, tremor of limbs, lockjaw and opisthotonos (a spasm in which the head and heels are bent backwards and the body bowed forward). If only the first two signs are present, the condition is considered not too severe; if there is also lockjaw and opisthotonos, the condition is serious; if, in addition, the woman sweats on the forehead, with the sweat being like beads, the limbs are cold and the breathing is inaudible, then the condition is dangerous.",
},
"m0042_ct0076": {
title: "Fever after Childbirth",
code: "fever_after_childbirth",
overview: "Fever after childbirth may be continuous but relatively low or sudden and high. Persistent fever of at least 38\u00b0C (100\u00b0F), which does not abate on its own and is accompanied by other symptoms and signs, may result from weakened Upright Qi, imbalance of Nutritive and Defensive Qi, Exterior pathogenic factors, or deficiency of Blood or Yin.",
},
"m0042_ct0077": {
title: "Hemorrhoids after Childbirth",
code: "4.08",
overview: "Hemorrhoids are varicose veins in the rectum wall. They are usually classified as first, second or third degree. First-degree hemorrhoids do not prolapse; second-degree ones prolapse on defecation but return into position spontaneously; third-degree ones remain prolapsed outside the anus. Hemorrhoids are due to congestion in the pelvic veins; this occurs frequently during pregnancy and after labor due to the pressure of the fetus on the pelvic veins and to the bearing-down efforts during labor. The development of constipation during pregnancy is also a contributory factor. The main symptoms of hemorrhoids are rectal discomfort or pain, anal itching and bleeding. In Chinese medicine, the pathology of hemorrhoids consists of Qi deficiency, Damp-Heat and Toxic-Heat. Deficient Qi fails to lift the organs and this may cause the sagging of veins in the rectum. Damp-Heat in the Large Intestine causes the pain and itching of the anus; Toxic-Heat causes more intense anal pain. When Heat invades the Blood, anal bleeding from the hemorrhoids occurs. Thus, the main treatment principles for hemorrhoids are to tonify and raise Qi, resolve Dampness, clear Heat, resolve Toxic-Heat and cool the Blood. The formulae used are distinguished according to internal or external hemorrhoids.",
},
"m0042_ct0078": {
title: "Joint Pain after Childbirth",
code: "joint_pain_after_childbirth",
overview: "Joint Pain after Childbirth includes pain, ache, soreness, numbness or feeling of heaviness in the joints, back or knees after childbirth. It pertains to the broad disease category of Painful Obstruction Syndrome but has specific characteristics and pathology when it occurs after childbirth. Its pathology may be of external origin, such as invasion of Wind, or internal origin, including Blood deficiency, Liver and Kidney deficiency, and Blood stasis.",
},
"m0042_ct0079": {
title: "Persistent Lochial discharge",
code: "persistent_lochial_discharge",
overview: "Persistent Lochial Discharge consists in a lochial discharge that goes on for longer than normal and continues to be red in colour rather than changing to a yellowish, serous discharge. Lochia refers to the bloody discharge coming from the placental site. The normal time of lochial discharge is about 3 weeks. The pathology of Persistent Lochial Discharge consists in three possible conditions: Qi deficiency, Blood stasis or Blood-Heat. When Qi is deficient, it fails to hold Blood and bleeding results: in this case, the blood discharged will be pale. When Blood stagnates, the blood vessels and the uterus are obstructed by stagnant Blood; as newly generated Blood has nowhere to go, it leaks out. In this case, the lochial discharge is dark and with clots. When Heat invades the Blood portion, it makes Blood reckless so that it pushes out of the blood vessels, causing bleeding: in this case, the lochial discharge will be bright red or dark red.",
},
"m0042_ct0080": {
title: "Post-Natal Depression",
code: "post_natal_depression",
overview: "The pathology of post-natal depression in Chinese medicine revolves around Blood: the exertion and loss of blood occurring at childbirth induce a state of Blood deficiency; since the Heart houses the Mind and governs Blood, Heart-Blood becomes deficient, the Mind has no residence and it becomes depressed and anxious. This causes a state of depression, mild anxiety, insomnia and fatigue: on a mental level the mother feels unable to cope, she is tearful, she loses any libido and she may feel angry or guilty. From Blood deficiency, other conditions may develop: after some time, and in women who have a predisposition to Yin deficiency, Blood deficiency may give rise to Yin deficiency and Empty-Heat. This would cause a more severe condition of depression with more intense anxiety, insomnia, mental restlessness and agitation. Conditions of neurotic, obsessive, phobic or psychotic behavior after childbirth are usually due to stagnant Blood harassing the Mind (rather than the more common Phlegm-Heat). In such cases, the woman is not only depressed but also confused, she may display obsessive behavior or phobias and, in extreme cases, she may manifest psychotic behavior. She may be aggressive and offensive, she may have hallucinations and delusions and she may display suicidal tendencies and even harbor destructive thoughts against her baby. Of course, every woman suffering from post-natal depression will present with pre-existing disharmonies which will play a role in the pathology of this condition. For example, Phlegm is an important contributory factor as it obstructs the Mind.",
},
"m0042_ct0081": {
title: "Retention of Lochia",
code: "retention_of_lochia",
overview: "Retention of lochia is characterized by the complete absence of lochial discharge or by a very scanty discharge, usually accompanied by abdominal pain. The pathology of the condition is always stasis of Blood. This may derive either from stagnation of Qi or from invasion of Cold in the Uterus. Thus, the etiology of the condition is either emotional problems leading to stagnation of Qi and stasis of Blood, or invasion of external cold during or after labor.",
},
"m0042_ct0082": {
title: "Spontaneous Flow of Milk",
code: "spontaneous_flow_of_milk",
overview: "This condition consists of a spontaneous flow of milk not elicited by the suckling of the baby; it is called in Chinese lou ru, which means \u2018trickling breast\u2019.",
},
"m0042_ct0083": {
title: "Sweating after Childbirth",
code: "sweating_after_childbirth",
overview: "The condition Sweating after Childbirth refers to either day-time or night-time sweating. After childbirth, Qi and Blood are deficient and skin pores are open. Sweating is likely to occur when eating or during sleep. It usually stops spontaneously in a few days. Profuse sweating that continues for a long time is pathological. Sweating after childbirth is one of the three acute conditions, called san ji, during the post-partum stage. Thus, it should be arrested as soon as possible in order to prevent collapse of Yin or collapse of Yang. The pathology of Sweating after Childbirth is always one of deficiency. Qi deficiency causes sweating in day-time and deficiency of Yin sweating at night. The type of fluids lost in day-time is different from that lost at night. In day-time sweating, it is the superficial fluids that circulate with the Defensive Qi in the space between the skin and muscles that leak out; in night-time sweating, the Yin essence from the Yin portion. Because these fluids come from the deep, Yin, energetic layers, this type of sweating is also called \u2018steaming from the bones.\u2019 Sweating is always taken seriously in Chinese medicine because it is a self-perpetuating pathological process. In fact, in day-time sweating the loss of fluids from the space between skin and muscles induces a deficiency of Qi because that is where Defensive Qi circulates. In night-time sweating, the fluids leaking from the Yin energetic layers represent a loss of precious Yin essences. Because of this, night-time sweat is supposed to taste sweet being composed of Yin essences, whereas day-time sweat tastes salty. The organs affected are mostly the Lungs and Kidneys: The Lungs are affected in day-time sweating as they govern Qi, control the Defensive Qi and the space between skin and muscles. In night-time sweating, the Lungs and/or the Kidneys are affected.",
},
"m0042_ct0084": {
title: "Urinary Difficulty after Childbirth",
code: "urinary_difficulty_after_childbirth",
overview: "Urinary Difficulty after Childbirth includes a range of urinary problems, from difficulty in urination and retention of urine, to their opposites, frequency of urination and incontinence of urine. They can be dealt with together because the cause is always a deficiency occurring after childbirth, and addressing the underlying deficiency cures the urinary problems. The mother\u2019s conditions included under this heading are urinary problems without fever or pain; thus, from a Western point of view, they are urinary problems without a urinary infection. The pathology of Urinary Difficulty after Childbirth, according to the traditional theory, is always one of deficiency and primarily of the Spleen or Kidneys. Deficient Spleen-Qi may cause sinking of the Qi of the Bladder and thus frequent urination or incontinence; or it may fail to transform and transport fluids so that urine is retained. Deficient Kidney-Qi fails to provide Qi to the Bladder for its function of Qi transformation, there is not enough Qi to hold the urine, and frequency and incontinence result. Alternatively, Kidney-Qi may be so deficient that there is no strength to push the urine out and retention of urine ensues. This type of Kidney-Qi deficiency always occurs against a background of Kidney-Yang deficiency.",
},
"m0042_ct0091": {
title: "Abdominal Masses",
code: "abdominal_masses",
overview: "In Traditional Chinese Medicine, abdominal masses are categorized as Zheng Jia. Zheng refers to fixed, hard masses with tangible form, primarily associated with Blood stasis and localized in the Yin organs. Jia refers to movable, intangible masses without fixed shape, characterized by pain that comes and goes, primarily associated with Qi stagnation and localized in the Yang organs. As for pathology, abdominal masses are always characterized by either stagnation of Qi or stasis of Blood, the former being non-substantial and the latter substantial masses. In addition to stagnation, there may also be Phlegm. However, in all cases of abdominal masses there is always an underlying deficiency of Qi. Deficient Qi fails to transport and transform and, leading to stagnation of Qi and Blood, it allows masses to form. Masses from stagnation of Qi come and go, are movable on palpation and change location. If there is pain, the pain has no fixed location and is accompanied by a pronounced feeling of distension. Masses from stasis of Blood are fixed in location, they are not movable on palpation and feel quite hard. If there is pain, it is fixed and stabbing in character. Masses from Phlegm feel soft on palpation and have a fixed location. There is usually no pain.",
},
"m0042_ct0092": {
title: "Breast Lumps",
code: "breast_lumps",
overview: "In Traditional Chinese Medicine, breast lumps are classified under the category of Ru Pi (Breast Mass/Nodule). The pathology primarily revolves around the Liver, Spleen, and Stomach meridians, alongside the Chong (Penetrating) and Ren (Conception) vessels. Anatomically in TCM, the breast tissue is governed by the Stomach meridian, while the nipple is governed by the Liver meridian. The core mechanism is the stagnation of Qi, which fails to move body fluids, leading to the coagulation of Phlegm. When Qi and Phlegm stagnate in the collateral channels of the breast over time, Blood stasis develops, forming palpable masses.",
},
"m0042_ct0093": {
title: "Endometriosis",
code: "endometriosis",
overview: "Endometriosis is a condition resulting from the presence of actively growing and functioning endometrial tissue in locations outside the uterus. The areas where endometriosis may occur are widespread and usually multiple. They include ovaries, uterine wall, fallopian tubes, abdominal scars, umbilicus, sigmoid colon, rectum, ureters, bladder, and vagina.",
},
"m0042_ct0094": {
title: "Excessive Vaginal Discharge",
code: "excessive_vaginal_discharge",
overview: "In Traditional Chinese Medicine, excessive vaginal discharge is classified as Dai Xia Bing (Disease of the Girdle Vessel). The pathology is centrally rooted in the dysfunction of the Dai (Girdle) and Ren (Conception) vessels. The Dai Mai binds all longitudinal meridians; when its restraining capacity is impaired, coupled with accumulated Dampness in the lower Jiao, pathological fluid leaks downward. The core pathogenic factor is always Dampness, whether generated internally through Zang-Fu organ dysfunction or invading from exogenous sources.",
},
"m0042_ct0095": {
title: "Genital Eczema",
code: "genital_eczema",
overview: "Genital eczema in women manifests with a red rash, vesicles or papules around the external genitalia. The vesicles or papules exude a fluid. This problem is due to the downward infusion of Damp-Heat in the genital area or to deficiency and dryness of the Blood.",
},
"m0042_ct0096": {
title: "Infertility",
code: "infertility",
overview: "Infertility Infertility is defined as the inability to produce offspring in a woman who has been trying for 2 years with a normal sexual life and, of course, the reproductive function of whose partner is normal. Infertility is frequently treated in China according to the four phases of the menstrual cycle, i.e. the period, the postmenstrual, the inter-menstrual and the pre-menstrual phases. The treatment principles in each phase are as follows: Period phase: regulate menstruation (i.e. stop bleeding if period is heavy or invigorate Blood if it is scanty). Post-menstrual phase: nourish Blood and tonify the Kidneys. Inter-menstrual phase: tonify the Kidneys and consolidate the Directing and Penetrating Vessels. If necessary, resolve Dampness or Phlegm. Pre-menstrual phase: tonify Yang and move Liver-Qi. If necessary, resolve Phlegm, invigorate Blood, expel Cold. Identification of Patterns and Treatment Empty Condition",
},
"m0042_ct0097": {
title: "Menopausal Syndrome",
code: "menopausal_syndrome",
overview: "Menopausal Syndrome \u2018Menopause\u2019 indicates the complete or permanent cessation of menstruation: an interval of 6-12 months is usually necessary to establish the diagnosis. \u2018Climacteric\u2019 indicates the phase in a woman\u2019s life during which she makes the transition from a reproductive to a non-reproductive stage: this transition is a period of declining ovarian function which usually spans 2-5 years around the menopause. Thus, when we refer to the discomfort and symptoms appearing during these years, it would be more appropriate to call them Climacteric Syndrome rather than Menopausal Syndrome. Menopause usually occurs between the ages of 48 and 55 and the median age in industrialized countries is about 51. Identification of Patterns and Treatment",
},
"m0042_ct0098": {
title: "Myoma",
code: "myoma",
overview: "Myomas (or \u2018fibroids\u2019) are very common benign uterine tumors in women. Uterine myomas are benign tumors that grow within the muscle tissue of the uterus. They are commonly called \u2018fibroids.\u2019 Between 20% and 50% of women of childbearing age have uterine myomas. While many women do not experience any problems, symptoms can be severe enough to require treatment. Myomas range in size from very small to larger than a melon. A very large uterine myoma can cause the uterus to expand to the size of a six- or seven-month pregnancy. There can either be one dominant myoma or a cluster of many small myomas. There are several types of myomas differentiated according to their location: Sub-serous myomas develop in the outer wall of the uterus and continue to grow outward. Intramural (or interstitial) myomas develop within the uterine wall and expand, making the uterus feel larger than normal. This is the most common type of myoma. Sub-mucous myomas develop just under the lining of the uterine cavity. These are the myomas that, more than others, tend to cause heavy menstrual bleeding and the ones that can cause problems with infertility and miscarriage.",
},
"m0042_ct0099": {
title: "Pcos",
code: "pcos",
overview: "Polycystic ovary syndrome (PCOS) is a common hormonal disorder that affects women during their reproductive years and beyond, into later stages of life. PCOS occurs when inappropriate hormonal signaling leads to higher-than-normal androgen levels and other hormonal imbalances. As a result, women with PCOS may experience irregular or infrequent menstrual periods, pain - including pain with heavy menstrual bleeding, abnormal ovulation, changes in hair (either excessive facial or body hair or female-pattern baldness), oilier skin, acne and/or cysts in the ovaries. PCOS is a leading cause of irregular menstrual periods and one of the most common causes of infertility. Irregular or infrequent menstrual periods among women with PCOS may also raise their risk for endometrial hyperplasia and/or endometrial cancer. PCOS can start as early as during adolescence but is most commonly detected or diagnosed when women struggle to become pregnant. Further, PCOS is a chronic metabolic condition associated with heightened long-term risk for insulin resistance, type 2 diabetes mellitus and obesity. There is currently no cure for PCOS, but lifestyle changes, medications and fertility treatments can reduce symptoms, increase fertility rates and protect longer-term health. Identification of Patterns and Treatment",
},
"m0042_ct0100": {
title: "Prolapse of the Uterus",
code: "prolapse_of_the_uterus",
overview: "In Traditional Chinese Medicine, uterine prolapse is classified under the category of Yin Ting (Prolapse of the Uterus / Vaginal Prolapse). The pathology is fundamentally viewed as a failure of the body's lifting and holding mechanisms, governed primarily by the Spleen and the Kidneys. When the supportive structural integrity of the Chong (Penetrating), Ren (Conception), and Dai (Girdle) vessels weakens, the uterus loses its suspension and descends.",
},
"m0042_ct0101": {
title: "Vaginal Itching",
code: "vaginal_itching",
overview: "In Traditional Chinese Medicine, vaginal and vulvar itching is classified as Yin Yang (Itching of the Genitals). The pathology is intimately connected to the Liver meridian, which anatomically curves around the external genitalia. Consequently, systemic imbalances affecting the Liver network readily manifest as localized symptoms in the vulvovaginal region. The core mechanisms involve either the downward pouring of pathogenic excess (Damp-Heat) or a lack of nourishment causing internal Wind (Yin and Blood deficiency).",
},
"m0042_ct0102": {
title: "Vulvar Sores",
code: "vulvar_sores",
overview: "Vulvar Sores\u2019, called Yin Chuang in Chinese medicine, may manifest with vulvar swelling, pain, itching, erosion, lumps, discharge of pus and excessive vaginal discharge. These local manifestations may be accompanied by systemic symptoms and signs such as shivers, fever, lassitude, abdominal distension, dark urine, thirst, constipation, a Slippery or Wiry and Rapid pulse and a Red tongue with a thick, sticky yellow coating. This Chinese disease category may correspond to various diseases of the genitalia such as vulvitis, vaginitis, boils or ulcers of the external genitalia, inflammation of the Bartholin\u2019s glands, cancer of the external genitalia or genital herpes.",
},
"abdominal_pain_after_childbirth": {
title: "Abdominal Pain after childbirth",
code: "abdominal_pain_after_childbirth",
overview: "The pathology of Abdominal Pain after Childbirth is, as always, characterized by either a deficiency or an excess condition. The Golden Mirror of Medicine says: \u201cPost-partum abdominal pain is caused by deficiency of Blood if there is heavy loss of blood; by stasis of Blood if lochia are retained; by retention of Food if there is poor appetite, distension and fullness; and by invasion of Cold if pain is accompanied by a cold feeling.\u201d Deficient Blood and Qi may cause abdominal pain of a deficient nature, i.e. quite mild, better with pressure and better after eating. Causes which are excess in nature include stagnation of Qi, stasis of Blood and retention of food: these cause a Full type of pain which is more intense, with a feeling of distension in the case of Qi stagnation and fixed, stabbing in the case of Blood stasis. Full-type pain is worse with pressure and worse after eating. It is also possible to have a mixed deficiency/excess condition since when Qi and Blood are deficient, they fail to move Blood properly and hence some stasis of Blood ensues. The Complete Works of Jing Yue says: \u201cDeficiency and Excess should be differentiated in the treatment of post-partum abdominal pain. Pain from stasis of Blood is of the Excess type, while that due to deficiency of Blood is of the Deficient type. Pain accompanied by a feeling of distension or a sensation as if a stream of air was rushing upwards to the chest and hypochondrium, aggravated by pressure, is of the Excess type. To treat it, one must move Qi and disperse. Pain without distension or fullness and alleviated by pressure, warmth or eating, is of the Deficient type. One should not use herbs that expel pathogenic factors.\u201d When a woman has abdominal pain after childbirth, any question of infection must first be excluded. From a Chinese perspective, abdominal pain from infection would be accompanied by shivering, fever that rises continuously and discharge of lochia with a smell like rancid soya sauce.",
},
"breast_milk_not_flowing": {
title: "Breast Milk not Flowing",
code: "breast_milk_not_flowing",
overview: "This condition consists of scanty or absent breast milk after childbirth. The term \u2018Breast Milk not Flowing\u2019 is used in place of \u2018Insufficient Lactation\u2019 or \u2018Agalactia\u2019 because these two terms imply a deficiency, a lack of a vital substance; lack of breast milk, however, may be due not only to a deficiency of milk but also to an obstruction or stagnation that prevents the flow of milk.",
},
"collapse_after_childbirth": {
title: "Collapse after Childbirth",
code: "collapse_after_childbirth",
overview: "Collapse after Childbirth indicates a condition characterized by severe dizziness with a sudden onset. The woman cannot stand or sit, she has blurred vision and a feeling of tightness of the chest, she suffers nausea and vomiting and, in extreme cases, may faint.",
},
"constipation_after_childbirth": {
title: "Constipation after Childbirth",
code: "constipation_after_childbirth",
overview: "Constipation after Childbirth refers to difficult, dry or very infrequent defecation. Constipation occurring after childbirth in a woman who previously had regular bowel movements is usually due to Blood deficiency and dryness following excessive blood loss during labor. When Blood and fluids are exhausted, the Large Intestine is affected and deficiency of fluids in this organ makes the passage of stools difficult. A state of dryness may also occur as a result of profuse spontaneous sweating after childbirth, but this is rare. Apart from the Large Intestine, the pathology of constipation after childbirth is also related to the Liver when deficient Liver-Blood fails to moisten the faces, and to the Lungs when deficient Lung-Qi fails to descend to the Large Intestine to provide Qi for the effort of defecation.",
},
"convulsions_after_childbirth": {
title: "Convulsions after Childbirth",
code: "convulsions_after_childbirth",
overview: "Convulsions after Childbirth is characterized by rigidity of the spine, tremor of limbs, lockjaw and opisthotonos (a spasm in which the head and heels are bent backwards and the body bowed forward). If only the first two signs are present, the condition is considered not too severe; if there is also lockjaw and opisthotonos, the condition is serious; if, in addition, the woman sweats on the forehead, with the sweat being like beads, the limbs are cold and the breathing is inaudible, then the condition is dangerous.",
},
"fever_after_childbirth": {
title: "Fever after Childbirth",
code: "fever_after_childbirth",
overview: "Fever after childbirth may be continuous but relatively low or sudden and high. Persistent fever of at least 38\u00b0C (100\u00b0F), which does not abate on its own and is accompanied by other symptoms and signs, may result from weakened Upright Qi, imbalance of Nutritive and Defensive Qi, Exterior pathogenic factors, or deficiency of Blood or Yin.",
},
"hemorrhoids_after_childbirth": {
title: "Hemorrhoids after Childbirth",
code: "hemorrhoids_after_childbirth",
overview: "Hemorrhoids are varicose veins in the rectum wall. They are usually classified as first, second or third degree. First-degree hemorrhoids do not prolapse; second-degree ones prolapse on defecation but return into position spontaneously; third-degree ones remain prolapsed outside the anus. Hemorrhoids are due to congestion in the pelvic veins; this occurs frequently during pregnancy and after labor due to the pressure of the fetus on the pelvic veins and to the bearing-down efforts during labor. The development of constipation during pregnancy is also a contributory factor.\n\nThe main symptoms of hemorrhoids are rectal discomfort or pain, anal itching and bleeding. In Chinese medicine, the pathology of hemorrhoids consists of Qi deficiency, Damp-Heat and Toxic-Heat. Deficient Qi fails to lift the organs and this may cause the sagging of veins in the rectum. Damp-Heat in the Large Intestine causes the pain and itching of the anus; Toxic-Heat causes more intense anal pain. When Heat invades the Blood, anal bleeding from the hemorrhoids occurs.\n\nThus, the main treatment principles for hemorrhoids are to tonify and raise Qi, resolve Dampness, clear Heat, resolve Toxic-Heat and cool the Blood. The formulae used are distinguished according to internal or external hemorrhoids.",
},
"joint_pain_after_childbirth": {
title: "Joint Pain after Childbirth",
code: "joint_pain_after_childbirth",
overview: "Joint Pain after Childbirth includes pain, ache, soreness, numbness or feeling of heaviness in the joints, back or knees after childbirth. It pertains to the broad disease category of Painful Obstruction Syndrome but has specific characteristics and pathology when it occurs after childbirth. Its pathology may be of external origin, such as invasion of Wind, or internal origin, including Blood deficiency, Liver and Kidney deficiency, and Blood stasis.",
},
"persistent_lochial_discharge": {
title: "Persistent Lochial discharge",
code: "persistent_lochial_discharge",
overview: "Persistent Lochial Discharge consists in a lochial discharge that goes on for longer than normal and continues to be red in colour rather than changing to a yellowish, serous discharge. Lochia refers to the bloody discharge coming from the placental site. The normal time of lochial discharge is about 3 weeks. The pathology of Persistent Lochial Discharge consists in three possible conditions: Qi deficiency, Blood stasis or Blood-Heat. When Qi is deficient, it fails to hold Blood and bleeding results: in this case, the blood discharged will be pale. When Blood stagnates, the blood vessels and the uterus are obstructed by stagnant Blood; as newly generated Blood has nowhere to go, it leaks out. In this case, the lochial discharge is dark and with clots. When Heat invades the Blood portion, it makes Blood reckless so that it pushes out of the blood vessels, causing bleeding: in this case, the lochial discharge will be bright red or dark red.",
},
"post_natal_depression": {
title: "Post-Natal Depression",
code: "post_natal_depression",
overview: "The pathology of post-natal depression in Chinese medicine revolves around Blood: the exertion and loss of blood occurring at childbirth induce a state of Blood deficiency; since the Heart houses the Mind and governs Blood, Heart-Blood becomes deficient, the Mind has no residence and it becomes depressed and anxious. This causes a state of depression, mild anxiety, insomnia and fatigue: on a mental level the mother feels unable to cope, she is tearful, she loses any libido and she may feel angry or guilty. From Blood deficiency, other conditions may develop: after some time, and in women who have a predisposition to Yin deficiency, Blood deficiency may give rise to Yin deficiency and Empty-Heat. This would cause a more severe condition of depression with more intense anxiety, insomnia, mental restlessness and agitation. Conditions of neurotic, obsessive, phobic or psychotic behavior after childbirth are usually due to stagnant Blood harassing the Mind (rather than the more common Phlegm-Heat). In such cases, the woman is not only depressed but also confused, she may display obsessive behavior or phobias and, in extreme cases, she may manifest psychotic behavior. She may be aggressive and offensive, she may have hallucinations and delusions and she may display suicidal tendencies and even harbor destructive thoughts against her baby. Of course, every woman suffering from post-natal depression will present with pre-existing disharmonies which will play a role in the pathology of this condition. For example, Phlegm is an important contributory factor as it obstructs the Mind.",
},
"retention_of_lochia": {
title: "Retention of Lochia",
code: "retention_of_lochia",
overview: "Retention of lochia is characterized by the complete absence of lochial discharge or by a very scanty discharge, usually accompanied by abdominal pain. The pathology of the condition is always stasis of Blood. This may derive either from stagnation of Qi or from invasion of Cold in the Uterus. Thus, the etiology of the condition is either emotional problems leading to stagnation of Qi and stasis of Blood, or invasion of external cold during or after labor.",
},
"spontaneous_flow_of_milk": {
title: "Spontaneous Flow of Milk",
code: "spontaneous_flow_of_milk",
overview: "This condition consists of a spontaneous flow of milk not elicited by the suckling of the baby; it is called in Chinese lou ru, which means \u2018trickling breast\u2019.",
},
"sweating_after_childbirth": {
title: "Sweating after Childbirth",
code: "sweating_after_childbirth",
overview: "The condition Sweating after Childbirth refers to either day-time or night-time sweating. After childbirth, Qi and Blood are deficient and skin pores are open. Sweating is likely to occur when eating or during sleep. It usually stops spontaneously in a few days. Profuse sweating that continues for a long time is pathological. Sweating after childbirth is one of the three acute conditions, called san ji, during the post-partum stage. Thus, it should be arrested as soon as possible in order to prevent collapse of Yin or collapse of Yang. The pathology of Sweating after Childbirth is always one of deficiency. Qi deficiency causes sweating in day-time and deficiency of Yin sweating at night. The type of fluids lost in day-time is different from that lost at night. In day-time sweating, it is the superficial fluids that circulate with the Defensive Qi in the space between the skin and muscles that leak out; in night-time sweating, the Yin essence from the Yin portion. Because these fluids come from the deep, Yin, energetic layers, this type of sweating is also called \u2018steaming from the bones.\u2019 Sweating is always taken seriously in Chinese medicine because it is a self-perpetuating pathological process. In fact, in day-time sweating the loss of fluids from the space between skin and muscles induces a deficiency of Qi because that is where Defensive Qi circulates. In night-time sweating, the fluids leaking from the Yin energetic layers represent a loss of precious Yin essences. Because of this, night-time sweat is supposed to taste sweet being composed of Yin essences, whereas day-time sweat tastes salty. The organs affected are mostly the Lungs and Kidneys: The Lungs are affected in day-time sweating as they govern Qi, control the Defensive Qi and the space between skin and muscles. In night-time sweating, the Lungs and/or the Kidneys are affected.",
},
"urinary_difficulty_after_childbirth": {
title: "Urinary Difficulty after Childbirth",
code: "urinary_difficulty_after_childbirth",
overview: "Urinary Difficulty after Childbirth includes a range of urinary problems, from difficulty in urination and retention of urine, to their opposites, frequency of urination and incontinence of urine. They can be dealt with together because the cause is always a deficiency occurring after childbirth, and addressing the underlying deficiency cures the urinary problems. The mother\u2019s conditions included under this heading are urinary problems without fever or pain; thus, from a Western point of view, they are urinary problems without a urinary infection. The pathology of Urinary Difficulty after Childbirth, according to the traditional theory, is always one of deficiency and primarily of the Spleen or Kidneys. Deficient Spleen-Qi may cause sinking of the Qi of the Bladder and thus frequent urination or incontinence; or it may fail to transform and transport fluids so that urine is retained. Deficient Kidney-Qi fails to provide Qi to the Bladder for its function of Qi transformation, there is not enough Qi to hold the urine, and frequency and incontinence result. Alternatively, Kidney-Qi may be so deficient that there is no strength to push the urine out and retention of urine ensues. This type of Kidney-Qi deficiency always occurs against a background of Kidney-Yang deficiency.",
},
"abdominal_masses": {
title: "Abdominal Masses",
code: "abdominal_masses",
overview: "In Traditional Chinese Medicine, abdominal masses are categorized as Zheng Jia. Zheng refers to fixed, hard masses with tangible form, primarily associated with Blood stasis and localized in the Yin organs. Jia refers to movable, intangible masses without fixed shape, characterized by pain that comes and goes, primarily associated with Qi stagnation and localized in the Yang organs. As for pathology, abdominal masses are always characterized by either stagnation of Qi or stasis of Blood, the former being non-substantial and the latter substantial masses. In addition to stagnation, there may also be Phlegm. However, in all cases of abdominal masses there is always an underlying deficiency of Qi. Deficient Qi fails to transport and transform and, leading to stagnation of Qi and Blood, it allows masses to form. Masses from stagnation of Qi come and go, are movable on palpation and change location. If there is pain, the pain has no fixed location and is accompanied by a pronounced feeling of distension. Masses from stasis of Blood are fixed in location, they are not movable on palpation and feel quite hard. If there is pain, it is fixed and stabbing in character. Masses from Phlegm feel soft on palpation and have a fixed location. There is usually no pain.",
},
"breast_lumps": {
title: "Breast Lumps",
code: "breast_lumps",
overview: "In Traditional Chinese Medicine, breast lumps are classified under the category of Ru Pi (Breast Mass/Nodule). The pathology primarily revolves around the Liver, Spleen, and Stomach meridians, alongside the Chong (Penetrating) and Ren (Conception) vessels. Anatomically in TCM, the breast tissue is governed by the Stomach meridian, while the nipple is governed by the Liver meridian. The core mechanism is the stagnation of Qi, which fails to move body fluids, leading to the coagulation of Phlegm. When Qi and Phlegm stagnate in the collateral channels of the breast over time, Blood stasis develops, forming palpable masses.",
},
"endometriosis": {
title: "Endometriosis",
code: "endometriosis",
overview: "Endometriosis is a condition resulting from the presence of actively growing and functioning endometrial tissue in locations outside the uterus. The areas where endometriosis may occur are widespread and usually multiple. They include ovaries, uterine wall, fallopian tubes, abdominal scars, umbilicus, sigmoid colon, rectum, ureters, bladder, and vagina.",
},
"excessive_vaginal_discharge": {
title: "Excessive Vaginal Discharge",
code: "excessive_vaginal_discharge",
overview: "In Traditional Chinese Medicine, excessive vaginal discharge is classified as Dai Xia Bing (Disease of the Girdle Vessel). The pathology is centrally rooted in the dysfunction of the Dai (Girdle) and Ren (Conception) vessels. The Dai Mai binds all longitudinal meridians; when its restraining capacity is impaired, coupled with accumulated Dampness in the lower Jiao, pathological fluid leaks downward. The core pathogenic factor is always Dampness, whether generated internally through Zang-Fu organ dysfunction or invading from exogenous sources.",
},
"genital_eczema": {
title: "Genital Eczema",
code: "genital_eczema",
overview: "Genital eczema in women manifests with a red rash, vesicles or papules around the external genitalia. The vesicles or papules exude a fluid. This problem is due to the downward infusion of Damp-Heat in the genital area or to deficiency and dryness of the Blood.",
},
"infertility": {
title: "Infertility",
code: "infertility",
overview: "Infertility is defined as the inability to produce offspring in a woman who has been trying for 2 years with a normal sexual life and, of course, the reproductive function of whose partner is normal. Infertility is frequently treated in China according to the four phases of the menstrual cycle, i.e. the period, the postmenstrual, the inter-menstrual and the pre-menstrual phases. The treatment principles in each phase are as follows: Period phase: regulate menstruation (i.e. stop bleeding if period is heavy or invigorate Blood if it is scanty). Post-menstrual phase: nourish Blood and tonify the Kidneys. Inter-menstrual phase: tonify the Kidneys and consolidate the Directing and Penetrating Vessels. If necessary, resolve Dampness or Phlegm. Pre-menstrual phase: tonify Yang and move Liver-Qi. If necessary, resolve Phlegm, invigorate Blood, expel Cold.",
},
"menopausal_syndrome": {
title: "Menopausal Syndrome",
code: "menopausal_syndrome",
overview: "Menopausal Syndrome indicates the complete or permanent cessation of menstruation: an interval of 6-12 months is usually necessary to establish the diagnosis. The term \u2018climacteric\u2019 is used by gynecologists to indicate the phase in a woman\u2019s life during which she passes from the reproductive to the non-reproductive stage. This phase may last many years: 10, 15, or even 20. The symptoms of menopause may occur before, during, or after the permanent cessation of menstruation. Strictly speaking, since many symptoms occur during the climacteric years and not only when periods stop, it would be more appropriate to call them Climacteric Syndrome rather than Menopausal Syndrome. Menopause usually occurs between the ages of 48 and 55 and the median age in industrialized countries is about 51.",
},
"myoma": {
title: "Myoma",
code: "myoma",
overview: "Myomas (or \u2018fibroids\u2019) are very common benign uterine tumors in women that grow within the muscle tissue of the uterus. Between 20% and 50% of women of childbearing age have uterine myomas. While many women do not experience any problems, symptoms can be severe enough to require treatment. Myomas range in size from very small to larger than a melon. A very large uterine myoma can cause the uterus to expand to the size of a six- or seven-month pregnancy. There can either be one dominant myoma or a cluster of many small myomas. Sub-serous myomas develop in the outer wall of the uterus and continue to grow outward. Intramural (or interstitial) myomas develop within the uterine wall and expand, making the uterus feel larger than normal. Sub-mucous myomas develop just under the lining of the uterine cavity, often causing heavy menstrual bleeding, infertility, and miscarriage.",
},
"pcos": {
title: "PCOS",
code: "pcos",
overview: "Polycystic ovary syndrome (PCOS) is a common hormonal disorder that affects women during their reproductive years and beyond. PCOS occurs when inappropriate hormonal signaling leads to higher-than-normal androgen levels and other hormonal imbalances. As a result, women with PCOS may experience irregular or infrequent menstrual periods, pain - including pain with heavy menstrual bleeding, abnormal ovulation, changes in hair, oilier skin, acne and/or cysts in the ovaries. PCOS is a leading cause of irregular menstrual periods and one of the most common causes of infertility. Further, PCOS is a chronic metabolic condition associated with heightened long-term risk for insulin resistance, type 2 diabetes mellitus and obesity.",
},
"prolapse_of_the_uterus": {
title: "Prolapse of the Uterus",
code: "prolapse_of_the_uterus",
overview: "In Traditional Chinese Medicine, uterine prolapse is classified under the category of Yin Ting (Prolapse of the Uterus / Vaginal Prolapse). The pathology is fundamentally viewed as a failure of the body's lifting and holding mechanisms, governed primarily by the Spleen and the Kidneys. When the supportive structural integrity of the Chong (Penetrating), Ren (Conception), and Dai (Girdle) vessels weakens, the uterus loses its suspension and descends.",
},
"prolapse_of_uterus": {
title: "Prolapse of the Uterus",
code: "prolapse_of_uterus",
overview: "In Traditional Chinese Medicine, uterine prolapse is classified under the category of Yin Ting (Prolapse of the Uterus / Vaginal Prolapse). The pathology is fundamentally viewed as a failure of the body's lifting and holding mechanisms, governed primarily by the Spleen and the Kidneys. When the supportive structural integrity of the Chong (Penetrating), Ren (Conception), and Dai (Girdle) vessels weakens, the uterus loses its suspension and descends.",
},
"vaginal_itching": {
title: "Vaginal Itching",
code: "vaginal_itching",
overview: "In Traditional Chinese Medicine, vaginal and vulvar itching is classified as Yin Yang (Itching of the Genitals). The pathology is intimately connected to the Liver meridian, which anatomically curves around the external genitalia. Systemic imbalances affecting the Liver network readily manifest as localized symptoms in the vulvovaginal region. The core mechanisms involve either the downward pouring of pathogenic excess (Damp-Heat) or a lack of nourishment causing internal Wind (Yin and Blood deficiency).",
},
"vulvar_sores": {
title: "Vulvar Sores",
code: "vulvar_sores",
overview: "Vulvar Sores, called Yin Chuang in Chinese medicine, may manifest with vulvar swelling, pain, itching, erosion, lumps, discharge of pus and excessive vaginal discharge. These local manifestations may be accompanied by systemic symptoms such as shivers, fever, lassitude, abdominal distension, dark urine, thirst, constipation, and a Red tongue with a thick, sticky yellow coating. This Chinese disease category may correspond to various diseases of the genitalia such as vulvitis, vaginitis, boils or ulcers of the external genitalia, inflammation of the Bartholin\u2019s glands, or genital herpes.",
},
};
export function findGynecologyDiseaseInfo(
templateCode?: string | null,
itemCodeOrName?: string | null,
): GynecologyDiseaseInfo | null {
if (templateCode) {
const normalized = templateCode.trim().toLowerCase();
if (GYNECOLOGY_DISEASE_DATA[normalized]) {
return GYNECOLOGY_DISEASE_DATA[normalized];
}
}
if (itemCodeOrName) {
const target = itemCodeOrName.trim().toLowerCase();
for (const info of Object.values(GYNECOLOGY_DISEASE_DATA)) {
if (info.code && target.startsWith(info.code.toLowerCase())) {
return info;
}
if (target.includes(info.title.toLowerCase())) {
return info;
}
}
}
return null;
}
export interface GynecologyDiseaseCollectionRendererProps extends CollectionRendererProps {
templateCode?: string;
}
export function GynecologyDiseaseCollectionRenderer(
props: GynecologyDiseaseCollectionRendererProps,
) {
const firstItem = props.items[0];
const itemCode = firstItem
? asString(firstItem.attributes?.code) || asString(firstItem.slug)
: null;
const diseaseInfo = useMemo(() => {
return findGynecologyDiseaseInfo(props.templateCode, itemCode);
}, [props.templateCode, itemCode]);
const title = diseaseInfo?.title
? humanizeKey(diseaseInfo.title)
: firstItem
? humanizeKey(asString(firstItem.attributes?.name) || firstItem.title)
: "Patterns";
const overviewText = useMemo(() => {
if (diseaseInfo?.overview) return diseaseInfo.overview;
for (const item of props.items) {
const defn =
asString(item.attributes?.definition) ||
asString(item.attributes?.description) ||
asString(item.attributes?.overview);
if (defn) return defn;
}
return "";
}, [diseaseInfo?.overview, props.items]);
const paragraphs = useMemo(() => {
if (!overviewText) return [];
return overviewText
.split(/\n{2,}|\r\n\r\n/)
.map((p) => p.trim())
.filter(Boolean);
}, [overviewText]);
const totalCount = props.total || props.items.length;
const countSubtitle = totalCount
? `${totalCount} ${totalCount === 1 ? "Pattern" : "Patterns"}`
: undefined;
const header = (
<View style={styles.overviewContainer}>
<Hero
title={title}
subtitle={countSubtitle}
tone="green"
/>
{paragraphs.length > 0 ? (
<View style={styles.overviewCard}>
<View style={styles.overviewHeader}>
<Ionicons name="information-circle" size={20} color={Colors.primary} />
<Text style={styles.overviewTitle}>Overview</Text>
</View>
{paragraphs.map((para, index) => (
<Text
key={index}
style={index === 0 ? styles.overviewText : styles.overviewParagraph}
>
{para}
</Text>
))}
</View>
) : null}
</View>
);
return <CollectionScaffold {...props} header={header} />;
}
export function createGynecologyDiseaseCollectionRenderer(templateCode: string) {
return function GynecologySpecificCollectionRenderer(
props: CollectionRendererProps,
) {
return (
<GynecologyDiseaseCollectionRenderer
{...props}
templateCode={templateCode}
/>
);
};
}
const styles = StyleSheet.create({
overviewContainer: {
marginBottom: verticalScale(14),
},
overviewCard: {
backgroundColor: "#FFFFFF",
borderRadius: moderateScale(16),
borderWidth: 1,
borderColor: "#D7E9DE",
padding: moderateScale(16),
marginTop: verticalScale(12),
},
overviewHeader: {
flexDirection: "row",
alignItems: "center",
gap: moderateScale(8),
marginBottom: verticalScale(10),
},
overviewTitle: {
fontSize: moderateScale(15),
fontWeight: "700",
color: Colors.primaryDark,
},
overviewText: {
fontSize: moderateScale(13),
lineHeight: moderateScale(20),
color: "#374151",
},
overviewParagraph: {
fontSize: moderateScale(13),
lineHeight: moderateScale(20),
color: "#374151",
marginTop: verticalScale(8),
},
});

View File

@ -195,7 +195,7 @@ export function PatternAccordionCardRenderer({
<Ionicons
name={expanded ? "chevron-up" : "chevron-down"}
size={18}
color={expanded ? greenTone.accent : "#829B8E"}
color={greenTone.accent}
/>
</View>
</Pressable>
@ -341,14 +341,6 @@ export function ModuleCatalogCardRenderer({
onPress,
}: CollectionItemRendererProps) {
const attributes = item.attributes;
const link = attributes?.link as Record<string, unknown> | undefined;
const isContentRef = link?.type === "content_ref";
// If this item points to a pattern content item, render inline accordion
if (isContentRef) {
return <PatternAccordionCardRenderer item={item} onPress={onPress} />;
}
const rawTitle =
asString(attributes.food_name) ||
asString(attributes.name) ||
@ -381,10 +373,14 @@ export function ModuleCatalogCardRenderer({
const count = asNumber(attributes.content_count);
const itemCode = asString(attributes.code).toLowerCase().trim();
const rawTitleLower = rawTitle.toLowerCase().trim();
const rawLink = attributes.link as { type?: unknown; target?: unknown } | undefined;
const hasNavigableLink = Boolean(
rawLink && typeof rawLink === "object" && rawLink.type && rawLink.target,
);
const isSpecialDisabled = false;
const isClickable =
count !== 0 &&
!["diseases_after_childbirth", "other"].includes(itemCode) &&
!["diseases after childbirth", "other"].includes(rawTitleLower);
!isSpecialDisabled &&
(hasNavigableLink || (count !== null && count > 0) || count === null);
return (
<Pressable
@ -426,24 +422,24 @@ const accordionStyles = StyleSheet.create({
width: "100%",
},
headerRow: {
minHeight: verticalScale(56),
minHeight: verticalScale(54),
flexDirection: "row",
alignItems: "center",
paddingHorizontal: moderateScale(16),
paddingVertical: verticalScale(14),
backgroundColor: "#FFFFFF",
paddingHorizontal: moderateScale(14),
paddingVertical: verticalScale(12),
backgroundColor: greenTone.soft,
gap: moderateScale(10),
},
headerRowExpanded: {
backgroundColor: greenTone.soft,
borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: greenTone.border,
},
accentBar: {
width: moderateScale(4),
height: verticalScale(22),
alignSelf: "stretch",
minHeight: verticalScale(26),
borderRadius: moderateScale(999),
backgroundColor: "transparent",
backgroundColor: greenTone.accent,
},
accentBarExpanded: {
backgroundColor: greenTone.accent,
@ -456,7 +452,7 @@ const accordionStyles = StyleSheet.create({
fontSize: moderateScale(15),
lineHeight: moderateScale(21),
fontWeight: "700",
color: "#1E293B",
color: greenTone.title,
letterSpacing: 0.1,
},
titleExpanded: {

View File

@ -77,6 +77,11 @@ function parseClinicalManifestations(raw: unknown): string[] {
return [text];
}
const DEFAULT_CATEGORY_FALLBACKS: Record<string, string> = {
qi_and_blood:
"Qi and blood are mutually dependent. Qi generates, moves, and holds blood, while blood nourishes and carries qi. Pathological changes often involve both substances concurrently, manifesting as combined patterns of deficiency and stasis.",
};
function extractCategoryOverview(data: Record<string, unknown>, categoryCode: string): string {
const normalizedCode = categoryCode.toLowerCase().replace(/[^a-z0-9_]/g, "_");
@ -106,6 +111,10 @@ function extractCategoryOverview(data: Record<string, unknown>, categoryCode: st
return data.content.trim();
}
if (DEFAULT_CATEGORY_FALLBACKS[normalizedCode]) {
return DEFAULT_CATEGORY_FALLBACKS[normalizedCode];
}
return "";
}

View File

@ -54,6 +54,10 @@ import { SixStagesDetailRenderer } from "./details/SixStagesDetailRenderer";
import { TcmPatternDetailRenderer } from "./details/TcmPatternDetailRenderer";
import { ExtraOrdinaryVesselsDetailRenderer } from "./details/ExtraOrdinaryVesselsDetailRenderer";
import { NutritionCategoryDetailRenderer } from "./details/NutritionCategoryDetailRenderer";
import {
GynecologyDiseaseCollectionRenderer,
createGynecologyDiseaseCollectionRenderer,
} from "./collections/GynecologyRenderers";
export const collectionRenderers: Readonly<Record<string, CollectionRendererComponent>> = Object.freeze({
module_catalog_collection: ModuleCatalogCollectionRenderer,
@ -69,18 +73,25 @@ export const collectionRenderers: Readonly<Record<string, CollectionRendererComp
four_levels_collection: FourLevelsCollectionRenderer,
eight_principles_collection: EightPrinciplesCollectionRenderer,
pathogenic_factors_collection: PathogenicFactorsCollectionRenderer,
five_elements_collection: FiveElementsCollectionRenderer,
qi_blood_collection: QiBloodCollectionRenderer,
twelve_channels_collection: TwelveChannelsCollectionRenderer,
three_burners_collection: ThreeBurnersCollectionRenderer,
six_stages_collection: SixStagesCollectionRenderer,
chinese_scalp_acupuncture_collection: ModuleCatalogCollectionRenderer,
nutrition_food_collection: ModuleCatalogCollectionRenderer,
nutrition_category_collection: ModuleCatalogCollectionRenderer,
nutrition_effect_collection: ModuleCatalogCollectionRenderer,
disease_collection: ModuleCatalogCollectionRenderer,
auriculotherapy_collection: ModuleCatalogCollectionRenderer,
gynecology_disease_collection: GynecologyDiseaseCollectionRenderer,
// Module-specific renderers removed for generic handling
});
export const collectionItemRenderers: Readonly<Record<string, CollectionItemRendererComponent>> = Object.freeze({
module_catalog_card: ModuleCatalogCardRenderer,
pattern_accordion_card: PatternAccordionCardRenderer,
gynecology_pattern_card: PatternAccordionCardRenderer,
acu_point_index_card: AcuPointIndexCardRenderer,
acu_point_card: AcuPointCardRenderer,
meridian_index_card: MeridianIndexCardRenderer,
@ -94,6 +105,10 @@ export const collectionItemRenderers: Readonly<Record<string, CollectionItemRend
eight_principles_card: EightPrinciplesCardRenderer,
pathogenic_factors_card: PathogenicFactorsCardRenderer,
five_elements_card: FiveElementsCardRenderer,
qi_blood_card: QiBloodCardRenderer,
twelve_channels_card: TwelveChannelsCardRenderer,
three_burners_card: ThreeBurnersCardRenderer,
six_stages_card: SixStagesCardRenderer,
chinese_scalp_acupuncture_card: ModuleCatalogCardRenderer,
nutrition_food_card: ModuleCatalogCardRenderer,
nutrition_category_card: ModuleCatalogCardRenderer,
@ -204,13 +219,28 @@ export function resolveCollectionRenderer(
const normalizedModule = moduleCode?.trim().toLowerCase();
const normalizedTemplate = templateCode?.trim().toLowerCase();
if (code === "gynecology_disease_collection") {
return normalizedTemplate
? createGynecologyDiseaseCollectionRenderer(normalizedTemplate)
: GynecologyDiseaseCollectionRenderer;
}
if (
normalizedModule === "m0042" &&
normalizedTemplate &&
normalizedTemplate !== "m0042_ct0001" &&
normalizedTemplate !== "m0042_ct0002" &&
normalizedTemplate !== "m0042_ct0003" &&
normalizedTemplate !== "m0042_ct0004" &&
normalizedTemplate !== "m0042_ct0006" &&
normalizedTemplate !== "m0042_ct0007"
) {
return createGynecologyDiseaseCollectionRenderer(normalizedTemplate);
}
if (normalizedTemplate === "m0016_ct0001" || normalizedModule === "m0016") {
return FourLevelsCollectionRenderer;
}
// Generic fallback for any mXXXX_ct... template
if (normalizedTemplate?.startsWith("m") && normalizedTemplate?.includes("_ct")) {
return ModuleCatalogCollectionRenderer;
}
if (normalizedTemplate === "m0011_ct0005" || normalizedModule === "m0011") {
return EightPrinciplesCollectionRenderer;
}
@ -242,6 +272,10 @@ export function resolveCollectionRenderer(
) {
return ModuleCatalogCollectionRenderer;
}
// Generic fallback for any mXXXX_ct... template
if (normalizedTemplate?.startsWith("m") && normalizedTemplate?.includes("_ct")) {
return ModuleCatalogCollectionRenderer;
}
if (code && collectionRenderers[code]) return collectionRenderers[code];
reportMissingRenderer("collection", code);
@ -260,6 +294,20 @@ export function resolveCollectionItemRenderer(
const normalizedModule = moduleCode?.trim().toLowerCase();
const normalizedTemplate = templateCode?.trim().toLowerCase();
if (
code === "gynecology_pattern_card" ||
(normalizedModule === "m0042" &&
normalizedTemplate &&
normalizedTemplate !== "m0042_ct0001" &&
normalizedTemplate !== "m0042_ct0002" &&
normalizedTemplate !== "m0042_ct0003" &&
normalizedTemplate !== "m0042_ct0004" &&
normalizedTemplate !== "m0042_ct0006" &&
normalizedTemplate !== "m0042_ct0007")
) {
return PatternAccordionCardRenderer;
}
if (normalizedTemplate === "m0016_ct0001" || normalizedModule === "m0016") {
return FourLevelsCardRenderer;
}
@ -282,10 +330,6 @@ export function resolveCollectionItemRenderer(
if (normalizedTemplate === "m0017_ct0002" || (normalizedModule === "m0017" && normalizedTemplate?.includes("ct0002"))) {
return ThreeBurnersCardRenderer;
}
// Generic fallback for any mXXXX_ct... template
if (normalizedTemplate?.startsWith("m") && normalizedTemplate?.includes("_ct")) {
return ModuleCatalogCardRenderer;
}
if (
normalizedTemplate?.startsWith("m0015_ct000") &&
normalizedTemplate !== "m0015_ct0007"
@ -299,6 +343,10 @@ export function resolveCollectionItemRenderer(
) {
return ModuleCatalogCardRenderer;
}
// Generic fallback for any mXXXX_ct... template
if (normalizedTemplate?.startsWith("m") && normalizedTemplate?.includes("_ct")) {
return ModuleCatalogCardRenderer;
}
if (code && collectionItemRenderers[code]) return collectionItemRenderers[code];
reportMissingRenderer("collection-item", code);

View File

@ -95,7 +95,7 @@ const styles = StyleSheet.create({
backgroundColor: "#FFFFFF",
borderRadius: moderateScale(18),
borderWidth: 1,
borderColor: "#E2EAE5",
borderColor: "#D7E9DE",
overflow: "hidden",
},
separator: {

View File

@ -157,6 +157,8 @@ export function CollectionTemplateScreen({
itemRendererCode === "disease_card" ||
collectionRendererCode === "auriculotherapy_collection" ||
itemRendererCode === "auriculotherapy_card" ||
collectionRendererCode === "gynecology_disease_collection" ||
moduleCode === "m0042" ||
templateCode === "m0001_ct0001" ||
templateCode === "m0002_ct0001" ||
templateCode === "m0041_ct0001";
@ -189,6 +191,12 @@ export function CollectionTemplateScreen({
}
}}
onItemPress={(item) => {
const primaryLink = item.attributes?.link;
const primaryRefs = getNavigableContentReferences(primaryLink);
if (primaryRefs.length === 1) {
router.push(buildContentReferenceRoute(primaryRefs[0]) as never);
return;
}
const references = Object.values(item.attributes).flatMap((value) =>
getNavigableContentReferences(value),
);
@ -217,6 +225,12 @@ export function CollectionTemplateScreen({
}
}}
onItemPress={(item) => {
const primaryLink = item.attributes?.link;
const primaryRefs = getNavigableContentReferences(primaryLink);
if (primaryRefs.length === 1) {
router.push(buildContentReferenceRoute(primaryRefs[0]) as never);
return;
}
const references = Object.values(item.attributes).flatMap((value) =>
getNavigableContentReferences(value),
);

View File

@ -75,6 +75,7 @@ const MODULE_VISUALS: Record<string, ModuleVisualConfig> = {
color: "#10B981",
isDefaultFree: false,
planCode: "PATTERN_CORE",
entryTemplateCode: "m0015_ct0007",
},
m0016: {
icon: "trending-up-outline",