{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ectopic-pregnancy",
  "title": "Ectopic pregnancy",
  "description": "A tubal ectopic pregnancy on the uterus and tubes: implantation in the ampulla with an empty uterus, then rupture bleeding from the mesosalpinx into the pelvis, with hCG, ultrasound and observations at each stage. Model licensed CC BY 4.0.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/uterus"
  ],
  "files": [
    {
      "path": "registry/base-nova/ectopic-pregnancy/ectopic-pregnancy.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { uterusModel } from \"@/components/uterus\"\n\n// A tubal ectopic pregnancy in the ampulla, the commonest site: the tube\n// cannot stretch, and when it ruptures the bleeding can kill.\nexport const ectopicPregnancy: Disease = {\n  name: \"Ectopic pregnancy\",\n  code: \"O00.1\",\n  summary:\n    \"The embryo implants outside the uterine cavity, almost always in a uterine tube. It cannot survive there, and a tube that ruptures bleeds into the abdomen.\",\n  scales: [\n    {\n      id: \"uterus\",\n      label: \"Uterus and tubes\",\n      model: uterusModel,\n      findings: {\n        ampulla: {\n          affected: true,\n          description:\n            \"The embryo implants in the ampulla of one tube, where most ectopics occur; the model marks both tubes' ampullae. Previous pelvic infection or tubal surgery raises the risk by damaging the tube's cilia, and IVF and smoking raise it too.\",\n        },\n        body: {\n          affected: false,\n          description:\n            \"The lining thickens under pregnancy hormones, but the cavity is empty on a transvaginal scan when hCG is high enough to see a pregnancy.\",\n        },\n        \"right-ovary\": {\n          affected: false,\n          description:\n            \"Holds the corpus luteum that sustains the early pregnancy; it is not the site of implantation.\",\n        },\n        isthmus: {\n          affected: false,\n          description:\n            \"The narrow part nearest the uterus. Pregnancies here rupture earlier, because the tube is narrower.\",\n        },\n        mesosalpinx: {\n          affected: false,\n          description:\n            \"The fold of broad ligament carrying the tube's blood supply, intact while the tube holds.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"unruptured\",\n      label: \"Unruptured\",\n      summary:\n        \"Six weeks of amenorrhoea, light bleeding and one-sided pain. A small, stable ectopic can be treated with methotrexate; otherwise the tube is removed.\",\n    },\n    {\n      id: \"ruptured\",\n      label: \"Ruptured\",\n      summary:\n        \"The tube bursts, usually at six to eight weeks: sudden severe pain, shoulder-tip pain from blood under the diaphragm, and collapse. Emergency surgery saves her.\",\n      findings: {\n        uterus: {\n          ampulla: {\n            affected: true,\n            description:\n              \"Torn open by the growing trophoblast. At laparoscopy the tube is removed (salpingectomy).\",\n          },\n          mesosalpinx: {\n            affected: true,\n            description:\n              \"Its tubal branches of the uterine and ovarian arteries bleed into the pelvis (haemoperitoneum), which can fill with litres of blood.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Heart rate\", result: \"128 / min\", flag: \"high\" },\n        { name: \"Blood pressure\", result: \"82/50 mmHg\", flag: \"low\" },\n        { name: \"Haemoglobin\", result: \"78 g/L\", flag: \"low\" },\n        {\n          name: \"Ultrasound\",\n          result: \"Free fluid in pelvis\",\n          flag: \"abnormal\",\n        },\n      ],\n    },\n  ],\n  investigations: [\n    { name: \"Pregnancy test\", result: \"Positive\" },\n    { name: \"hCG\", result: \"1,800 IU/L, slow rise\", flag: \"abnormal\" },\n    {\n      name: \"Transvaginal scan\",\n      result: \"Empty uterus, adnexal mass\",\n      flag: \"abnormal\",\n    },\n    { name: \"Haemoglobin\", result: \"Normal\" },\n  ],\n}\n\n/** The tube before it ruptures, the stage the viewer opens on. */\nexport const ectopicPregnancyModel = diseaseModel(ectopicPregnancy)\n\nexport type EctopicPregnancyProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function EctopicPregnancy(props: EctopicPregnancyProps) {\n  return <DiseaseViewer disease={ectopicPregnancy} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Ectopic pregnancy docs: https://organui.com/docs/components/ectopic-pregnancy. It reuses the uterus model, licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); keep the viewer's credit visible. Educational, not for diagnosis.",
  "categories": [
    "disease",
    "reproductive"
  ],
  "type": "registry:component"
}