pediatric-ai-scribe/public/js/milestonesData.js
ifedan-ed 993e46f720 Initial commit: Pediatric AI Scribe v1.0.0
- Live encounter recording → HPI generation
- Physician voice dictation → polished HPI
- Developmental milestones checklist (AAP/Nelson)
- 3-sentence summary generator
- OpenRouter integration with model selector
- Docker support
- Mobile responsive UI
2026-03-17 21:46:05 -04:00

445 lines
14 KiB
JavaScript

// ============================================================
// DEVELOPMENTAL MILESTONES DATA
// Sources: AAP Bright Futures, Nelson Textbook of Pediatrics
// THIS MODULE IS COMPLETELY SEPARATE FROM HPI
// ============================================================
var MILESTONES_DATA = {
"2 months": {
"Gross Motor": [
"Lifts head when prone (45 degrees)",
"Holds head steady when held upright briefly",
"Moves both arms and both legs",
"Pushes up on tummy"
],
"Fine Motor": [
"Opens hands briefly",
"Holds rattle if placed in hand briefly",
"Brings hands to midline"
],
"Language": [
"Coos and makes gurgling sounds",
"Makes sounds other than crying",
"Turns head toward sounds"
],
"Social/Emotional": [
"Social smile (responsive to faces)",
"Begins to self-soothe (hands to mouth)",
"Tries to look at parent",
"Calms when spoken to or picked up"
],
"Cognitive": [
"Pays attention to faces",
"Begins to follow things with eyes",
"Recognizes people at a distance"
]
},
"4 months": {
"Gross Motor": [
"Holds head steady unsupported",
"Pushes up to elbows when on tummy",
"May roll over tummy to back",
"Pushes down on legs when feet on hard surface"
],
"Fine Motor": [
"Reaches for toys with one hand",
"Uses hands and eyes together",
"Grasps and shakes hand toys"
],
"Language": [
"Babbles with expression and copies sounds",
"Cries differently for hunger pain and tiredness",
"Makes vowel sounds ah eh oh"
],
"Social/Emotional": [
"Smiles spontaneously especially at people",
"Likes to play and may cry when playing stops",
"Copies movements and facial expressions"
],
"Cognitive": [
"Lets you know if happy or sad",
"Follows moving things with eyes side to side",
"Watches faces closely",
"Recognizes familiar people at a distance"
]
},
"6 months": {
"Gross Motor": [
"Rolls over in both directions",
"Begins to sit without support",
"Supports weight on legs and might bounce",
"Rocks back and forth on hands and knees"
],
"Fine Motor": [
"Reaches for and grasps objects",
"Transfers objects hand to hand",
"Raking grasp to pick up objects",
"Brings things to mouth"
],
"Language": [
"Responds to own name",
"Responds to sounds by making sounds",
"Strings vowels together when babbling",
"Begins consonant sounds m and b",
"Makes sounds to show joy and displeasure"
],
"Social/Emotional": [
"Knows familiar faces and recognizes strangers",
"Likes to play with others especially parents",
"Responds to other peoples emotions",
"Likes to look at self in mirror"
],
"Cognitive": [
"Looks around at things nearby",
"Shows curiosity and tries to get things out of reach",
"Begins to pass things from one hand to the other"
]
},
"9 months": {
"Gross Motor": [
"Stands holding on to support",
"Can get into sitting position",
"Sits without support",
"Pulls to stand",
"Crawls"
],
"Fine Motor": [
"Pincer grasp developing (thumb and index finger)",
"Transfers objects smoothly between hands",
"Picks up small objects like cereal pieces",
"Bangs two objects together"
],
"Language": [
"Understands no",
"Makes many different sounds like mamamama bababababa",
"Copies sounds and gestures of others",
"Uses fingers to point at things"
],
"Social/Emotional": [
"May be afraid of strangers (stranger anxiety)",
"May be clingy with familiar adults (separation anxiety)",
"Has favorite toys",
"Plays peek-a-boo"
],
"Cognitive": [
"Watches the path of something as it falls",
"Looks for hidden things (object permanence developing)",
"Puts things in mouth to explore",
"Moves things smoothly between hands"
]
},
"12 months": {
"Gross Motor": [
"Pulls up to stand",
"Walks holding on to furniture (cruising)",
"May take a few steps without holding on",
"May stand alone"
],
"Fine Motor": [
"Neat pincer grasp (thumb and forefinger)",
"Puts things in a container",
"Takes things out of a container",
"Lets go of things without help",
"Pokes with index finger"
],
"Language": [
"Says mama and dada with meaning",
"Responds to simple spoken requests",
"Uses simple gestures like waving bye-bye",
"Says one to two other words",
"Tries to say words you say"
],
"Social/Emotional": [
"Is shy or nervous with strangers",
"Cries when mom or dad leaves",
"Has favorite things and people",
"Shows fear in some situations",
"Hands you a book to hear a story"
],
"Cognitive": [
"Explores things by shaking banging throwing",
"Finds hidden things easily",
"Looks at right picture when it is named",
"Copies gestures",
"Starts to use things correctly like drinking from cup"
]
},
"15 months": {
"Gross Motor": [
"Walks independently",
"May walk up steps with help",
"Stoops to pick up toy and stands back up"
],
"Fine Motor": [
"Stacks two blocks",
"Scribbles with crayon",
"Drinks from cup with some spilling",
"Uses fingers to eat"
],
"Language": [
"Says three to five words",
"Follows one-step commands without gestures",
"Points to show something interesting",
"Points to ask for something"
],
"Social/Emotional": [
"Copies other children while playing",
"Shows affection to familiar people",
"Claps when excited",
"Shows you objects they like"
],
"Cognitive": [
"Tries to use things the right way (phone cup book)",
"Stacks at least two small objects",
"Follows one-step directions without gestures"
]
},
"18 months": {
"Gross Motor": [
"Walks well independently",
"Runs stiffly",
"Walks up steps with hand held",
"Pulls toys while walking",
"Climbs on and off furniture without help"
],
"Fine Motor": [
"Scribbles spontaneously",
"Stacks three to four blocks",
"Drinks from cup",
"Eats with spoon (messy)",
"Turns book pages two to three at a time"
],
"Language": [
"Says ten to twenty or more single words",
"Says and shakes head no",
"Points to show someone what they want",
"Points to one body part when asked",
"Follows one-step verbal commands without gestures"
],
"Social/Emotional": [
"Likes to hand things to others as play",
"May have temper tantrums",
"Shows affection to familiar people",
"Plays simple pretend like feeding a doll",
"May cling to caregivers in new situations"
],
"Cognitive": [
"Knows what ordinary things are for (phone brush spoon)",
"Points to get attention of others",
"Shows interest in doll by pretending to feed",
"Points to one body part when asked",
"Scribbles on own"
]
},
"24 months": {
"Gross Motor": [
"Kicks a ball",
"Runs",
"Walks up and down stairs holding on",
"Stands on tiptoe",
"Throws ball overhand",
"Begins to jump with both feet"
],
"Fine Motor": [
"Stacks six or more blocks",
"Turns book pages one at a time",
"Turns door handles",
"Copies a straight line",
"Eats with spoon well"
],
"Language": [
"Points to things in book when asked",
"Says sentences with two to four words",
"Follows simple two-step instructions",
"Knows names of familiar people and body parts",
"Uses more than fifty words",
"Strangers understand about half of speech"
],
"Social/Emotional": [
"Copies others especially adults and older children",
"Gets excited with other children",
"Shows increasing independence",
"Plays mainly beside other children (parallel play)",
"Shows defiant behavior"
],
"Cognitive": [
"Finds things hidden under two to three covers",
"Begins to sort shapes and colors",
"Plays simple make-believe",
"Builds tower of four or more blocks",
"Follows two-step instructions"
]
},
"30 months": {
"Gross Motor": [
"Jumps with both feet off the ground",
"Walks up stairs alternating feet with rail",
"Runs well without falling",
"Kicks ball forward"
],
"Fine Motor": [
"Stacks eight or more blocks",
"Copies a vertical line",
"Turns pages one at a time",
"Strings large beads"
],
"Language": [
"Uses two to three word phrases routinely",
"Uses plurals (dogs cats)",
"Knows at least one color",
"Uses I me you",
"Vocabulary over 200 words"
],
"Social/Emotional": [
"Plays alongside progressing to interactive play",
"Shows concern for crying friend",
"Shows wide range of emotions",
"Takes turns in games with help"
],
"Cognitive": [
"Plays make-believe with dolls animals people",
"Does puzzles with three to four pieces",
"Understands concept of two",
"Copies a circle by age 3"
]
},
"36 months": {
"Gross Motor": [
"Climbs well",
"Runs easily",
"Pedals a tricycle",
"Walks up and down stairs one foot per step",
"Jumps forward"
],
"Fine Motor": [
"Copies a circle",
"Builds towers of more than nine blocks",
"Turns rotating handles like doorknobs",
"Uses scissors to snip"
],
"Language": [
"Carries on conversation using two to three sentences",
"Names most familiar things",
"Understands in on under",
"Says first name age and sex",
"Talks well enough for strangers to understand most of the time",
"Follows two to three step instructions"
],
"Social/Emotional": [
"Copies adults and friends",
"Takes turns in games",
"Shows affection for friends without prompting",
"Understands mine and his or hers",
"Separates easily from parents"
],
"Cognitive": [
"Works toys with buttons levers and moving parts",
"Plays make-believe with dolls animals people",
"Does puzzles with three to four pieces",
"Understands what two means",
"Copies a circle with pencil or crayon"
]
},
"48 months": {
"Gross Motor": [
"Hops on one foot",
"Catches a bounced ball most of the time",
"Walks up and down stairs without support",
"Kicks ball forward with force",
"Stands on one foot for two or more seconds"
],
"Fine Motor": [
"Draws a person with two to four body parts",
"Copies a cross shape",
"Uses scissors to cut along a line",
"Prints some capital letters",
"Stacks ten or more blocks"
],
"Language": [
"Knows some basic rules of grammar like he and she",
"Sings a song or says a poem from memory",
"Tells stories",
"Says first and last name",
"Understands same and different",
"Uses sentences with four or more words",
"Speech is fully intelligible to strangers"
],
"Social/Emotional": [
"Enjoys doing new things",
"Plays mom and dad (role playing)",
"Is creative with make-believe play",
"Would rather play with others than alone",
"Cooperates with other children"
],
"Cognitive": [
"Names some colors and numbers",
"Understands the idea of counting",
"Starts to understand time concepts",
"Remembers parts of a story",
"Understands same and different",
"Draws a person with two to four body parts"
]
},
"60 months": {
"Gross Motor": [
"Stands on one foot for ten or more seconds",
"Hops and may skip",
"Can do a somersault",
"Swings and climbs",
"Catches a small ball using hands only"
],
"Fine Motor": [
"Copies a triangle and other shapes",
"Draws a person with at least six body parts",
"Prints some letters and numbers",
"Uses fork and spoon well and may use knife",
"Can dress and undress independently"
],
"Language": [
"Speaks very clearly",
"Tells a simple story using full sentences",
"Uses future tense",
"Says name and address",
"Counts ten or more objects",
"Uses five to eight word sentences"
],
"Social/Emotional": [
"Wants to please friends",
"Wants to be like friends",
"More likely to agree with rules",
"Likes to sing dance and act",
"Aware of gender",
"Can tell real from make-believe"
],
"Cognitive": [
"Counts ten or more objects",
"Names at least four colors correctly",
"Better understands time concepts",
"Knows about everyday things (money food)",
"Draws a person with at least six body parts",
"Prints some letters or numbers"
]
}
};
var DOMAIN_CONFIG = {
"Gross Motor": { icon: "🏃", css: "domain-gross-motor" },
"Fine Motor": { icon: "✋", css: "domain-fine-motor" },
"Language": { icon: "🗣️", css: "domain-language" },
"Social/Emotional": { icon: "🤝", css: "domain-social" },
"Cognitive": { icon: "🧠", css: "domain-cognitive" }
};
console.log('✅ Milestones data loaded:', Object.keys(MILESTONES_DATA).length, 'age groups');