{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "acute-otitis-media",
  "title": "Acute otitis media",
  "description": "Acute otitis media on the ear: a red, bulging eardrum and blocked auditory tube in a young child, then glue ear as fluid lingers or, as the alternative course, a perforated drum, with otoscopy, tympanometry and hearing at each stage. Model licensed CC BY-SA 4.0.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/ear"
  ],
  "files": [
    {
      "path": "registry/base-nova/acute-otitis-media/acute-otitis-media.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { earModel } from \"@/components/ear\"\n\nconst bathed =\n  \"Normal, but surrounded by fluid instead of air, so it carries sound to the inner ear poorly.\"\n\n// Acute otitis media in a young child: a cold blocks the auditory tube, and\n// the trapped middle ear fluid becomes infected behind the eardrum.\nexport const acuteOtitisMedia: Disease = {\n  name: \"Acute otitis media\",\n  code: \"H66.0\",\n  summary:\n    \"An infection of the middle ear behind the eardrum, usually in a child under five after a cold. It is painful, but most settle within three days without antibiotics.\",\n  scales: [\n    {\n      id: \"ear\",\n      label: \"Ear\",\n      model: earModel,\n      defaultView: \"Lateral\",\n      // The outer ear is see-through, so the eardrum shows behind it.\n      translucentIds: [\n        \"helix\",\n        \"antihelix\",\n        \"scapha-and-fossa\",\n        \"concha\",\n        \"tragus\",\n        \"lobule\",\n        \"back-of-auricle\",\n      ],\n      findings: {\n        \"tympanic-membrane\": {\n          affected: true,\n          description:\n            \"Red, and bulging outward with pus behind it. The bulge is the most reliable sign, and stretching the drum causes the pain.\",\n        },\n        \"auditory-tube\": {\n          affected: true,\n          description:\n            \"Swollen shut by the cold, so the middle ear can neither drain nor fill with air. In young children it is short and nearly level, so it blocks easily.\",\n        },\n        malleus: {\n          affected: false,\n          description:\n            \"Normal. Its handle, usually visible through the drum, is hidden by the bulge.\",\n        },\n        incus: { affected: false, description: bathed },\n        stapes: { affected: false, description: bathed },\n        cochlea: {\n          affected: false,\n          description:\n            \"Normal: the hearing loss is conductive, from the middle ear, not from the inner ear.\",\n        },\n        \"chorda-tympani\": {\n          affected: false,\n          description:\n            \"Crosses the middle ear behind the drum, carrying taste from the front two-thirds of the tongue, and is unaffected.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"acute\",\n      label: \"Acute\",\n      time: \"Days 1–3\",\n      summary:\n        \"Ear pain and fever a few days into a cold; a toddler pulls at the ear, cries and sleeps badly. Pain relief is the main treatment, and most get better within three days.\",\n    },\n    {\n      id: \"glue-ear\",\n      label: \"Glue ear\",\n      time: \"Weeks after\",\n      summary:\n        \"The infection settles, but fluid often stays behind the drum for weeks (otitis media with effusion). There is no pain, only muffled hearing. In most children it clears within three months on its own.\",\n      findings: {\n        ear: {\n          \"tympanic-membrane\": {\n            affected: true,\n            description:\n              \"Dull and drawn inward, with fluid or bubbles visible behind it, but no longer red or bulging.\",\n          },\n          \"auditory-tube\": {\n            affected: true,\n            description:\n              \"Still not opening well, so air in the middle ear is absorbed and fluid is not drained.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Otoscopy\", result: \"Dull, retracted drum\", flag: \"abnormal\" },\n        { name: \"Tympanometry\", result: \"Flat (type B)\", flag: \"abnormal\" },\n        { name: \"Hearing\", result: \"25 dB loss\", flag: \"abnormal\" },\n      ],\n    },\n    {\n      id: \"perforated\",\n      label: \"Perforated\",\n      alternative: true,\n      time: \"Days 1–3\",\n      summary:\n        \"The pressure bursts the eardrum: the pain eases suddenly and pus runs from the ear. Most small tears heal within a few weeks.\",\n      findings: {\n        ear: {\n          \"tympanic-membrane\": {\n            affected: true,\n            description:\n              \"A small tear in its lower part, through which pus drains into the ear canal.\",\n          },\n        },\n      },\n      investigations: [\n        {\n          name: \"Otoscopy\",\n          result: \"Discharge, perforation\",\n          flag: \"abnormal\",\n        },\n        { name: \"Temperature\", result: \"37.4 °C\" },\n      ],\n    },\n  ],\n  events: [\n    {\n      stage: \"acute\",\n      label: \"Pain relief\",\n      description:\n        \"Paracetamol or ibuprofen, or anaesthetic ear drops if the drum is intact, and a review if the child is not better in three days or is getting worse.\",\n    },\n    {\n      stage: \"acute\",\n      label: \"Antibiotics when needed\",\n      description:\n        \"Amoxicillin for five to seven days for a child who is systemically unwell, under two with both ears infected, or with discharge; otherwise often a prescription to collect only if it is no better in a few days.\",\n    },\n    {\n      stage: \"glue-ear\",\n      label: \"Watchful waiting\",\n      time: \"3 months\",\n      description:\n        \"A hearing test, then a recheck after three months. Antibiotics and decongestants do not help.\",\n    },\n    {\n      stage: \"glue-ear\",\n      label: \"Grommets\",\n      description:\n        \"Small tubes through the drum let air in, for glue ear in both ears lasting over three months with hearing loss; hearing aids are the alternative.\",\n    },\n    {\n      stage: \"perforated\",\n      label: \"Keep it dry\",\n      description:\n        \"Antibiotics, as discharge is a reason for them, and no swimming until the drum has healed. A tear still open after six weeks needs an ear, nose and throat review.\",\n    },\n  ],\n  investigations: [\n    { name: \"Otoscopy\", result: \"Red, bulging drum\", flag: \"abnormal\" },\n    { name: \"Temperature\", result: \"38.6 °C\", flag: \"high\" },\n  ],\n}\n\n/** The ear in acute infection, the stage the viewer opens on. */\nexport const acuteOtitisMediaModel = diseaseModel(acuteOtitisMedia)\n\nexport type AcuteOtitisMediaProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function AcuteOtitisMedia(props: AcuteOtitisMediaProps) {\n  return <DiseaseViewer disease={acuteOtitisMedia} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Acute otitis media docs: https://organui.com/docs/components/acute-otitis-media. It reuses the ear model, licensed CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/); keep the viewer's credit visible. Educational, not for diagnosis.",
  "categories": [
    "disease",
    "senses"
  ],
  "type": "registry:component"
}