import json

data = {
 "topic": "Influenza",
 "slug": "influenza",
 "category_id": 15761,
 "summary": "Influenza is a highly contagious respiratory droplet-transmitted viral illness causing high hospitalization rates in young children, with a broader and more variable presentation in infants and children than in adults, managed mainly with supportive care and antiviral therapy for high-risk patients.",
 "written_by": "claude-sonnet",
 "references": [
  {"title": "Red Book Atlas of Pediatric Infectious Diseases", "author": "American Academy of Pediatrics (AAP);Tan, Tina Q.;", "pages": [348, 349]},
  {"title": "Red Book Atlas 4th Ed.indb", "author": "American Academy of Pediatrics;Carol J. Baker, MD, FAAP;", "pages": [347, 353, 485]},
  {"title": "Cover", "author": "Vitalsource Download", "pages": [3602]},
  {"title": "Red_Book_2021_2024_Report_of_the_Comm_z_library_sk,_1lib_sk,", "author": None, "pages": [497]},
  {"title": "Kliegman R. Nelson Textbook of Pediatrics 2-Volume Set 22ed 2024", "author": None, "pages": [2028, 2031, 2033]},
  {"title": "Pediatric Clinical Practice Guidelines & Policies, 18th Edition", "author": "American Academy of Pediatrics", "pages": [1152]}
 ],
 "short": [
  {"title": "In short", "content": (
   "- Influenza spreads primarily via large-particle respiratory droplets (coughing, sneezing) requiring close proximity, but also via contact with virus-contaminated hands/surfaces (virus can survive up to 24 hours on surfaces) and possibly small-particle aerosols\n"
   "- Incubation period is 1-4 days (average 2 days); patients are infectious starting about 24 hours before symptom onset\n"
   "- Viral shedding in nasal secretions peaks during the first 3 days of illness and usually ceases within 7 days, but can be prolonged to 10 days or longer in young children and immunodeficient patients - shedding correlates directly with degree of fever, and children have higher viral loads and more prolonged shedding than adults, making them more likely to infect others for longer\n"
   "- Hospitalization rates in children under 5 are high, similar to rates in adults 65+ (reported range 190-480 per 100,000 population depending on season severity); children under 2 years are at substantially higher risk than other pediatric ages\n"
   "- Classic presentation: sudden-onset fever, nonproductive cough, chills/rigors, diffuse myalgia, headache, malaise, followed by more prominent respiratory symptoms (sore throat, nasal congestion, rhinitis, cough); abdominal pain, nausea, vomiting, diarrhea occur less commonly\n"
   "- Pediatric-specific presentations: infants can show a nonspecific sepsis-like picture; young children can develop otitis media, croup, a pertussis-like illness, bronchiolitis, or pneumonia; acute myositis can cause calf tenderness and refusal to walk\n"
   "- Diagnostic confirmation requires viral isolation or detection of viral antigen/RNA from respiratory samples, ideally within the first 3 days of symptoms (viral load falls after that); culture and serology are impractical for real-time clinical decisions given the need for rapid antiviral initiation in high-risk/hospitalized patients - rapid antigen detection assays are more clinically practical\n"
   "- Complications include influenza pneumonia (can cause respiratory failure), myocarditis, and influenza-associated encephalopathy (can show bilateral white matter/thalamic signal changes on MRI); bacterial superinfection is relatively common and should be suspected with recrudescent or prolonged fever or clinical deterioration\n"
   "- With uncomplicated influenza, patients usually start feeling better after the first 48-72 hours of symptoms; supportive care (adequate fluids and rest) is central to management, with antibiotics reserved for confirmed/suspected bacterial superinfection\n"
   "- Vaccine effectiveness varies substantially by season and age group and is generally higher against H1N1pdm09 strains in the 2-8 year age group than in 9-17 year-olds in some seasons studied"
  )}
 ],
 "long": [
  {"title": "Definition", "content": (
   "Influenza is an acute respiratory viral illness caused by influenza viruses, transmitted efficiently from person to person and capable of producing seasonal outbreaks and pandemics. In children, the clinical spectrum is broader and often less specific than the classic adult presentation, ranging from an upper respiratory illness to a sepsis-like picture in infants."
  )},
  {"title": "Epidemiology", "content": (
   "Influenza is highly contagious. It is transmitted primarily through large-particle respiratory droplets generated by coughing or sneezing, which requires close proximity between source and recipient since droplets travel only short distances; transmission also occurs via contact with virus on droplet-contaminated hands or surfaces, where the virus can remain viable for up to 24 hours, followed by hand-to-face mucosal transfer. Small-particle aerosol (airborne) transmission may also occur in the vicinity of an infectious person. The typical incubation period is 1-4 days, averaging 2 days. Patients can be infectious starting about 24 hours before symptom onset. Viral shedding in nasal secretions typically peaks during the first 3 days of illness and ceases within 7 days in most people, but can be prolonged to 10 days or more in young children and immunodeficient patients; shedding correlates directly with the degree of fever. Because children have higher viral loads and more prolonged shedding than adults, they can transmit infection for a longer period. Outbreaks occur commonly in schools and childcare settings, as well as in organized tour groups, mass gatherings, camps, and cruise or military ships; healthcare-associated outbreaks also occur, particularly in long-term care facilities and hospitals. Hospitalization rates for children younger than 5 years are high - comparable to rates in adults 65 years and older - with reported rates of 190-480 per 100,000 population depending on the severity of a given influenza season; children younger than 2 years are consistently at substantially higher risk than other pediatric age groups."
  )},
  {"title": "Clinical features", "content": (
   "Classic influenza illness begins with sudden-onset fever, often accompanied by nonproductive cough, chills or rigors, diffuse myalgia, headache, and malaise; respiratory tract symptoms (sore throat, nasal congestion, rhinitis, cough) become more prominent as the illness progresses. Abdominal pain, nausea, vomiting, and diarrhea occur less commonly. Pediatric presentations can differ substantially from the adult pattern: some children present as an upper respiratory tract illness or as a febrile illness with minimal respiratory symptoms; infants can present with a nonspecific, sepsis-like clinical picture; and infants and young children can develop otitis media, croup, a pertussis-like illness, bronchiolitis, or pneumonia as manifestations of influenza. Acute myositis secondary to influenza can present with calf tenderness and refusal to walk. With uncomplicated influenza, patients usually begin to feel better after the first 48-72 hours of symptoms."
  )},
  {"title": "Diagnostics", "content": (
   "Influenza should be considered based on clinically compatible symptoms regardless of a patient's immunization status. Diagnostic confirmation requires viral isolation or detection of viral antigens or viral RNA in respiratory samples (nasal swab or wash), ideally obtained within the first 3 days of symptoms, since viral load declines afterward and reduces test sensitivity. Viral culture (inoculation into cell culture or embryonated eggs, with growth detectable after 2-6 days by hemadsorption, hemagglutination, or cytopathic effect) is not preferred in routine clinical practice because of the turnaround time and the need for rapid antiviral initiation in high-risk or hospitalized patients. Serologic testing requires paired acute and convalescent samples and is likewise impractical for real-time clinical decision-making. Rapid antigen detection assays (immunofluorescence or enzyme immunoassay) offer faster results more suited to guiding immediate clinical management."
  )},
  {"title": "Complications", "content": (
   "Influenza can cause significant complications beyond the typical self-limited respiratory illness, including influenza pneumonia (which can progress to respiratory failure), focal myocarditis with myocardial necrosis, and influenza-associated encephalopathy, which can show bilateral confluent white matter and thalamic signal hyperintensity on MRI. Bacterial superinfection is relatively common and should be suspected whenever there is recrudescence of fever, prolonged fever, or clinical deterioration during or after an influenza illness; it should be treated with appropriate antibiotic therapy when identified."
  )},
  {"title": "Treatment", "content": (
   "Supportive care - adequate fluid intake and rest - is fundamental to managing influenza in children. Antiviral treatment is recommended for children and adolescents at higher risk for influenza complications, including children younger than 2 years of age, among other risk categories. Bacterial superinfections should be treated with appropriate antibiotic therapy when there is recrudescent or prolonged fever, or clinical deterioration, suggesting a secondary bacterial process rather than the expected course of uncomplicated influenza (improvement typically starting by 48-72 hours)."
  )},
  {"title": "Prevention", "content": (
   "Annual influenza vaccination is a cornerstone of prevention, though measured vaccine effectiveness varies considerably by season (driven by the predominant circulating strain and how well it matches the vaccine), age group, and vaccine type. Reported effectiveness data across several seasons show substantial variability - for example, in the 2013-2014 season (H1N1pdm09 predominant), effectiveness for inactivated vaccine was around 59% in the broader 2-17 age range but differed notably between the 2-8 and 9-17 year subgroups, and similar season-to-season and age-related variability was seen in subsequent seasons (H3N2 in 2014-2015, H1N1pdm09 again in 2015-2016). This variability underscores that a given season's vaccine effectiveness cannot be assumed and should be interpreted alongside current surveillance data."
  )}
 ],
 "clinical": [
  {"title": "Approach at the bedside", "content": (
   "In a child presenting during influenza season with sudden fever, myalgia, headache, and respiratory symptoms, consider influenza regardless of vaccination status, and remember that presentation can look quite different by age - a nonspecific sepsis-like picture in infants, or otitis media, croup, bronchiolitis, or pneumonia rather than a classic influenza syndrome in young children. If diagnostic confirmation will change management (e.g., antiviral decision-making in a high-risk or hospitalized patient), obtain a rapid antigen test or molecular assay from a nasal swab/wash within the first 3 days of symptoms, since test sensitivity falls as viral load declines after that window - do not rely on viral culture or serology for real-time decisions.\n\nManage most children with supportive care (fluids, rest) and anticipate improvement by 48-72 hours; if fever recurs, is prolonged, or the child clinically deteriorates instead of improving on this timeline, evaluate for bacterial superinfection and treat with antibiotics if confirmed or strongly suspected. Prioritize antiviral treatment for children at higher risk for complications, notably those younger than 2 years of age. Keep influenza pneumonia, myocarditis, and influenza-associated encephalopathy on the differential for any child with unexpectedly severe respiratory, cardiac, or neurologic findings during an influenza illness. Because children shed virus longer and at higher titers than adults (up to 10+ days in young or immunocompromised children), counsel families on continued infection-control precautions (hand hygiene, staying home) beyond the point symptoms improve, not just during the acute febrile period."
  )}
 ]
}

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