{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "peptic-ulcer-disease",
  "title": "Peptic ulcer disease",
  "description": "A gastric ulcer on the stomach's lesser curve, from an uncomplicated ulcer to bleeding from the left gastric artery and perforation, with H. pylori testing, endoscopy, the bleeding score and imaging at each stage. Model licensed CC BY-SA 2.1 JP.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/stomach"
  ],
  "files": [
    {
      "path": "registry/base-nova/peptic-ulcer-disease/peptic-ulcer-disease.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { stomachModel } from \"@/components/stomach\"\n\n// A gastric ulcer on the lesser curve, where the left gastric artery runs\n// close behind it: the two complications that kill are bleeding and\n// perforation.\nexport const pepticUlcerDisease: Disease = {\n  name: \"Peptic ulcer disease\",\n  code: \"K25\",\n  summary:\n    \"Helicobacter pylori or anti-inflammatory drugs weaken the stomach's mucosal barrier, and acid digests a crater into the wall. Treating the cause heals it.\",\n  scales: [\n    {\n      id: \"stomach\",\n      label: \"Stomach\",\n      model: stomachModel,\n      findings: {\n        stomach: {\n          affected: true,\n          description:\n            \"An ulcer on the lesser curve, through the mucosa into the muscle. Burning epigastric pain comes soon after eating. Gastric ulcers are biopsied, because some are cancers.\",\n        },\n        \"left-gastric-artery\": {\n          affected: false,\n          description:\n            \"Runs along the lesser curve just behind the ulcer, intact for now. A deepening ulcer can erode into it.\",\n        },\n        duodenum: {\n          affected: false,\n          description:\n            \"Spared here. Duodenal ulcers are commoner; their pain eases with food and wakes the patient at night.\",\n        },\n        pancreas: {\n          affected: false,\n          description:\n            \"Lies behind the stomach. An ulcer on the back wall can burrow into it, turning the pain into constant back pain.\",\n        },\n        esophagus: {\n          affected: false,\n          description:\n            \"Not involved. Reflux oesophagitis is one of the causes of similar burning pain.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"ulcer\",\n      label: \"Ulcer\",\n      summary:\n        \"Pain and indigestion. Eradicating H. pylori, stopping NSAIDs and a proton pump inhibitor heal most ulcers in eight weeks.\",\n    },\n    {\n      id: \"bleeding\",\n      label: \"Bleeding\",\n      summary:\n        \"The ulcer erodes a vessel: vomiting blood or black, tarry stools. Resuscitate, then endoscopy within 24 hours stops it.\",\n      findings: {\n        stomach: {\n          stomach: {\n            affected: true,\n            description:\n              \"At endoscopy a visible vessel or clot in the ulcer base predicts rebleeding; it is injected, clipped or heat-sealed.\",\n          },\n          \"left-gastric-artery\": {\n            affected: true,\n            description:\n              \"A branch has been eroded and bleeds into the stomach. If endoscopy fails, radiologists embolise it or surgeons tie it.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Haemoglobin\", result: \"82 g/L\", flag: \"low\" },\n        { name: \"Urea\", result: \"Raised\", flag: \"high\" },\n        { name: \"Glasgow-Blatchford\", result: \"12\", flag: \"high\" },\n        { name: \"Endoscopy\", result: \"Visible vessel\", flag: \"abnormal\" },\n      ],\n    },\n    {\n      id: \"perforation\",\n      label: \"Perforation\",\n      summary:\n        \"The ulcer goes through the whole wall. Acid and air escape into the peritoneum: sudden, severe pain and a rigid abdomen. Surgery closes it.\",\n      findings: {\n        stomach: {\n          stomach: {\n            affected: true,\n            description:\n              \"A hole through the lesser curve wall. Chemical then bacterial peritonitis follows; an omental patch repairs it.\",\n          },\n          duodenum: {\n            affected: false,\n            description:\n              \"Spared here; anterior duodenal ulcers are the commonest to perforate.\",\n          },\n        },\n      },\n      investigations: [\n        {\n          name: \"Erect chest X-ray\",\n          result: \"Air under diaphragm\",\n          flag: \"abnormal\",\n        },\n        { name: \"CT\", result: \"Free air and fluid\", flag: \"abnormal\" },\n        { name: \"Lactate\", result: \"Raised\", flag: \"high\" },\n        { name: \"Amylase\", result: \"Mildly raised\", flag: \"high\" },\n      ],\n    },\n  ],\n  investigations: [\n    { name: \"H. pylori stool antigen\", result: \"Positive\", flag: \"abnormal\" },\n    { name: \"Haemoglobin\", result: \"Normal\" },\n    { name: \"Endoscopy\", result: \"Lesser curve ulcer\", flag: \"abnormal\" },\n    { name: \"Biopsy\", result: \"No malignancy\" },\n  ],\n}\n\n/** The stomach with an uncomplicated ulcer, the stage the viewer opens on. */\nexport const pepticUlcerDiseaseModel = diseaseModel(pepticUlcerDisease)\n\nexport type PepticUlcerDiseaseProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function PepticUlcerDisease(props: PepticUlcerDiseaseProps) {\n  return <DiseaseViewer disease={pepticUlcerDisease} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Peptic ulcer disease docs: https://organui.com/docs/components/peptic-ulcer-disease. It reuses the stomach 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"
}