import json

data = {
 "topic": "Milk Protein Allergy",
 "slug": "milk-protein-allergy",
 "category_id": 15496,
 "summary": "Milk protein allergy spans IgE-mediated and non-IgE-mediated (T-cell driven) immune reactions to cow's milk protein - including allergic proctocolitis, allergic enteropathy, and FPIES - each with distinct timing, testing implications, and prognosis.",
 "written_by": "claude-sonnet",
 "references": [
  {"title": "CURRENT Diagnosis and Treatment Pediatrics, Twenty-Fourth Edition", "author": "Hay, William W., Levin, Myron J., Deterding, Robin R., Abzug, Mark J.", "pages": [687, 698, 1194]},
  {"title": "Textbook of Pediatric Gastroenterology, Hepatology and Nutrition (Stefano Guandalini, Anil Dhawan)", "author": None, "pages": [146, 363]},
  {"title": "Cover", "author": "Vitalsource Download", "pages": [564, 5788]},
  {"title": "Illustrated Textbook of Paediatrics (Tom Lissauer, Will Carroll)", "author": "Lissauer, Tom,Carroll, Will", "pages": [304]},
  {"title": "Algorithms in Pediatrics", "author": None, "pages": [378, 379]},
  {"title": "Pediatric Board Study Guide", "author": None, "pages": [743]},
  {"title": "2021_Fleisher_&_Ludwig's_Textbook_of_Pediatric_Emergency_Medicine.epub", "author": None, "pages": []},
  {"title": "Zitelli and Davis' Atlas of Pediatric Physical Diagnosis: Expert Consult - Online", "author": None, "pages": [139]}
 ],
 "short": [
  {"title": "In short", "content": (
   "- Cow's milk protein allergy is the most common food allergy in infants, and dietary protein hypersensitivity overall affects 6-8% of children in the first 5 years of life\n"
   "- Two distinct immunologic mechanisms: IgE-mediated (immediate, minutes after ingestion, can occur at any age, involves skin/oropharyngeal/respiratory/GI/cardiovascular symptoms ranging mild to life-threatening) and non-IgE/T-cell-mediated (delayed, GI-predominant)\n"
   "- Non-IgE syndromes include milk protein enterocolitis/allergic (eosinophilic) proctocolitis - bloody diarrhea in the first few months of life, often in breastfed infants reacting to maternal dietary protein, improving within days of removing milk protein - and food protein-induced enterocolitis syndrome (FPIES), which can cause repetitive vomiting severe enough to cause shock\n"
   "- Milk protein enteropathy is a distinct non-IgE entity causing small bowel villous flattening, steatorrhea, hypoproteinemia, occult blood loss, and chronic diarrhea\n"
   "- Skin-prick testing is NOT reliable for non-IgE-mediated reactions (it detects circulating IgE antibodies, not the T-cell-mediated response responsible) - it is only useful for IgE-mediated allergy, where a negative result makes IgE-mediated allergy unlikely and a stronger positive raises likelihood, though false positives occur\n"
   "- Double-blind oral food challenge, or dietary elimination with disappearance of occult blood/symptoms, is often needed to confirm intestinal (non-IgE) milk protein allergy since small bowel biopsy findings are nonspecific\n"
   "- Up to 40-50% of infants with cow's milk protein allergy also react to soy protein, so formula-fed infants generally need an extensively hydrolyzed (not soy) formula, and breastfeeding mothers should avoid both cow milk and soy\n"
   "- Allergic (eosinophilic) proctocolitis/milk protein enterocolitis is diagnosed by proctosigmoidoscopy showing aphthous ulcers and rectal biopsy showing more than 6 eosinophils/hpf plus eosinophilic cryptitis; almost all infants outgrow it by 1-2 years of age, and allergic colitis specifically is self-limited, usually resolving by 8-12 months\n"
   "- A structured elimination/reintroduction algorithm exists: complete milk withdrawal, reassess for symptom resolution, continue milk-free diet for 1 year, then carefully monitored reintroduction - if symptoms recur, resume elimination; if multiple foods are suspected, sequentially remove egg/peanut/fish, and refer to a specialist with reconsideration of other diagnoses (immunodeficiency, IBD, TB) if there's no response to an extensively hydrolyzed or elemental diet\n"
   "- For anaphylactic-type (IgE-mediated) reactions, provide a medical alert bracelet and epinephrine autoinjector training; allergist consultation is recommended for long-term management of non-IgE intestinal protein allergy as well"
  )}
 ],
 "long": [
  {"title": "Definition", "content": (
   "Milk protein allergy is an immune-mediated adverse reaction to proteins in cow's milk (or, via breast milk, to maternal dietary milk protein), distinct from lactose intolerance, which is a non-immune enzymatic deficiency. Reactions are classified by immunologic mechanism into IgE-mediated (immediate) and non-IgE-mediated, T-cell-driven (delayed) forms. The IgE-mediated form can occur at any age, produces reactions immediately after ingestion, and can involve skin, oropharyngeal, respiratory, gastrointestinal, and/or cardiovascular symptoms ranging from mild to life-threatening. Non-IgE-mediated forms are more gastrointestinal-predominant and include allergic (eosinophilic) proctocolitis (also called milk protein enterocolitis or dietary protein proctitis), allergic/milk protein enteropathy, and food protein-induced enterocolitis syndrome (FPIES)."
  )},
  {"title": "Epidemiology", "content": (
   "Cow's milk protein allergy is the most common food allergy in infants. Dietary protein hypersensitivity overall occurs in 6-8% of children during the first 5 years of life, most commonly as hypersensitivity to cow's milk protein (food allergy overall affects only about 4% of adults, reflecting the tendency to outgrow childhood food allergy). In 85% of children with dietary protein intolerance, symptoms resolve by 3 years of age. Milk protein enterocolitis/allergic proctocolitis specifically is almost always outgrown by 1-2 years of age."
  )},
  {"title": "Etiology", "content": (
   "Allergic (eosinophilic) proctocolitis, the classic non-IgE-mediated hypersensitivity to milk protein in infancy, typically develops in infants exposed to cow's milk protein via formula or, in breastfed infants, via maternal dietary intake of cow's milk or another protein transferred through breast milk. Food proteins are detectable in breast milk, and cases have been reported of reactions ranging from chronic atopic dermatitis to anaphylaxis from maternally transferred allergens, though a tolerizing effect from breast milk exposure has also been hypothesized in at least one study; most children with food allergy can continue breastfeeding without maternal dietary elimination unless a specific reaction has been documented. Allergic enteropathy from milk protein exposure can present in the immediate neonatal period as well, most often after 2 months of age. Up to 40% of infants with cow's milk protein allergy also have a soy protein allergy (cited elsewhere as 30-50%), an important consideration for formula selection."
  )},
  {"title": "Clinical features", "content": (
   "IgE-mediated milk allergy presents with immediate reactions after ingestion: urticaria, lip/facial swelling, vomiting, pallor, and in severe cases a shock-like anaphylactic state, occurring within minutes. Non-IgE-mediated allergic proctocolitis/milk protein enterocolitis presents in the first few months of life with painless hematochezia (blood-streaked or bloody stool), with or without diarrhea, in an infant who otherwise often appears well; symptoms typically improve within days of removing milk protein from the diet. Milk protein enteropathy presents with small bowel villous flattening leading to steatorrhea, hypoproteinemia, occult blood loss, and chronic diarrhea. FPIES presents more dramatically, with repetitive vomiting that can be severe enough to cause a shock-like state. Cow's milk protein allergy symptoms in infants overlap substantially with those of gastroesophageal reflux disease (persistent regurgitation and vomiting can indicate either), so the two must be distinguished by response to a hypoallergenic formula trial rather than symptoms alone."
  )},
  {"title": "Diagnostics", "content": (
   "For IgE-mediated food allergy, the most helpful confirmatory tests are skin-prick testing and measurement of food-specific IgE antibodies in blood; both can yield false positives, but a stronger response increases the likelihood of true allergy, and a negative skin test makes IgE-mediated allergy unlikely. For non-IgE-mediated (intestinal) milk protein allergy, skin testing is unreliable and not indicated, since it detects circulating IgE antibodies rather than the T-cell-mediated immune response responsible for these reactions. Diagnosis instead relies on double-blind oral food challenge with the suspected protein under careful observation, or on dietary elimination followed by disappearance of occult stool blood and improvement in other symptoms; small bowel biopsy findings, when obtained, are nonspecific. For allergic (eosinophilic) proctocolitis specifically, proctosigmoidoscopy characteristically shows aphthous ulcers, and rectal biopsy shows more than 6 eosinophils per high-power field with eosinophilic cryptitis. A structured diagnostic algorithm for suspected cow's milk protein allergy proceeds: complete withdrawal of milk and milk products; if diarrhea/blood in stool persists, check compliance and look for occult bovine milk sources, then withdraw soy-based formula as well (considering concomitant soy allergy) before concluding no response; if there is a response, continue a milk-free diet for 1 year, then reintroduce milk with careful vigilance - resuming elimination if symptoms recur, or continuing milk if they do not. If symptoms persist despite milk and soy elimination, consider stopping egg, peanut, and fish as well (multiple food protein allergy), and if there is still no response, move to an exclusive extensively hydrolyzed or elemental diet; ongoing lack of response should prompt specialist referral and reconsideration of other diagnoses, including immunodeficiency, inflammatory bowel disease, and tuberculosis, with detailed re-evaluation including repeat endoscopy and small bowel imaging."
  )},
  {"title": "Differential diagnosis", "content": (
   "Milk protein allergy symptoms overlap significantly with GERD (regurgitation/vomiting), and a positive response to cow's milk protein elimination with symptom relapse on reintroduction is the cornerstone that distinguishes true milk protein allergy from GERD or coincidental overlap of the two conditions. Given the substantial rate of concurrent soy sensitivity (up to 40-50%), persistent symptoms on a soy-based formula do not rule out milk protein allergy. When elimination of milk, soy, egg, peanut, and fish fails to resolve symptoms, broader alternative diagnoses - immunodeficiency, inflammatory bowel disease, tuberculosis, and other causes of chronic GI symptoms - should be actively reconsidered rather than escalating dietary restriction indefinitely."
  )},
  {"title": "Treatment", "content": (
   "Management of food allergy syndromes requires fastidious avoidance of the offending allergen. For reactions with anaphylactic potential (IgE-mediated), provide a medical alert bracelet identifying the allergen and train the family in epinephrine autoinjector use for home management of acute reactions. For infants and young children with cow's milk protein hypersensitivity, an appropriate milk substitute should have little to no cross-reactivity with cow milk, lower allergenicity, and adequate nutrition - generally an extensively hydrolyzed formula, given the high rate of concurrent soy sensitivity, rather than soy formula as the default substitute; breastfeeding mothers of affected infants should avoid both cow milk and soy in their own diet if the infant is reacting via breast milk. Allergist consultation is recommended for long-term management of intestinal (non-IgE) milk protein allergy given the complexity of dietary elimination and monitoring. Allergic colitis in young infants is generally self-limited, typically disappearing by 8-12 months of age, and since no long-term consequences have been identified, mild symptoms in a thriving infant can sometimes be managed conservatively rather than with aggressive elimination."
  )}
 ],
 "clinical": [
  {"title": "Diagnostic approach at the bedside", "content": (
   "In an infant with blood-streaked stools, chronic diarrhea, or repetitive vomiting, first determine whether the pattern suggests IgE-mediated allergy (immediate symptoms within minutes - urticaria, facial swelling, vomiting, shock-like state) versus a non-IgE, GI-predominant presentation (painless hematochezia in an otherwise well infant, or chronic diarrhea with occult blood, protein loss, and peripheral eosinophilia). For suspected IgE-mediated allergy, skin-prick testing or specific IgE levels can support the diagnosis, with a negative test making IgE-mediated allergy unlikely. For suspected non-IgE disease, skip skin testing (it is not reliable here) and proceed directly to a trial of complete milk protein elimination.\n\nFollow the elimination algorithm stepwise: eliminate milk/milk products first and reassess; if unresolved, check compliance and rule out hidden bovine milk sources, then eliminate soy as well given the high concurrence rate; if still unresolved, remove egg, peanut, and fish (considering multiple food protein allergy); if there is still no response, move to an extensively hydrolyzed or elemental formula/diet. If a child responds, maintain the milk-free diet for about a year before a carefully supervised reintroduction, resuming elimination if symptoms recur. If a child fails to respond despite this full elimination ladder, do not keep escalating restriction indefinitely - refer to a specialist and reconsider alternative diagnoses such as immunodeficiency, inflammatory bowel disease, or tuberculosis, with repeat endoscopy and small bowel imaging as part of that re-evaluation. For any child with anaphylactic-type reactions, equip the family with an epinephrine autoinjector and a medical alert bracelet before they leave the visit."
  )}
 ]
}

with open("/tmp/milk-protein-allergy.article.json", "w") as f:
    json.dump(data, f, indent=1)
print("written")
