Create ppt for language development and communication disorder from Nelson textbook of pediatrics edition 22
"language disorders" AND children
Nelson Textbook of Pediatrics 22nd edition language development communication disorders chapter
https://shop.elsevier.com/books/nelson-textbook-of-pediatric…
pediatric language development communication milestones infographic child speech language
CDC developmental milestones language communication 2 months 6 months 12 months 18 months 2 years 3 years 4 years 5 years
~/
mkdir -p "/tmp/workspace/language-development-ppt/src" "/tmp/workspace/language-development-ppt/output" && cat > "/tmp/workspace/language-development-ppt/src/create_ppt.py" <<'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, MSO_CONNECTOR from pptx.enum.dml import MSO_THEME_COLOR OUT='/tmp/workspace/language-development-ppt/output/Language_Development_and_Communication_Disorders_Nelson_22e.pptx' prs=Presentation(); prs.slide_width=Inches(13.333); prs.slide_height=Inches(7.5) blank=prs.slide_layouts[6] # Palette NAVY=RGBColor(22,48,75); BLUE=RGBColor(42,121,165); TEAL=RGBColor(31,151,145); MINT=RGBColor(213,242,235) PALE=RGBColor(244,248,251); INK=RGBColor(35,47,58); MUTED=RGBColor(91,110,124); ORANGE=RGBColor(239,139,61); RED=RGBColor(202,77,75); WHITE=RGBColor(255,255,255); LINE=RGBColor(207,222,232) def rect(sl,x,y,w,h,fill, radius=False, line=None): sh=sl.shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE if radius else MSO_SHAPE.RECTANGLE, Inches(x), Inches(y), Inches(w), Inches(h)) sh.fill.solid(); sh.fill.fore_color.rgb=fill sh.line.color.rgb = line if line else fill if radius: sh.adjustments[0]=0.12 return sh def txt(sl,x,y,w,h,text,size=20,color=INK,bold=False,align=PP_ALIGN.LEFT, font='Aptos', valign=MSO_ANCHOR.TOP): box=sl.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h)); tf=box.text_frame; tf.clear(); tf.word_wrap=True tf.margin_left=tf.margin_right=Inches(.04); tf.margin_top=tf.margin_bottom=Inches(.02); tf.vertical_anchor=valign for i,line in enumerate(text.split('\n')): p=tf.paragraphs[0] if i==0 else tf.add_paragraph(); p.text=line; p.alignment=align; p.space_after=Pt(2) for r in p.runs: r.font.name=font; r.font.size=Pt(size); r.font.bold=bold; r.font.color.rgb=color return box def title(sl, heading, kicker='LANGUAGE DEVELOPMENT & COMMUNICATION'): rect(sl,0,0,13.333,.22,TEAL); txt(sl,.62,.36,12,.3,kicker,10,TEAL,True); txt(sl,.62,.68,12,0.55,heading,28,NAVY,True) rect(sl,.62,1.35,12.05,.02,LINE) def foot(sl,n): txt(sl,.62,7.14,8,.2,'Nelson Textbook of Pediatrics, 22nd ed. | Chapter 53',9,MUTED) txt(sl,12.0,7.12,.65,.22,str(n),9,MUTED,False,PP_ALIGN.RIGHT) def bullets(sl, x,y,w,items, size=18, color=INK, bullet_color=TEAL, gap=.14): yy=y for item in items: rect(sl,x,yy+.1,.11,.11,bullet_color,True) lines=item.count('\n')+1; h=.30*lines+.12 txt(sl,x+.23,yy,w-.23,h,item,size,color) yy+=h+gap def pill(sl,x,y,w,label,fill=PALE,color=NAVY): rect(sl,x,y,w,.37,fill,True); txt(sl,x,y+.07,w,.18,label,10,color,True,PP_ALIGN.CENTER) # 1 title s=prs.slides.add_slide(blank); rect(s,0,0,13.333,7.5,NAVY); rect(s,0,0,.22,7.5,TEAL) txt(s,.72,.78,11.8,.35,'PEDIATRIC TEACHING DECK',12,RGBColor(139,215,209),True) txt(s,.72,1.37,9.6,1.35,'Language Development\nand Communication Disorders',34,WHITE,True) txt(s,.75,3.08,7.7,.6,'Developmental surveillance, clinical assessment, and early intervention',19,RGBColor(220,232,240)) # abstract speech bubbles for x,y,w,h,c in [(10.1,1.2,1.9,1.05,TEAL),(9.1,2.55,2.2,1.2,BLUE),(10.5,4.3,1.8,.95,ORANGE)]: rect(s,x,y,w,h,c,True); rect(s,x+.28,y+h-.06,.2,.22,c) txt(s,.8,6.65,10,.32,'Based on Nelson Textbook of Pediatrics, 22nd edition, Chapter 53',12,RGBColor(188,211,226)) # 2 learning objectives s=prs.slides.add_slide(blank); title(s,'Learning objectives'); foot(s,2) for i,(h,b,c) in enumerate([('Recognize','age-linked communication milestones and red flags',TEAL),('Classify','language, speech, fluency, and pragmatic disorders',BLUE),('Evaluate','hearing, development, context, and comorbidity',ORANGE),('Act','early referral and family-centered supports',RED)]): y=1.72+i*1.18; rect(s,.78,y,11.65,.9,PALE,True,LINE); rect(s,.78,y,.17,.9,c); txt(s,1.18,y+.17,2.2,.28,h,19,NAVY,True); txt(s,3.45,y+.19,8.3,.32,b,17,INK) # 3 foundations s=prs.slides.add_slide(blank); title(s,'What develops? Four linked domains'); foot(s,3) items=[('Language','Form, content, and use of a symbolic system','receptive + expressive'),('Speech','Motor production of sounds and words','articulation + phonology'),('Communication','Exchange of meaning with others','gesture, gaze, turn-taking'),('Social pragmatics','Using language appropriately in context','conversation, inference, repair')] for i,(a,b,c) in enumerate(items): x=.75+(i%2)*6.1; y=1.7+(i//2)*2.1; rect(s,x,y,5.55,1.62,PALE,True,LINE); rect(s,x,y,.16,1.62,[TEAL,BLUE,ORANGE,RED][i]); txt(s,x+.35,y+.25,4.7,.3,a,20,NAVY,True); txt(s,x+.35,y+.72,4.7,.26,b,15,INK); pill(s,x+.35,y+1.15,2.5,c,WHITE,MUTED) txt(s,.78,6.13,11.8,.45,'Clinical point: a child can have clear speech with impaired language, or impaired speech with otherwise intact language.',17,NAVY,True,PP_ALIGN.CENTER) # 4 milestones s=prs.slides.add_slide(blank); title(s,'Early communication milestones: birth to 24 months'); foot(s,4) ages=[('0-3 mo','Orients to familiar voice\nCooing, eye contact'),('3-6 mo','Reciprocal vocal play\nLaughter, babble begins'),('6-12 mo','Joint attention, gestures\nName response, first words'),('12-18 mo','Understands more than says\nAbout 10-20+ words'),('18-24 mo','Vocabulary growth\nTwo-word combinations emerge')] for i,(a,b) in enumerate(ages): x=.65+i*2.52; rect(s,x,2.1,2.12,2.35,WHITE,True,LINE); rect(s,x,2.1,2.12,.45,[TEAL,BLUE,ORANGE,RED,TEAL][i],True); txt(s,x,2.2,2.12,.18,a,13,WHITE,True,PP_ALIGN.CENTER); txt(s,x+.18,2.8,1.76,1.15,b,16,NAVY,True,PP_ALIGN.CENTER) if i<4: rect(s,x+2.14,3.18,.38,.05,LINE) txt(s,.92,5.25,11.45,.72,'Milestones vary. Interpretation depends on the whole developmental profile, language exposure, opportunity to communicate, and hearing status.',17,INK,False,PP_ALIGN.CENTER) # 5 milestones s=prs.slides.add_slide(blank); title(s,'Preschool milestones: 2 to 5 years'); foot(s,5) for i,(age,core,clinical) in enumerate([('2 years','~60 words; 2-word combinations','Comprehension should exceed expression'),('3 years','Short sentences; asks questions','Increasing intelligibility and turn-taking'),('4 years','Narrative grows; follows multi-step directions','Converses with peers and adults'),('5 years','Complex sentences; tells connected story','Ready to use language for learning')]): x=.72+i*3.12; rect(s,x,1.76,2.68,3.95,PALE,True,LINE); txt(s,x+.18,2.0,2.3,.32,age,21,NAVY,True); rect(s,x+.18,2.48,2.1,.05,[TEAL,BLUE,ORANGE,RED][i]); txt(s,x+.18,2.84,2.28,.82,core,17,INK,True); txt(s,x+.18,4.15,2.28,.85,clinical,14,MUTED) txt(s,.8,6.28,11.8,.35,'Monitor trajectory and function, not a single word-count threshold.',18,TEAL,True,PP_ALIGN.CENTER) # 6 red flags s=prs.slides.add_slide(blank); title(s,'When to worry: red flags that prompt action'); foot(s,6) left=['No response to sound, name, or familiar voices','Loss of language, social, or other acquired skills','Absent gestures, joint attention, or pointing by the end of infancy','Poor understanding of simple requests in a toddler'] right=['No meaningful words around 12-18 months','No two-word combinations by about 2 years','Speech is persistently hard to understand or frustrates the child','Concerns in multiple developmental domains or behavior'] rect(s,.75,1.75,5.75,4.72,RGBColor(255,246,244),True,RGBColor(244,202,197)); rect(s,6.85,1.75,5.75,4.72,RGBColor(255,249,239),True,RGBColor(247,216,169)) txt(s,1.08,2.05,4.9,.3,'RED FLAGS',19,RED,True); bullets(s,1.08,2.58,4.85,left,16,INK,RED,.18) txt(s,7.18,2.05,4.9,.3,'NEXT STEP',19,ORANGE,True); bullets(s,7.18,2.58,4.85,right,16,INK,ORANGE,.18) txt(s,.84,6.7,11.7,.25,'Any regression or concern for hearing loss warrants timely assessment, not watchful waiting alone.',15,NAVY,True,PP_ALIGN.CENTER) # 7 classification s=prs.slides.add_slide(blank); title(s,'Communication disorders: a practical classification'); foot(s,7) classes=[('Language disorder','Persistent difficulty learning and using language. May affect comprehension, expression, vocabulary, grammar, or discourse.',TEAL),('Speech sound disorder','Difficulty producing or organizing speech sounds that reduces intelligibility.',BLUE),('Childhood-onset fluency disorder','Disturbance in normal flow and timing of speech, such as repetitions, prolongations, or blocks.',ORANGE),('Social pragmatic communication disorder','Difficulty using verbal and nonverbal communication appropriately in social contexts.',RED)] for i,(a,b,c) in enumerate(classes): y=1.58+i*1.29; rect(s,.75,y,11.8,.99,WHITE,True,LINE); rect(s,.75,y,.2,.99,c); txt(s,1.18,y+.14,3.2,.28,a,17,NAVY,True); txt(s,4.43,y+.13,7.6,.53,b,15,INK) # 8 differential s=prs.slides.add_slide(blank); title(s,'Clinical reasoning: do not label before evaluating context'); foot(s,8) central=rect(s,5.1,2.88,3.05,1.05,NAVY,True); txt(s,5.25,3.18,2.75,.32,'Communication concern',19,WHITE,True,PP_ALIGN.CENTER) for x,y,label,c in [(1.0,1.65,'Hearing loss',TEAL),(9.55,1.65,'Global delay / ID',BLUE),(1.0,4.78,'Autism spectrum\nor social differences',ORANGE),(9.55,4.78,'Motor, neurologic,\nor psychosocial factors',RED)]: rect(s,x,y,2.55,.92,PALE,True,LINE); txt(s,x+.1,y+.21,2.35,.45,label,15,NAVY,True,PP_ALIGN.CENTER) # connectors omitted bullets(s,.9,6.18,11.6,['Bilingual exposure can create language differences, not necessarily disorder.','Use a culturally and linguistically informed assessment; evaluate ability across all languages used.'],15,INK,TEAL,.1) # 9 assessment s=prs.slides.add_slide(blank); title(s,'Assessment pathway in primary care'); foot(s,9) steps=[('1. Elicit concern','Parent, caregiver, teacher, child'),('2. Observe','gaze, gesture, play, reciprocity, intelligibility'),('3. Screen broadly','development, autism when indicated, psychosocial context'),('4. Test hearing','audiology when concern or uncertain status'),('5. Refer and support','SLP, early intervention, developmental services')] for i,(a,b) in enumerate(steps): x=.56+i*2.52; rect(s,x,2.02,2.17,2.15,PALE,True,LINE); rect(s,x+.7,2.25,.76,.76,[TEAL,BLUE,ORANGE,RED,TEAL][i],True); txt(s,x+.7,2.46,.76,.2,str(i+1),16,WHITE,True,PP_ALIGN.CENTER); txt(s,x+.16,3.22,1.85,.3,a,16,NAVY,True,PP_ALIGN.CENTER); txt(s,x+.16,3.72,1.85,.45,b,13,MUTED,False,PP_ALIGN.CENTER) if i<4: txt(s,x+2.18,2.78,.32,.3,'›',28,TEAL,True,PP_ALIGN.CENTER) txt(s,.9,5.32,11.5,.7,'History includes onset, course, regression, languages used, family history, medical risks, hearing history, social environment, and functional impact.',17,INK,False,PP_ALIGN.CENTER) # 10 management s=prs.slides.add_slide(blank); title(s,'Management: intervene early and in partnership'); foot(s,10) for i,(a,b,c) in enumerate([('Family coaching','Respond to communication attempts, expand the child’s message, share books, sing, and create turn-taking routines.',TEAL),('Speech-language therapy','Individualized goals for comprehension, expression, speech sounds, fluency, or pragmatics.',BLUE),('Hearing and AAC access','Treat hearing needs promptly. Use augmentative and alternative communication when it supports participation.',ORANGE),('Educational support','Coordinate early intervention, preschool/school planning, and functional communication supports.',RED)]): x=.72+(i%2)*6.08; y=1.66+(i//2)*2.3; rect(s,x,y,5.58,1.83,PALE,True,LINE); rect(s,x,y,.17,1.83,c); txt(s,x+.35,y+.23,4.78,.28,a,18,NAVY,True); txt(s,x+.35,y+.7,4.77,.75,b,15,INK) #11 case s=prs.slides.add_slide(blank); title(s,'Case application'); foot(s,11) rect(s,.72,1.63,4.0,4.95,RGBColor(238,248,247),True,LINE); txt(s,1.05,1.98,3.34,.3,'Vignette',19,TEAL,True) txt(s,1.05,2.55,3.25,2.6,'A 24-month-old uses a few single words, does not combine words, and becomes upset when not understood. The child points to request but follows simple commands. Hearing status is uncertain.',17,INK) rect(s,5.05,1.63,7.55,4.95,WHITE,True,LINE); txt(s,5.38,1.98,6.75,.3,'Reasoned response',19,NAVY,True) bullets(s,5.38,2.55,6.65,['Clarify developmental trajectory, social reciprocity, play, regression, and language exposure.','Arrange formal hearing assessment and speech-language evaluation.','Refer to early intervention while assessment is underway.','Coach caregivers to build daily communication opportunities and review progress.'],16,INK,TEAL,.21) #12 summary s=prs.slides.add_slide(blank); title(s,'Take-home messages'); foot(s,12) for i,t in enumerate(['Communication is more than words: evaluate language, speech, interaction, and function.','Milestones guide surveillance, but trajectory and context determine concern.','Always consider hearing, global development, autism-related features, and multilingual context.','Early referral to speech-language pathology, audiology, and early intervention is appropriate when concerns persist.']): y=1.65+i*1.1; rect(s,.95,y,11.3,.75,WHITE,True,LINE); rect(s,1.18,y+.15,.45,.45,[TEAL,BLUE,ORANGE,RED][i],True); txt(s,1.18,y+.25,.45,.14,str(i+1),12,WHITE,True,PP_ALIGN.CENTER); txt(s,1.9,y+.18,9.95,.35,t,17,NAVY,True) #13 sources s=prs.slides.add_slide(blank); title(s,'Sources and scope'); foot(s,13) txt(s,.8,1.7,11.7,.45,'Primary requested source',20,NAVY,True) txt(s,.8,2.2,11.5,.45,'Kliegman RM, St. Geme JW III, editors. Nelson Textbook of Pediatrics. 22nd ed. Elsevier; 2025. Chapter 53: Language Development and Communication Disorders.',16,INK) txt(s,.8,3.15,11.7,.45,'Supporting teaching references',20,NAVY,True) bullets(s,.84,3.7,11.4,['CDC Learn the Signs. Act Early. Developmental Milestones, accessed September 2026.','Scott-Brown’s Otorhinolaryngology Head & Neck Surgery, Vol 2. Speech, language and communication milestones.','The Harriet Lane Handbook, 23rd ed. Communication disorders: definition, differential diagnosis, and referral.'],15,INK,TEAL,.18) rect(s,.8,5.95,11.75,.65,RGBColor(255,249,239),True,RGBColor(247,216,169)); txt(s,1.03,6.16,11.2,.22,'Educational material. Adapt local referral pathways and institutional guidance. This deck is not a substitute for individualized clinical assessment.',13,NAVY,False,PP_ALIGN.CENTER) # add notes with source attribution to every slide for slide in prs.slides: notes=slide.notes_slide.notes_text_frame notes.text='Educational deck. Primary source: Nelson Textbook of Pediatrics, 22nd edition, Chapter 53: Language Development and Communication Disorders. Supplemental sources are listed on slide 13.' prs.save(OUT) print(OUT) PY python "/tmp/workspace/language-development-ppt/src/create_ppt.py" && ls -lh "/tmp/workspace/language-development-ppt/output/Language_Development_and_Communication_Disorders_Nelson_22e.pptx"
python - <<'PY' from pptx import Presentation p='/tmp/workspace/language-development-ppt/output/Language_Development_and_Communication_Disorders_Nelson_22e.pptx' prs=Presentation(p) print('slides:',len(prs.slides)) for i,s in enumerate(prs.slides,1): text=' | '.join(sh.text.replace('\n',' / ') for sh in s.shapes if getattr(sh,'has_text_frame',False) and sh.text.strip()) print(i, text[:180]) PY
Language Development and Communication Disorders Nelson 22e
Presentation · PPTX