{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kidney-stones",
  "title": "Kidney stones",
  "description": "A stone in the left kidney on the kidneys and ureters, from a silent renal stone through renal colic with hydronephrosis to an infected obstructed kidney, with the urine, CT and bloods at each stage. Model licensed CC BY 4.0.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/kidneys"
  ],
  "files": [
    {
      "path": "registry/base-nova/kidney-stones/kidney-stones.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { kidneysModel } from \"@/components/kidneys\"\n\n// A stone in the left kidney that moves into the ureter: harmless while it\n// sits still, agonising when it moves, and an emergency when the kidney\n// behind it is infected.\nexport const kidneyStones: Disease = {\n  name: \"Kidney stones\",\n  code: \"N20.0\",\n  summary:\n    \"Crystals of calcium oxalate grow into a stone in the kidney. It is often silent until it moves into the ureter and blocks it.\",\n  scales: [\n    {\n      id: \"kidneys\",\n      label: \"Kidneys\",\n      model: kidneysModel,\n      defaultView: \"Posterior\",\n      findings: {\n        \"left-kidney\": {\n          affected: true,\n          description:\n            \"A stone sits in a calyx or the renal pelvis. Dehydration, a high-salt diet and high urinary calcium make stones; many are found by chance.\",\n        },\n        \"left-ureter\": {\n          affected: false,\n          description:\n            \"Clear for now. It narrows at three points where a stone can stick: the pelviureteric junction, the pelvic brim and the bladder wall.\",\n        },\n        \"right-kidney\": {\n          affected: false,\n          description:\n            \"Normal. Stones recur in about half of people within ten years, on either side.\",\n        },\n        \"left-renal-artery\": {\n          affected: false,\n          description:\n            \"Not involved. An embolus or dissection here also causes sudden loin pain and often blood in the urine; contrast CT shows the wedge-shaped infarct. In an older patient, a leaking aortic aneurysm must be excluded first.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"renal-stone\",\n      label: \"Renal stone\",\n      summary:\n        \"A stone in the kidney. Small ones are watched; larger ones are broken up with shock waves or removed through a scope.\",\n    },\n    {\n      id: \"colic\",\n      label: \"Renal colic\",\n      summary:\n        \"The stone moves into the ureter. Waves of severe loin-to-groin pain come with each contraction; most stones under 5 mm pass on their own.\",\n      findings: {\n        kidneys: {\n          \"left-ureter\": {\n            affected: true,\n            description:\n              \"The stone lodges at the vesicoureteric junction, where the ureter enters the bladder. Peristalsis against it causes colic; tamsulosin helps it pass.\",\n          },\n          \"left-kidney\": {\n            affected: true,\n            description:\n              \"Urine backs up and the collecting system dilates (hydronephrosis). Kidney function is preserved while the other kidney works.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Urine dipstick\", result: \"Blood\", flag: \"abnormal\" },\n        { name: \"CT KUB\", result: \"4 mm stone at VUJ\", flag: \"abnormal\" },\n        { name: \"Creatinine\", result: \"Normal\" },\n        { name: \"Temperature\", result: \"Normal\" },\n      ],\n    },\n    {\n      id: \"infected\",\n      label: \"Infected\",\n      summary:\n        \"Infection behind the blocked ureter. Fever with an obstructed kidney is an emergency: drain it with a stent or nephrostomy before the stone is treated.\",\n      findings: {\n        kidneys: {\n          \"left-ureter\": {\n            affected: true,\n            description:\n              \"Still blocked, so infected urine cannot drain and antibiotics alone fail.\",\n          },\n          \"left-kidney\": {\n            affected: true,\n            description:\n              \"Pus fills the dilated collecting system (pyonephrosis). Bacteria pass into the blood, causing sepsis that can kill within hours.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Temperature\", result: \"39.2 °C\", flag: \"high\" },\n        { name: \"White cells\", result: \"Raised\", flag: \"high\" },\n        { name: \"Creatinine\", result: \"Raised\", flag: \"high\" },\n        { name: \"Lactate\", result: \"Raised\", flag: \"high\" },\n      ],\n    },\n  ],\n  investigations: [\n    { name: \"CT KUB\", result: \"6 mm renal stone\", flag: \"abnormal\" },\n    { name: \"Urine calcium\", result: \"Raised\", flag: \"high\" },\n    { name: \"Serum calcium\", result: \"Normal\" },\n    { name: \"Urate\", result: \"Normal\" },\n  ],\n}\n\n/** The kidneys with a stone in the left kidney, the stage the viewer opens on. */\nexport const kidneyStonesModel = diseaseModel(kidneyStones)\n\nexport type KidneyStonesProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function KidneyStones(props: KidneyStonesProps) {\n  return <DiseaseViewer disease={kidneyStones} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Kidney stones docs: https://organui.com/docs/components/kidney-stones. It reuses the kidneys model, licensed CC BY 4.0 (https://dbarchive.biosciencedbc.jp/en/bodyparts3d/lic.html); keep the viewer's credit visible. Educational, not for diagnosis.",
  "categories": [
    "disease",
    "urinary"
  ],
  "type": "registry:component"
}