Swine flu , influenza A virus from harrison ppt 16 pgs approx

Reading File
Reading File
Reading File
Finding Sources
Searching PubMed

influenza A AND swine flu

Searching the Web

CDC Influenza A H1N1 swine flu clinical guidance antiviral treatment

Reading File
Finding Sources
Finding Sources
Browsing Directory

~/

Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Running Command

mkdir -p "/tmp/workspace/swine_flu_influenzaA_ppt/src" "/tmp/workspace/swine_flu_influenzaA_ppt/output" "/tmp/workspace/swine_flu_influenzaA_ppt/assets" && python /tmp/skills/shared/scripts/fetch_images.py "https://cdn.orris.care/cdss_images/pmc_clinical_VQA_29b02c67eb905f460102a6466d3bdc73343c86304f5887fff446707edca3ce42.jpg" > "/tmp/workspace/swine_flu_influenzaA_ppt/assets/image.json"

Browsing Directory

~/swine_flu_influenzaA_ppt

Running Command

python -c "import json,base64; d=json.load(open('/tmp/workspace/swine_flu_influenzaA_ppt/assets/image.json')); x=d[0]; open('/tmp/workspace/swine_flu_influenzaA_ppt/assets/influenza_structure.jpg','wb').write(base64.b64decode(x['base64'].split(',',1)[1]))" && python - <<'PY' from PIL import Image p='/tmp/workspace/swine_flu_influenzaA_ppt/assets/influenza_structure.jpg' im=Image.open(p) print(im.size) PY

Writing File

~/swine_flu_influenzaA_ppt/src/create_presentation.py

from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.enum.shapes import MSO_SHAPE
from pptx.enum.dml import MSO_THEME_COLOR
from pptx.enum.text import MSO_AUTO_SIZE
from pptx.enum.shapes import MSO_CONNECTOR
from pathlib import Path

OUT = Path('/tmp/workspace/swine_flu_influenzaA_ppt/output/Swine_Flu_Influenza_A_Harrison_16_Slides.pptx')
IMG = '/tmp/workspace/swine_flu_influenzaA_ppt/assets/influenza_structure.jpg'
prs = Presentation()
prs.slide_width = Inches(13.333)
prs.slide_height = Inches(7.5)
blank = prs.slide_layouts[6]

NAVY = RGBColor(12, 39, 64); BLUE = RGBColor(21, 89, 140); TEAL = RGBColor(13, 128, 137)
CYAN = RGBColor(73, 185, 196); PALE = RGBColor(234, 246, 247); RED = RGBColor(195, 61, 65)
ORANGE = RGBColor(238, 137, 51); WHITE = RGBColor(255,255,255); INK = RGBColor(31,45,56); GREY = RGBColor(95,110,120)

slides = [
('Swine flu', 'Influenza A virus: clinical approach, diagnosis, treatment and prevention', ['Based primarily on Harrison’s Principles of Internal Medicine, 22nd ed.'], 'title'),
('Learning objectives', 'After this session, learners should be able to:', ['Define swine flu and distinguish seasonal, pandemic and variant influenza A','Explain influenza A structure, antigenic evolution and zoonotic emergence','Recognize clinical illness and serious complications','Use a practical diagnostic, treatment and prevention approach'], 'bullets'),
('What does “swine flu” mean?', 'A clinical and public-health term, not one single virus', ['Swine influenza A viruses circulate in pigs. Human infections with these are called variant influenza infections, such as A(H1N1)v or A(H3N2)v.','The 2009 H1N1 pandemic virus originated through reassortment and is now a human seasonal influenza A lineage.','Person-to-person influenza is transmitted mainly by respiratory droplets and short-range aerosols; contaminated hands/surfaces contribute.','Eating properly handled pork does not transmit influenza.'], 'bullets'),
('Influenza A: virion and genome', 'Key features that explain disease and drug targets', ['Enveloped Orthomyxovirus with 8 negative-sense, single-stranded RNA segments.','Hemagglutinin (HA): attachment and membrane fusion. Neuraminidase (NA): release of progeny virions.','M2 ion channel facilitates uncoating. Segmentation allows reassortment when two viruses infect one host cell.','Subtypes are designated by HA and NA, e.g., H1N1 and H3N2.'], 'image'),
('Reservoirs, hosts and emergence', 'Why influenza A has pandemic potential', ['Wild waterfowl and shorebirds form the major natural reservoir of influenza A.','Pigs can be infected by human, avian and swine viruses and may serve as a mixing host for reassortment.','A novel HA, with or without a novel NA, introduced from an animal reservoir can face little population immunity.','Crowding and global travel accelerate spread after a virus adapts to sustained human transmission.'], 'bullets'),
('Antigenic drift versus antigenic shift', 'Two mechanisms, very different population effects', ['DRIFT: gradual point mutations, particularly in HA/NA. Causes seasonal epidemics and need for vaccine updates.','SHIFT: abrupt acquisition of a new HA and/or NA, often through reassortment. Can enable pandemics.','Pandemics since 1918 involved H1N1, H2N2, H3N2 and H1N1pdm09 lineages.','Influenza B undergoes drift but does not have the same animal reservoir-driven shift mechanism.'], 'compare'),
('Epidemiology and incubation', 'Typical pattern', ['Seasonal influenza occurs in annual waves, classically during colder months in temperate climates.','Incubation is usually about 1-4 days. Viral shedding may begin before symptoms and is often greatest early in illness.','Attack rates and severity vary with strain, prior immunity, vaccination, age and underlying conditions.','Suspect a novel/variant virus after exposure to pigs or agricultural fairs, especially with influenza-like illness.'], 'bullets'),
('Clinical presentation', 'Abrupt influenza-like illness', ['Fever, chills, myalgia, headache, malaise and nonproductive cough are classic.','Sore throat, rhinorrhea and conjunctival symptoms may occur. Children may have gastrointestinal symptoms.','Exam may be nonspecific early; tachycardia, fever and respiratory findings can develop.','Absence of fever does not exclude influenza, especially in older adults or immunocompromised patients.'], 'bullets'),
('Who is at higher risk of severe disease?', 'Prioritize assessment and early antiviral treatment', ['Young children, especially those under 2 years','Adults 65 years and older','Pregnancy and up to 2 weeks postpartum','Chronic pulmonary, cardiac, metabolic, renal, neurologic or hematologic disease','Immunosuppression, severe obesity, long-term aspirin therapy in people under 19 years'], 'bullets'),
('Complications and red flags', 'Look beyond uncomplicated influenza', ['Primary viral pneumonia: rapidly progressive dyspnea, hypoxemia and diffuse infiltrates.','Secondary bacterial pneumonia, commonly due to Staphylococcus aureus, Streptococcus pneumoniae or Streptococcus pyogenes.','Exacerbation of asthma/COPD or cardiovascular disease, myocarditis, encephalopathy, myositis and rhabdomyolysis can occur.','Urgent review: respiratory distress, persistent hypoxia, altered mental status, dehydration, shock, chest pain or clinical deterioration after initial improvement.'], 'bullets'),
('Diagnosis', 'Use testing to support clinical and public-health decisions', ['During community circulation, diagnosis can be clinical in a compatible syndrome, especially if treatment should not be delayed.','Preferred confirmatory test: molecular assay, such as RT-PCR or rapid molecular test, on a respiratory specimen.','Rapid antigen tests have lower sensitivity; a negative result does not reliably exclude influenza.','Notify public health and arrange specific testing if a variant influenza A infection is suspected after swine exposure.'], 'flow'),
('Initial management', 'Practical actions at first contact', ['Assess severity, oxygenation, hydration and risk factors. Use droplet precautions and appropriate infection-control measures.','Give supportive care: fluids, antipyretics and treatment of hypoxemia or exacerbated comorbid disease.','Do not give aspirin to children or adolescents with suspected influenza because of Reye syndrome risk.','Investigate pneumonia or sepsis when suggested clinically; treat suspected bacterial coinfection promptly.'], 'bullets'),
('Antiviral treatment', 'Treat early, but do not withhold treatment in severe disease', ['Neuraminidase inhibitors block cleavage of sialic acid and prevent viral release from infected cells.','Oseltamivir is the usual oral first-line option. It works best when started within 48 hours, but is recommended as soon as possible for hospitalized or progressive disease.','Zanamivir is inhaled and may cause bronchospasm: avoid in asthma/COPD. Peramivir is intravenous when oral absorption is not possible.','Baloxavir is an oral cap-dependent endonuclease inhibitor for selected uncomplicated cases. Use current local guidance.'], 'bullets'),
('Why antivirals work', 'Drug target and timing', ['Early viral replication predominates in uncomplicated infection, so early therapy has the largest effect on symptom duration.','Harrison: neuraminidase inhibitors can shorten symptoms by about 1-2 days when given early.','For hospitalized patients, benefit is expected even when presentation is late; start oseltamivir promptly.','Do not use amantadine or rimantadine for current influenza A because resistance is widespread.'], 'timeline'),
('Prevention and infection control', 'Layered prevention', ['Annual influenza vaccination is recommended for everyone aged 6 months and older, unless contraindicated.','Vaccination reduces illness and severe outcomes but must be updated because of antigenic drift.','For suspected variant influenza, use public-health guidance for testing, contact management and exposure assessment.','Hand hygiene, respiratory etiquette, staying home when febrile/ill, ventilation and appropriate healthcare precautions reduce transmission.'], 'bullets'),
('Take-home messages', 'High-yield summary', ['“Swine flu” usually refers to swine-origin or variant influenza A, while 2009 H1N1 is now a seasonal human lineage.','Influenza A’s segmented genome enables reassortment and antigenic shift, creating pandemic risk.','Recognize high-risk hosts and complications. Molecular tests are preferred when confirmation changes care.','Start antiviral treatment promptly in severe, progressive, hospitalized or high-risk patients. Vaccination remains the core preventive measure.'], 'bullets'),
('References', 'Primary source and current clinical guidance', ['Harrison’s Principles of Internal Medicine, 22nd ed. (2025), chapters on influenza, epidemiology, treatment and antiviral drugs.','Centers for Disease Control and Prevention. Interim guidance for clinicians on human infections with variant influenza viruses. Accessed 2026.','Centers for Disease Control and Prevention. About human infections with variant influenza viruses. Accessed 2026.','Figure: influenza A structural schematic from PMC-indexed educational figure, retrieved via medical image library.'], 'refs'),
]

def rect(slide,x,y,w,h,fill,line=None,radius=False):
    shp=slide.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE if radius else MSO_SHAPE.RECTANGLE, Inches(x), Inches(y), Inches(w), Inches(h))
    shp.fill.solid(); shp.fill.fore_color.rgb=fill
    shp.line.color.rgb = line if line else fill
    return shp

def text(slide, s, x,y,w,h, size=22, color=INK, bold=False, align=PP_ALIGN.LEFT, font='Aptos', valign=MSO_ANCHOR.TOP):
    tb=slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf=tb.text_frame; tf.clear(); tf.word_wrap=True; tf.margin_left=0; tf.margin_right=0; tf.margin_top=0; tf.margin_bottom=0; tf.vertical_anchor=valign
    p=tf.paragraphs[0]; p.alignment=align
    r=p.add_run(); r.text=s; r.font.name=font; r.font.size=Pt(size); r.font.bold=bold; r.font.color.rgb=color
    return tb

def bullets(slide, items, x=0.85,y=1.75,w=11.55,h=4.85, size=21):
    tb=slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf=tb.text_frame; tf.clear(); tf.word_wrap=True; tf.margin_left=Inches(.06); tf.margin_right=Inches(.03); tf.margin_top=0; tf.margin_bottom=0
    for i,item in enumerate(items):
        p=tf.paragraphs[0] if i==0 else tf.add_paragraph(); p.text=item; p.level=0; p.font.name='Aptos'; p.font.size=Pt(size); p.font.color.rgb=INK; p.space_after=Pt(13); p.bullet=True
    return tb

def header(slide,n,title,subtitle=''):
    rect(slide,0,0,13.333,.22,TEAL)
    text(slide,title,.82,.48,11.7,.46,28,NAVY,True)
    if subtitle: text(slide,subtitle,.84,1.02,11.5,.36,14,GREY)
    text(slide,f'{n:02d}',12.08,.48,.55,.35,17,TEAL,True,PP_ALIGN.RIGHT)
    rect(slide,.82,1.47,11.72,.018,RGBColor(202,218,222))
    text(slide,'Harrison’s Principles of Internal Medicine, 22nd ed. | Educational presentation',.82,7.15,9.5,.18,9,GREY)

def add_diagram(slide,typ):
    if typ=='compare':
        for x,c,t,items in [(1.0,BLUE,'ANTIGENIC DRIFT',['Point mutations','Seasonal epidemics','Vaccine mismatch risk']),(7.0,RED,'ANTIGENIC SHIFT',['Reassortment / new subtype','Pandemic potential','Low population immunity'])]:
            rect(slide,x,2.05,5.25,3.55,PALE if c==BLUE else RGBColor(254,238,238),radius=True)
            rect(slide,x,2.05,5.25,.62,c,radius=True); text(slide,t,x+.28,2.2,4.7,.25,18,WHITE,True)
            bullets(slide,items,x+.32,3.0,4.5,2.1,18)
    elif typ=='flow':
        steps=[('Clinical suspicion',BLUE),('Respiratory specimen',TEAL),('Molecular assay',ORANGE),('Act on result',RED)]
        for i,(s,c) in enumerate(steps):
            x=.85+i*3.08; rect(slide,x,3.0,2.5,1.05,c,radius=True); text(slide,s,x+.15,3.31,2.2,.35,17,WHITE,True,PP_ALIGN.CENTER)
            if i<3: text(slide,'›',x+2.62,3.22,.32,.4,32,GREY,True,PP_ALIGN.CENTER)
        text(slide,'If suspected variant virus: involve public health even while clinical care proceeds.',1.0,5.2,11.1,.4,19,NAVY,True,PP_ALIGN.CENTER)
    elif typ=='timeline':
        rect(slide,1.05,3.45,11.1,.08,GREY)
        pts=[(1.25,'0 h','Symptoms begin'),(4.25,'≤48 h','Largest benefit\nfrom early treatment'),(8.0,'Any time','Hospitalized / progressive:\ntreat promptly'),(11.05,'Later','Manage complications')]
        for x,a,b in pts:
            rect(slide,x,3.2,.28,.58,TEAL,radius=True); text(slide,a,x-.35,2.55,1,.3,16,NAVY,True,PP_ALIGN.CENTER); text(slide,b,x-.7,4.05,1.7,.6,14,INK,False,PP_ALIGN.CENTER)

for n,(title,sub,items,typ) in enumerate(slides,1):
    s=prs.slides.add_slide(blank)
    rect(s,0,0,13.333,7.5,WHITE)
    if typ=='title':
        rect(s,0,0,13.333,7.5,NAVY); rect(s,0,0,13.333,.18,TEAL)
        # decorative virus-like circles
        for x,y,r,c in [(10.9,1.1,1.0,TEAL),(11.7,2.7,.45,CYAN),(9.7,4.8,.6,BLUE),(11.4,5.5,.8,TEAL)]:
            sh=s.shapes.add_shape(MSO_SHAPE.OVAL,Inches(x),Inches(y),Inches(r),Inches(r)); sh.fill.solid(); sh.fill.fore_color.rgb=c; sh.line.color.rgb=c
        text(s,title,.88,1.55,7.9,.7,41,WHITE,True)
        text(s,sub,.92,2.55,7.7,1.2,23,RGBColor(211,237,239))
        rect(s,.92,4.25,2.15,.08,ORANGE)
        text(s,items[0],.92,4.6,7.3,.4,14,RGBColor(199,217,225))
        text(s,'16-slide teaching deck',.92,6.65,3.5,.3,13,CYAN,True)
    else:
        header(s,n,title,sub)
        if typ=='bullets' or typ=='refs':
            bullets(s,items,size=18 if typ=='refs' else 21, y=1.8, h=5.1)
        elif typ=='image':
            bullets(s,items,x=.85,y=1.85,w=6.4,h=4.8,size=19)
            rect(s,7.55,1.76,4.65,4.95,PALE,radius=True)
            s.shapes.add_picture(IMG, Inches(8.15), Inches(1.92), height=Inches(4.62))
            text(s,'Influenza A structural schematic',7.72,6.63,4.35,.2,10,GREY,False,PP_ALIGN.CENTER)
        else: add_diagram(s,typ)

prs.save(OUT)
print(OUT)
Running Command

python "/tmp/workspace/swine_flu_influenzaA_ppt/src/create_presentation.py" && python - <<'PY' from pptx import Presentation p='/tmp/workspace/swine_flu_influenzaA_ppt/output/Swine_Flu_Influenza_A_Harrison_16_Slides.pptx' prs=Presentation(p) print('slides',len(prs.slides)) for i,s in enumerate(prs.slides,1): ts=[] for sh in s.shapes: if sh.has_text_frame and sh.text.strip(): ts.append(sh.text.replace('\n',' | ')[:90]) print(i, ' :: '.join(ts[:3])) PY

Editing File

~/swine_flu_influenzaA_ppt/src/create_presentation.py

Successfully replaced 1 instance(s) of the string in '/tmp/workspace/swine_flu_influenzaA_ppt/src/create_presentation.py'
Running Command

rm -f "/tmp/workspace/swine_flu_influenzaA_ppt/output/Swine_Flu_Influenza_A_Harrison_16_Slides.pptx" && python "/tmp/workspace/swine_flu_influenzaA_ppt/src/create_presentation.py" && python - <<'PY' from pptx import Presentation p='/tmp/workspace/swine_flu_influenzaA_ppt/output/Swine_Flu_Influenza_A_Harrison_16_Slides.pptx' prs=Presentation(p) assert len(prs.slides)==16, len(prs.slides) assert all(len(s.shapes)>0 for s in prs.slides) print('Validated:',len(prs.slides),'slides; file size',__import__('os').path.getsize(p),'bytes') PY

Created and validated a 16-slide PowerPoint on Swine Flu / Influenza A Virus, based primarily on Harrison’s Principles of Internal Medicine, 22nd edition.

Swine Flu Influenza A Harrison 16 Slides

Presentation · PPTX

This is a shared conversation. Sign in to Orris to start your own chat.