{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "acute-appendicitis",
  "title": "Acute appendicitis",
  "description": "Acute appendicitis on the appendix and its neighbours, from early obstruction through suppuration to perforation, with the psoas sign, the scores and imaging at each stage. Model licensed CC BY-SA 2.1 JP.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/appendix"
  ],
  "files": [
    {
      "path": "registry/base-nova/acute-appendicitis/acute-appendicitis.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { appendixModel } from \"@/components/appendix\"\n\n// Acute appendicitis: a blocked appendix becomes infected, its wall dies and,\n// left untreated, perforates. The neighbours it inflames explain the signs.\nexport const acuteAppendicitis: Disease = {\n  name: \"Acute appendicitis\",\n  code: \"K35.8\",\n  summary:\n    \"The appendix's lumen blocks, mucus and bacteria build up behind it, and the inflamed wall can die and perforate within a day or two.\",\n  scales: [\n    {\n      id: \"appendix\",\n      label: \"Appendix\",\n      model: appendixModel,\n      findings: {\n        appendix: {\n          label: \"Appendix\",\n          affected: true,\n          description:\n            \"A faecolith or swollen lymphoid tissue blocks the lumen and mucus distends it. The pain is visceral, felt vaguely around the umbilicus.\",\n        },\n        colon: {\n          affected: false,\n          description:\n            \"The caecum is not involved yet. Pressing on the left side of the abdomen pushes gas back towards it and hurts on the right (Rovsing's sign) once the appendix is inflamed.\",\n        },\n        ileum: {\n          affected: false,\n          description:\n            \"Not involved. Terminal ileitis, as in Crohn's disease, is one of the conditions that mimic appendicitis.\",\n        },\n        \"right-psoas-major\": {\n          affected: false,\n          description:\n            \"Not involved while the inflammation stays inside the appendix.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"early\",\n      label: \"Early\",\n      summary:\n        \"The first 12 hours. Central abdominal pain, loss of appetite and nausea; the examination can still be unremarkable.\",\n    },\n    {\n      id: \"suppurative\",\n      label: \"Suppurative\",\n      summary:\n        \"Bacteria invade the wall. The pain moves to the right iliac fossa as the inflamed appendix touches the parietal peritoneum.\",\n      findings: {\n        appendix: {\n          appendix: {\n            label: \"Appendix\",\n            affected: true,\n            description:\n              \"Swollen, red and coated with pus. Tender at McBurney's point, a third of the way from the anterior superior iliac spine to the umbilicus.\",\n          },\n          \"right-psoas-major\": {\n            affected: true,\n            description:\n              \"A retrocaecal appendix lies on the psoas and inflames it, so extending the right hip hurts (psoas sign).\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"White cells\", result: \"Neutrophilia\", flag: \"high\" },\n        { name: \"CRP\", result: \"Raised\", flag: \"high\" },\n        { name: \"Ultrasound\", result: \"Appendix > 6 mm\", flag: \"abnormal\" },\n        { name: \"Alvarado score\", result: \"7 of 10\", flag: \"high\" },\n      ],\n    },\n    {\n      id: \"perforated\",\n      label: \"Perforated\",\n      summary:\n        \"Usually after 48 hours. The dead wall gives way; pus forms an abscess or spreads as peritonitis. Pain may ease briefly, then the patient becomes unwell.\",\n      findings: {\n        appendix: {\n          appendix: {\n            label: \"Appendix\",\n            affected: true,\n            description:\n              \"Gangrenous and perforated. Pus and faeces leak into the right iliac fossa.\",\n          },\n          colon: {\n            affected: true,\n            description:\n              \"The caecal wall around the abscess is inflamed (a phlegmon), which can make the appendix stump hard to close at surgery.\",\n          },\n          ileum: {\n            affected: true,\n            description:\n              \"The nearby ileum stops moving (ileus) and is stuck to the abscess, causing vomiting and distension.\",\n          },\n          \"right-psoas-major\": {\n            affected: true,\n            description:\n              \"Inflamed by the abscess against it; the patient lies with the right hip flexed.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Temperature\", result: \"38.6 °C\", flag: \"high\" },\n        { name: \"CRP\", result: \"Very raised\", flag: \"high\" },\n        { name: \"Lactate\", result: \"Raised\", flag: \"high\" },\n        { name: \"CT\", result: \"Abscess, free fluid\", flag: \"abnormal\" },\n      ],\n    },\n  ],\n  investigations: [\n    { name: \"White cells\", result: \"Mildly raised\", flag: \"high\" },\n    { name: \"CRP\", result: \"Normal or raised\" },\n    { name: \"Pregnancy test\", result: \"Negative\" },\n    { name: \"Urine dipstick\", result: \"Normal\" },\n  ],\n}\n\n/** The appendix early on, the stage the viewer opens on. */\nexport const acuteAppendicitisModel = diseaseModel(acuteAppendicitis)\n\nexport type AcuteAppendicitisProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function AcuteAppendicitis(props: AcuteAppendicitisProps) {\n  return <DiseaseViewer disease={acuteAppendicitis} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Acute appendicitis docs: https://organui.com/docs/components/acute-appendicitis. It reuses the appendix model, licensed CC BY-SA 2.1 JP (https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en); keep the viewer's credit visible. Educational, not for diagnosis.",
  "categories": [
    "disease",
    "digestive"
  ],
  "type": "registry:component"
}