Make flashcards for extaoral radiography BDS final yr
mkdir -p /home/daytona/workspace/extraoral-radio-flashcards
~/extraoral-radio-flashcards/flashcards.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Extraoral Radiography – BDS Final Year Flashcards";
// ─── PALETTE ───
const BG_FRONT = "0D2B55"; // deep navy – question side
const BG_BACK = "1A4A2E"; // deep green – answer side
const ACCENT = "F5C242"; // gold
const WHITE = "FFFFFF";
const LIGHT_GREY = "D6E4F0";
const PILL_BG = "1E3F6F";
const PILL_TEXT = "F5C242";
// ─── CARD DATA ───
const cards = [
// ── SECTION 1: Fundamentals ──
{
section: "Fundamentals",
q: "What is extraoral radiography?",
a: "Radiographic technique where the film/detector is placed OUTSIDE the mouth.\nUsed when lesions are too large for intraoral films, or patient cannot tolerate intraoral placement.",
mnemonic: "Think: 'Extra = Outside the oral cavity'"
},
{
section: "Fundamentals",
q: "Advantages of extraoral radiography over intraoral?",
a: "• Larger area covered in single exposure\n• Useful in restricted mouth opening (trismus)\n• Less patient discomfort\n• Can image jaws, skull, facial bones, TMJ\n• Used in orthodontic cephalometry & implant planning",
mnemonic: ""
},
{
section: "Fundamentals",
q: "Disadvantages of extraoral radiography?",
a: "• Less detail / lower resolution than intraoral\n• Higher radiation dose (larger area irradiated)\n• Requires specialized equipment\n• More prone to geometric distortion\n• Superimposition of structures",
mnemonic: ""
},
// ── SECTION 2: Panoramic (OPG) ──
{
section: "Panoramic (OPG)",
q: "What is panoramic radiography (OPG)?",
a: "A single tomographic image of both jaws, teeth, and associated structures.\nBased on ROTATIONAL TOMOGRAPHY – tube and film rotate around the patient simultaneously.\nAlso called: Orthopantomogram (OPG), Pantomograph, Rotational radiograph.",
mnemonic: "OPG = Orthopantomogram"
},
{
section: "Panoramic (OPG)",
q: "What is the image layer (focal trough) in OPG?",
a: "The focal trough (image layer / zonography layer) is a curved, horseshoe-shaped zone where structures are in sharp focus.\nStructures outside it appear blurred.\nDimensions vary by machine: ~5–15 mm thick.",
mnemonic: "Focal trough = Sharp zone (shaped like dental arch)"
},
{
section: "Panoramic (OPG)",
q: "Indications for OPG?",
a: "• Overview of dentition & supporting bone\n• Developmental anomalies (supernumeraries, agenesis)\n• Pathology: cysts, tumors, osteomyelitis\n• Fractures of mandible & condyles\n• TMJ assessment (bony changes)\n• Pre-extraction / implant survey\n• Third molar assessment\n• Orthodontic treatment planning",
mnemonic: ""
},
{
section: "Panoramic (OPG)",
q: "Errors in OPG – patient positioning errors?",
a: "• Head tilted down → smile curve exaggerated (upward)\n• Head tilted up → smile curve reversed (downward, flat)\n• Head turned to one side → magnification asymmetry\n• Tongue not on palate → dark shadow across roots\n• Lips not closed → dark band across anterior teeth\n• Chin too far forward → blurred anterior teeth (anterior to focal trough)\n• Chin too far back → magnified/blurred anteriors",
mnemonic: "TTTLCC: Tilt, Turn, Tongue, Lips, Chin forward, Chin back"
},
{
section: "Panoramic (OPG)",
q: "Ghost images in OPG – what are they and how to identify?",
a: "Ghost images arise from structures on the OPPOSITE side of the X-ray source.\nCharacteristics:\n• Located HIGHER than real image\n• Located on OPPOSITE side\n• More BLURRED and WIDER than real object\n• Common ghosts: spine (radiopaque band), hyoid, earrings, cervical vertebrae",
mnemonic: "Ghost = Higher + Opposite side + More blurred"
},
{
section: "Panoramic (OPG)",
q: "Normal anatomical structures seen on OPG – list the key ones?",
a: "Maxilla: nasal fossa, nasal septum, maxillary sinus, zygomatic arch, pterygomaxillary fissure, tuberosity, floor of orbit, infraorbital canal\nMandible: condyle, coronoid process, sigmoid notch, mandibular canal, mental foramen, genial tubercles, angle, symphysis\nOthers: hyoid bone, cervical vertebrae, soft palate, epiglottis (sometimes)",
mnemonic: ""
},
{
section: "Panoramic (OPG)",
q: "What is the Eagle syndrome and how is OPG useful?",
a: "Elongated styloid process (>3 cm) causing throat/neck pain.\nOPG shows styloid process – easily identified on panoramic image.\nCan measure its length on OPG.",
mnemonic: "Eagle = Elongated styloid = >3 cm on OPG"
},
// ── SECTION 3: Cephalometric ──
{
section: "Cephalometry",
q: "What is cephalometric radiography?",
a: "Standardized lateral (or PA) skull radiograph taken at a fixed distance with a cephalostat.\nThe cephalostat holds the head in a fixed position using ear rods.\nTube-to-midsagittal plane distance: 60 inches (152 cm) – standardized.\nMagnification factor: ~10% (film-to-midsagittal ~15 cm, for 60 inch TSD).",
mnemonic: "Cephalostat = Fixed head position = Reproducible images"
},
{
section: "Cephalometry",
q: "Lateral cephalogram – key landmarks (soft tissue profile)?",
a: "Nasion (N'), Pronasale (Pn), Subnasal (Sn), Labrale superius (Ls), Stomion (St), Labrale inferius (Li), Pogonion (Pog'), Menton (Me')",
mnemonic: ""
},
{
section: "Cephalometry",
q: "Lateral cephalogram – key HARD tissue landmarks?",
a: "Sella (S) – center of sella turcica\nNasion (N) – frontonasal suture\nOrbitale (Or) – lowest point of orbit\nPorion (Po) – top of EAM\nPoint A (Subspinale) – deepest point of anterior maxilla\nPoint B (Supramentale) – deepest point of anterior mandible\nGnathion (Gn) – most anterior-inferior point of chin\nMenton (Me) – most inferior point of mandibular symphysis\nGonion (Go) – most posterior-inferior point of mandibular angle",
mnemonic: "S-N-A-B-Go-Gn: the key SNA/SNB angle landmarks"
},
{
section: "Cephalometry",
q: "SNA, SNB, and ANB angles – normal values?",
a: "SNA = 82° ± 2° (maxillary prognathism relative to cranial base)\nSNB = 80° ± 2° (mandibular prognathism relative to cranial base)\nANB = SNA – SNB = 2° ± 2°\n• ANB > 4° → Class II skeletal pattern\n• ANB < 0° → Class III skeletal pattern",
mnemonic: "SNA 82, SNB 80, ANB 2 – 'All British Norms are 2 degrees apart'"
},
{
section: "Cephalometry",
q: "Frankfort horizontal plane (FHP)?",
a: "A plane joining Porion (superior margin of EAM) and Orbitale (lowest point of orbit).\nRepresents head position with eyes looking forward.\nUsed as reference plane in cephalometry.\nShould be parallel to floor during exposure.",
mnemonic: "FHP = Frankfurt = Po-Or plane = Eyes forward"
},
{
section: "Cephalometry",
q: "What is Wits appraisal?",
a: "Measures anteroposterior jaw discrepancy independent of cranial base.\nPerpendiculars dropped from points A and B to the functional occlusal plane → points AO and BO.\nNormals: Males: AO ahead of BO by ~1 mm; Females: AO = BO (or BO slightly behind).\nWits > 2 mm = Class II tendency; Wits < –2 mm = Class III tendency.",
mnemonic: "Wits = Works when ANB is unreliable (steep/flat cranial base)"
},
{
section: "Cephalometry",
q: "What is a PA (posteroanterior) cephalogram used for?",
a: "Assesses facial asymmetry and transverse skeletal discrepancies.\nTaken with beam passing posterior to anterior.\nStandard projection: Caldwell (15° caudal tilt) or Water's modification.\nUsed in: cleft palate, hemifacial microsomia, mandibular asymmetry assessment.",
mnemonic: "PA Ceph = Transverse + Asymmetry assessment"
},
// ── SECTION 4: Skull Projections ──
{
section: "Skull Projections",
q: "Waters' projection – what is it and what does it show?",
a: "Also called: Occipitomental view / Paranasal sinus view.\nPatient position: Chin elevated 37° so that petrous ridges project below maxillary sinuses.\nChin-to-film distance: OML forms 37° with film.\nShows: Maxillary sinuses (best view), frontal sinus, ethmoids, zygomatic arches, orbits, nasal bones.\nUsed for: Sinusitis, zygomatic arch fracture, blow-out fracture of orbit.",
mnemonic: "Waters = Watch the Maxillary sinuses (37° angle)"
},
{
section: "Skull Projections",
q: "Caldwell's projection – what does it show?",
a: "Posteroanterior (PA) skull with 15° caudal angulation (OML perpendicular to film, beam 15° caudal).\nShows: Frontal sinus (best view), ethmoid sinuses, orbits (superior orbital fissure), nasal bones.\nCrista galli, falx cerebri calcification if present.\nPetrous ridges overlie lower orbits.",
mnemonic: "Caldwell = Frontal sinus best view, 15° caudal"
},
{
section: "Skull Projections",
q: "Submentovertex (SMV) projection – indications?",
a: "Also called: Basal/Base projection / Axial projection.\nPatient extends head so vertex rests on table, beam from below chin (submental) upward.\nShows: Base of skull, sphenoid sinus, zygomatic arches (flared), pterygoid plates, mandibular condyles (end-on), ethmoid sinus, carotid canal.\nUsed for: Zygomatic arch fracture (best view), base of skull fractures.",
mnemonic: "SMV = Submento = Base of skull + Zygomatic arches best"
},
{
section: "Skull Projections",
q: "Reverse Towne's projection – what does it show?",
a: "PA skull with 30° cranial angulation (OML perpendicular, beam 30° cranial).\nShows: Mandibular condyles (superimposed on ramus), condylar neck fractures, subcondylar fractures.\nThe 'open mouth' modification (30° + 10° open mouth) better visualizes condyles.",
mnemonic: "Reverse Towne's = Condyle fractures (posterior approach)"
},
{
section: "Skull Projections",
q: "Lateral skull view – what does it show?",
a: "True lateral projection (midsagittal plane parallel to film).\nShows: Sella turcica, pituitary fossa size/shape, clinoid processes, dorsum sellae, vault bones, sutures, intracranial calcifications (pineal, choroid), facial bones in profile.\nUsed in: Pituitary tumors (sellar changes), Paget's disease, fibrous dysplasia, osteopetrosis.",
mnemonic: "Lateral skull = Sella turcica assessment"
},
// ── SECTION 5: TMJ Projections ──
{
section: "TMJ Radiography",
q: "Transcranial projection (lateral oblique) for TMJ – technique?",
a: "X-ray beam directed from above and behind the contralateral temporal bone.\nTube angle: 25° downward, 20° forward (varies by technique).\nFilm placed against ipsilateral cheek.\nShows: Lateral portion of condyle, articular eminence, glenoid fossa.\nLimitation: Only shows lateral pole; not true cross-section of joint.",
mnemonic: "Transcranial = Lateral pole only"
},
{
section: "TMJ Radiography",
q: "Transpharyngeal (infracranial) projection for TMJ?",
a: "Beam directed through sigmoid notch of opposite side.\nShows: Medial and central parts of condylar head (complementary to transcranial).\nUsed when transcranial gives insufficient info.",
mnemonic: "Transpharyngeal = Medial condyle (opposite of transcranial)"
},
{
section: "TMJ Radiography",
q: "Arthrography of TMJ – what is it?",
a: "Injection of contrast medium (iodine-based) into the TMJ spaces.\nLower space arthrography: most common; needle enters at 1 cm anterior to tragus, below sigmoid notch.\nUpper space arthrography: above disc.\nShows: Disc position, perforation, adhesions, and disc mobility.\nNow largely replaced by MRI.",
mnemonic: "Arthrography = Contrast in joint spaces (disc status)"
},
{
section: "TMJ Radiography",
q: "Gold standard imaging for TMJ disc assessment?",
a: "MRI (Magnetic Resonance Imaging).\nShows: Disc position (anterior displacement with/without reduction), disc morphology, retrodiscal tissue, joint effusion, bone marrow changes.\nT1: Anatomy; T2: Effusion/fluid.\nClosed and open-mouth images taken.",
mnemonic: "MRI = TMJ disc gold standard (no radiation)"
},
// ── SECTION 6: Special Techniques ──
{
section: "Tomography & Special Techniques",
q: "What is conventional tomography?",
a: "A technique that produces a focused image of a selected plane while blurring structures above and below.\nFulcrum = pivot point of tube-film movement.\nTypes based on movement: Linear, Circular, Elliptical, Hypocycloid (most blur).\nUse: TMJ, sella, vertebrae – superseded by CT.",
mnemonic: "Tomography = Targeted plane; fulcrum = focused zone"
},
{
section: "Tomography & Special Techniques",
q: "CT scan in maxillofacial radiology – indications?",
a: "• Complex maxillofacial fractures (Le Fort, orbital, condylar, frontal sinus)\n• Bone tumors and cysts (extent, cortical breach)\n• Salivary gland calculi (sialolithiasis)\n• Implant planning (bone volume/density)\n• TMJ bony pathology\n• Airway assessment in OSA\n• Vascular lesions (with contrast)\nCBCT is preferred for dental applications (lower dose).",
mnemonic: ""
},
{
section: "Tomography & Special Techniques",
q: "CBCT (Cone Beam CT) – principles and advantages over medical CT?",
a: "Principle: Cone-shaped beam + flat-panel detector rotates 180°–360° around patient.\nAdvantages over MSCT:\n• Lower radiation dose (70–90% less)\n• Isotropic voxels (equal in all dimensions)\n• Sub-mm resolution\n• Dental/maxillofacial specific\n• Smaller footprint, lower cost\nDisadvantages:\n• More scatter, lower soft-tissue contrast\n• Not suitable for soft-tissue diagnosis",
mnemonic: "CBCT = Cone beam = Lower dose + High bone resolution"
},
{
section: "Tomography & Special Techniques",
q: "FOV (Field of View) in CBCT – types and applications?",
a: "Small FOV (< 5 cm): Single teeth, periapical lesions, endodontics, implant single site\nMedium FOV (5–10 cm): Quadrant, TMJ, dentoalveolar\nLarge FOV (> 10 cm): Full maxillofacial, orthognathic planning, airway, skeletal abnormalities\nRule: Use smallest FOV that answers the clinical question (ALARA principle).",
mnemonic: "Small FOV = Less dose; use what you need"
},
// ── SECTION 7: Sialography ──
{
section: "Sialography",
q: "What is sialography and its indications?",
a: "Radiographic examination of salivary glands after injection of contrast medium into duct.\nIndications:\n• Salivary gland obstruction (calculi, strictures)\n• Inflammatory conditions (sialadentitis, Sjögren's)\n• Salivary fistula\n• Pre/post-operative assessment\n• Salivary gland tumors (displacement of ducts)\nContraindications: Acute infection, iodine allergy.",
mnemonic: "Sialography = Contrast in ducts → Shows stones + strictures"
},
{
section: "Sialography",
q: "Technique of parotid sialography?",
a: "1. Identify Stensen's duct opening (opposite upper 2nd molar)\n2. Pre-cannulation: 1 lemon/citric acid drop to stimulate flow\n3. Cannula (0.5–1.0 mm diameter blunt needle) inserted ~2 cm\n4. Inject 0.5–2 mL of water-soluble contrast (Urograffin)\n5. Images taken: AP + lateral (plain + after emptying)\nNormal: Smooth branching duct system ('leafless winter tree' pattern)",
mnemonic: "Stensen → Upper 2nd molar; Wharton → Floor of mouth"
},
{
section: "Sialography",
q: "Sialographic findings in different conditions?",
a: "Calculi: Filling defect within duct (radiopaque stone may be visible on plain film)\nSialadenitis (acute): Not done; (chronic): 'Sialectasis' – punctate/globular collections\nSjögren's syndrome: 'Snowstorm' / 'Cherry blossom' / 'Branchless fruit-laden tree' appearance – multiple punctate collections (terminal sialectasis)\nStricture: Narrowing of duct lumen\nBenign tumor: Smooth displacement of ducts\nMalignant tumor: Destruction, irregular filling defects",
mnemonic: "Sjögren = Snowstorm / Cherry blossom on sialography"
},
// ── SECTION 8: Radiation Protection ──
{
section: "Radiation Protection",
q: "ALARA principle in radiography?",
a: "As Low As Reasonably Achievable.\nApplied by:\n• Collimation (restrict beam to area of interest)\n• Filtration (remove low-energy photons)\n• Fast film/digital sensors\n• Lead apron + thyroid collar for patient\n• Rectangular collimator (better than round)\n• Correct exposure settings\n• Selective radiography (not routine)\nFor extraoral: Lead apron mandatory; thyroid collar used where possible.",
mnemonic: "ALARA = Minimize dose without sacrificing diagnostic quality"
},
{
section: "Radiation Protection",
q: "Radiation units – which ones must you know?",
a: "Exposure: Roentgen (R) – air ionization\nAbsorbed dose: Gray (Gy) [old: rad; 1 Gy = 100 rad]\nDose equivalent: Sievert (Sv) [old: rem; 1 Sv = 100 rem]\nEffective dose (E): Sv – accounts for tissue sensitivity weighting\nOPG effective dose: ~15–25 μSv\nCBCT small FOV: ~18–100 μSv\nFull-mouth survey: ~40–170 μSv\nChest X-ray: ~20 μSv",
mnemonic: "Roentgen→Gray→Sievert (exposure→absorbed→equivalent)"
},
{
section: "Radiation Protection",
q: "Annual radiation dose limits (ICRP recommendations)?",
a: "Occupationally exposed workers:\n• Effective dose: 20 mSv/year (averaged over 5 years), max 50 mSv in any single year\n• Lens of eye: 150 mSv/year\n• Skin/extremities: 500 mSv/year\nGeneral public:\n• Effective dose: 1 mSv/year\nPregnant workers: ≤ 1 mSv to fetus during pregnancy",
mnemonic: "Workers: 20 mSv; Public: 1 mSv (20:1 ratio)"
},
// ── SECTION 9: Mandibular Projections ──
{
section: "Mandibular Projections",
q: "Lateral oblique (body of mandible) projection – technique?",
a: "Film placed against ipsilateral cheek, beam directed from contralateral side.\nAngulation: 8–15° superior (vertically), 10–15° posterior (horizontally).\nShows: Body of mandible, lower teeth, mental foramen, mandibular canal.\nAdvantage: No special equipment; useful when panoramic not available.",
mnemonic: "Lateral oblique = Mandibular body survey (inexpensive)"
},
{
section: "Mandibular Projections",
q: "PA mandible projection – indications and what it shows?",
a: "Posteroanterior projection with OML perpendicular to film.\nShows: Symphysis, anterior mandible, rami, condyles (superimposed on skull).\nUsed for: Fractures of symphysis, parasymphysis; bilateral comparison; condylar hyperplasia.\n+ Reverse Towne's for complete condyle assessment.",
mnemonic: "PA mandible = Symphysis + Rami in one view"
},
{
section: "Mandibular Projections",
q: "True lateral mandible projection (extraoral)?",
a: "Film placed on lateral surface of mandible; beam from contralateral side, perpendicular to film.\nShows: Entire mandibular body, angle, lower border, ramus in lateral view.\nUsed: Fractures, osteomyelitis, large cysts, tumors extending to lower border.",
mnemonic: ""
},
// ── SECTION 10: Sinus Projections ──
{
section: "Paranasal Sinuses",
q: "Best projection for each paranasal sinus?",
a: "Maxillary sinus: Waters' (occipitomental) view\nFrontal sinus: Caldwell's (PA, 15°) view\nEthmoid sinus: Caldwell's view (also Waters' to some extent)\nSphenoid sinus: Lateral skull / SMV (submentovertex)\nRemember: CT is now standard for pre-surgical sinus assessment.",
mnemonic: "Max → Waters; Frontal → Caldwell; Sphenoid → Lateral/SMV"
},
{
section: "Paranasal Sinuses",
q: "Radiographic signs of maxillary sinusitis?",
a: "• Mucosal thickening (>2 mm opacification lining sinus walls)\n• Air-fluid level (fluid level in sinus cavity – acute sinusitis)\n• Complete opacification of sinus (chronic, empyema, tumor)\n• Polyps: Dome-shaped soft-tissue density projections\n• Normal sinus: Radiolucent (air-filled), sharp corticated walls",
mnemonic: "Sinusitis signs: Mucosal thickening → Air-fluid level → Opacification"
},
// ── SECTION 11: Implant Imaging ──
{
section: "Implant Imaging",
q: "Radiographic sequence for dental implant planning?",
a: "Step 1 – Periapical + OPG: Initial survey, bone height, proximity to vital structures\nStep 2 – CBCT: 3D bone volume (height, width, density), angulation planning, cortical/cancellous ratio, sinus floor, IAN canal\nStep 3 – Post-op OPG/PA: Implant position, bone level\nHounsfield Units for bone density:\n• D1: > 1250 HU (dense cortical)\n• D2: 850–1250 HU\n• D3: 350–850 HU\n• D4: 150–350 HU (poor cancellous)\n(Misch classification for HU via CT)",
mnemonic: "OPG → CBCT → Post-op OPG (stepwise approach)"
},
// ── SECTION 12: Salivary Gland & Others ──
{
section: "Miscellaneous",
q: "Radiographic technique for salivary gland calculi (sialolith)?",
a: "Parotid calculi: Occlusal film placed in cheek (buccal occlusal) or panoramic\nSubmandibular calculi: Mandibular (lower) occlusal film (most common – 90% of submandibular stones are radioopaque)\nAlternatively: Ultrasound or CBCT\nNote: Parotid stones – only 20% radioopaque; submandibular – 80–90% radioopaque.",
mnemonic: "Submandibular stones = Mostly opaque = Floor-of-mouth occlusal"
},
{
section: "Miscellaneous",
q: "What is zonography and how does it differ from tomography?",
a: "Zonography: Narrow-angle tomography (< 10° swing arc) producing a THICK focal layer.\nTomography: Wide-angle (> 10°) producing a thin focal layer with more blurring.\nPanoramic radiography uses zonographic principles (limited arc of movement) → thick focal trough.\nStandard tomography uses wider arcs for thinner slices.",
mnemonic: "Zonography = Shallow arc → Thick focal trough (OPG uses this)"
},
{
section: "Miscellaneous",
q: "Magnification radiography – principle and use?",
a: "Deliberate increase of object-to-film distance (OFD) while keeping FSD constant → magnification.\nRequires a fine focal spot (< 0.3 mm) to maintain sharpness.\nUsed for: Periapical lesions, small calcifications, implant surface details.\nMagnification factor = FSD / FFD = (FSD) / (FSD – OFD)",
mnemonic: "Magnification = Large OFD + Small focal spot"
},
{
section: "Miscellaneous",
q: "What are the common artifacts in digital panoramic radiography?",
a: "• Ghost images (opposite side structures)\n• Cervical ghost (spine – radiopaque band)\n• Double image of hyoid\n• Lead apron shadow (low dense band)\n• Patient movement blur\n• Tongue shadow (anterior dark band)\n• Ear ring, nose ring artifacts\n• Dental prosthesis artifacts (metallic scatter)\n• Soft tissue calcifications (carotid atheroma, tonsillolith)",
mnemonic: ""
},
{
section: "Miscellaneous",
q: "Le Fort fracture classification on imaging?",
a: "Le Fort I (Horizontal/Guerin fracture): Maxilla separates from pterygoid plates at nasal floor level\nLe Fort II (Pyramidal fracture): Fracture through nasal bones, infraorbital rims, pterygoid plates\nLe Fort III (Craniofacial dysjunction): Fracture through orbits, zygomatic arches – complete separation of face from skull\nImaged on: CT (gold standard), Waters' view shows all three well.",
mnemonic: "I=floor, II=pyramid, III=complete detachment from skull"
}
];
// ─── HELPER: Add FRONT card (Question side) ───
function addFrontSlide(pres, card, num) {
const slide = pres.addSlide();
// Background
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_FRONT } });
// Card number + section pill (top-left)
slide.addShape(pres.ShapeType.roundRect, {
x: 0.35, y: 0.2, w: 1.1, h: 0.38, fill: { color: PILL_BG }, line: { color: ACCENT, width: 1.5 }, rectRadius: 0.07
});
slide.addText(`# ${num}`, {
x: 0.35, y: 0.2, w: 1.1, h: 0.38, fontSize: 12, bold: true, color: ACCENT, align: "center", valign: "middle", margin: 0
});
// Section label
slide.addShape(pres.ShapeType.roundRect, {
x: 1.6, y: 0.2, w: 3.2, h: 0.38, fill: { color: PILL_BG }, line: { color: "3A6EA5", width: 1 }, rectRadius: 0.07
});
slide.addText(card.section.toUpperCase(), {
x: 1.6, y: 0.2, w: 3.2, h: 0.38, fontSize: 10, bold: true, color: LIGHT_GREY, align: "center", valign: "middle", margin: 0, charSpacing: 1.5
});
// "QUESTION" label top-right
slide.addText("QUESTION", {
x: 7.5, y: 0.22, w: 2.15, h: 0.35, fontSize: 9, bold: true, color: ACCENT, align: "right", valign: "middle", charSpacing: 2
});
// Decorative accent line
slide.addShape(pres.ShapeType.line, {
x: 0.35, y: 0.73, w: 9.3, h: 0, line: { color: ACCENT, width: 1.5 }
});
// Question text (centered)
slide.addText(card.q, {
x: 0.6, y: 1.0, w: 8.8, h: 3.8,
fontSize: 24, bold: true, color: WHITE, align: "center", valign: "middle",
wrap: true, fontFace: "Calibri"
});
// Bottom bar
slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.1, w: 10, h: 0.525, fill: { color: ACCENT } });
slide.addText("Extraoral Radiography | BDS Final Year", {
x: 0.4, y: 5.1, w: 9.2, h: 0.525, fontSize: 11, bold: false, color: BG_FRONT, align: "center", valign: "middle", margin: 0
});
}
// ─── HELPER: Add BACK card (Answer side) ───
function addBackSlide(pres, card, num) {
const slide = pres.addSlide();
// Background
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_BACK } });
// Card number + section pill (top-left)
slide.addShape(pres.ShapeType.roundRect, {
x: 0.35, y: 0.2, w: 1.1, h: 0.38, fill: { color: "1A4A2E" }, line: { color: ACCENT, width: 1.5 }, rectRadius: 0.07
});
slide.addText(`# ${num}`, {
x: 0.35, y: 0.2, w: 1.1, h: 0.38, fontSize: 12, bold: true, color: ACCENT, align: "center", valign: "middle", margin: 0
});
// Section label
slide.addShape(pres.ShapeType.roundRect, {
x: 1.6, y: 0.2, w: 3.2, h: 0.38, fill: { color: "1A4A2E" }, line: { color: "4CAF50", width: 1 }, rectRadius: 0.07
});
slide.addText(card.section.toUpperCase(), {
x: 1.6, y: 0.2, w: 3.2, h: 0.38, fontSize: 10, bold: true, color: LIGHT_GREY, align: "center", valign: "middle", margin: 0, charSpacing: 1.5
});
// "ANSWER" label top-right
slide.addText("ANSWER", {
x: 7.7, y: 0.22, w: 1.95, h: 0.35, fontSize: 9, bold: true, color: "4CAF50", align: "right", valign: "middle", charSpacing: 2
});
// Decorative accent line
slide.addShape(pres.ShapeType.line, {
x: 0.35, y: 0.73, w: 9.3, h: 0, line: { color: "4CAF50", width: 1.5 }
});
// Answer text
const lines = card.a.split("\n");
const textArr = lines.map((l, i) => ({
text: l,
options: { breakLine: i < lines.length - 1, fontSize: lines.length > 6 ? 14 : 15.5, color: WHITE, fontFace: "Calibri" }
}));
slide.addText(textArr, {
x: 0.55, y: 0.85, w: 8.9, h: card.mnemonic ? 3.7 : 4.2,
valign: "top", wrap: true
});
// Mnemonic box
if (card.mnemonic) {
slide.addShape(pres.ShapeType.roundRect, {
x: 0.55, y: 4.65, w: 8.9, h: 0.62, fill: { color: "0D3318" }, line: { color: ACCENT, width: 1 }, rectRadius: 0.07
});
slide.addText([
{ text: "💡 ", options: { fontSize: 13 } },
{ text: card.mnemonic, options: { fontSize: 13, color: ACCENT, bold: true, fontFace: "Calibri" } }
], {
x: 0.55, y: 4.65, w: 8.9, h: 0.62, valign: "middle", align: "left", margin: [0, 0, 0, 8]
});
}
// Bottom bar
slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.1, w: 10, h: 0.525, fill: { color: "4CAF50" } });
slide.addText("Extraoral Radiography | BDS Final Year", {
x: 0.4, y: 5.1, w: 9.2, h: 0.525, fontSize: 11, bold: false, color: BG_BACK, align: "center", valign: "middle", margin: 0
});
}
// ─── TITLE SLIDE ───
function addTitleSlide(pres) {
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: "050E1A" } });
// Decorative top bar
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.12, fill: { color: ACCENT } });
slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.505, w: 10, h: 0.12, fill: { color: ACCENT } });
// Title
slide.addText("EXTRAORAL RADIOGRAPHY", {
x: 0.5, y: 1.1, w: 9, h: 1.1, fontSize: 38, bold: true, color: WHITE, align: "center", charSpacing: 3, fontFace: "Calibri"
});
slide.addText("Flashcard Deck", {
x: 0.5, y: 2.1, w: 9, h: 0.65, fontSize: 26, bold: false, color: ACCENT, align: "center", fontFace: "Calibri", italic: true
});
slide.addShape(pres.ShapeType.line, { x: 2, y: 2.85, w: 6, h: 0, line: { color: ACCENT, width: 1.5 } });
slide.addText("BDS Final Year | Oral Radiology", {
x: 0.5, y: 3.0, w: 9, h: 0.5, fontSize: 16, color: LIGHT_GREY, align: "center", fontFace: "Calibri"
});
slide.addText(`${cards.length} Cards • 10 Topics`, {
x: 0.5, y: 3.6, w: 9, h: 0.5, fontSize: 14, color: "8AB4D4", align: "center", fontFace: "Calibri"
});
// Topics list
const topics = [...new Set(cards.map(c => c.section))];
const topicsText = topics.map((t, i) => `${i + 1}. ${t}`).join(" • ");
slide.addText(topicsText, {
x: 0.5, y: 4.3, w: 9, h: 0.7, fontSize: 11, color: "7AAFC5", align: "center", wrap: true, fontFace: "Calibri"
});
}
// ─── SECTION DIVIDER ───
function addSectionDivider(pres, section, cardCount) {
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: "0A1929" } });
slide.addShape(pres.ShapeType.rect, { x: 0, y: 2.4, w: 10, h: 0.9, fill: { color: "0F2540" } });
slide.addShape(pres.ShapeType.line, { x: 1.0, y: 2.38, w: 8, h: 0, line: { color: ACCENT, width: 2 } });
slide.addShape(pres.ShapeType.line, { x: 1.0, y: 3.32, w: 8, h: 0, line: { color: ACCENT, width: 2 } });
slide.addText(section, {
x: 0.5, y: 2.4, w: 9, h: 0.9, fontSize: 30, bold: true, color: ACCENT, align: "center", valign: "middle", charSpacing: 2, fontFace: "Calibri"
});
slide.addText(`${cardCount} cards in this section`, {
x: 0.5, y: 3.5, w: 9, h: 0.5, fontSize: 14, color: LIGHT_GREY, align: "center", fontFace: "Calibri"
});
}
// ─── BUILD PRESENTATION ───
addTitleSlide(pres);
let currentSection = "";
let sectionStart = 0;
// Pre-compute section counts
const sectionCounts = {};
cards.forEach(c => { sectionCounts[c.section] = (sectionCounts[c.section] || 0) + 1; });
cards.forEach((card, i) => {
if (card.section !== currentSection) {
currentSection = card.section;
addSectionDivider(pres, currentSection, sectionCounts[currentSection]);
}
addFrontSlide(pres, card, i + 1);
addBackSlide(pres, card, i + 1);
});
// ─── WRITE FILE ───
const outPath = "/home/daytona/workspace/extraoral-radio-flashcards/Extraoral_Radiography_Flashcards_BDS.pptx";
pres.writeFile({ fileName: outPath }).then(() => {
console.log("✅ Flashcard deck saved to:", outPath);
}).catch(err => {
console.error("❌ Error:", err);
});
cd /home/daytona/workspace/extraoral-radio-flashcards && node flashcards.js
ls -lh /home/daytona/workspace/extraoral-radio-flashcards/Extraoral_Radiography_…
Extraoral Radiography Flashcards BDS
Presentation · PPTX
| # | Section | Cards |
|---|---|---|
| 1 | Fundamentals | Definition, advantages, disadvantages of extraoral vs intraoral |
| 2 | Panoramic (OPG) | Focal trough, indications, positioning errors, ghost images, normal anatomy, Eagle syndrome |
| 3 | Cephalometry | Technique, landmarks (hard + soft tissue), SNA/SNB/ANB normals, Frankfort plane, Wits appraisal, PA ceph |
| 4 | Skull Projections | Waters', Caldwell's, SMV, Reverse Towne's, Lateral skull |
| 5 | TMJ Radiography | Transcranial, transpharyngeal, arthrography, MRI (gold standard) |
| 6 | Tomography & CT/CBCT | Conventional tomography, CT indications, CBCT principles, FOV selection |
| 7 | Sialography | Indications, parotid technique, findings (Sjögren's, calculi, tumors) |
| 8 | Radiation Protection | ALARA, radiation units (Gy/Sv/rad/rem), dose limits (ICRP) |
| 9 | Mandibular Projections | Lateral oblique, PA mandible, true lateral |
| 10 | Paranasal Sinuses + Misc | Best views per sinus, sinusitis signs, implant imaging, Le Fort fractures |
Create a summary study guide PDF with all flashcard content