{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "melanoma",
  "title": "Melanoma",
  "description": "Melanoma on a section of skin, staged by how deep it grows: in situ in the epidermis, thin into the papillary dermis, thick into the reticular dermis and metastatic through fat and veins, with Breslow thickness, ulceration, sentinel node and staging at each. Model licensed CC0 1.0.",
  "registryDependencies": [
    "@organui/disease-viewer",
    "@organui/skin"
  ],
  "files": [
    {
      "path": "registry/base-nova/melanoma/melanoma.tsx",
      "content": "import { diseaseModel, type Disease } from \"@/components/disease-model\"\nimport {\n  DiseaseViewer,\n  type DiseaseViewerProps,\n} from \"@/components/disease-viewer\"\nimport { skinModel } from \"@/components/skin\"\n\n// Melanoma staged by depth: the deeper the tumour reaches through the\n// layers of the skin, measured as Breslow thickness, the worse the outlook.\nexport const melanoma: Disease = {\n  name: \"Melanoma\",\n  code: \"C43\",\n  summary:\n    \"A cancer of melanocytes, the pigment cells at the base of the epidermis. How deep it has grown, its Breslow thickness, predicts survival better than anything else.\",\n  scales: [\n    {\n      id: \"skin\",\n      label: \"Skin\",\n      model: skinModel,\n      defaultView: \"Cross-section\",\n      findings: {\n        epidermis: {\n          affected: true,\n          description:\n            \"Atypical melanocytes spread sideways along the basal layer (radial growth). The mole is asymmetric, with an irregular border, mixed colours, a diameter over 6 mm and recent change (ABCDE).\",\n        },\n        \"papillary-dermis\": {\n          affected: false,\n          description:\n            \"The basement membrane is intact, so the tumour has no access to vessels: melanoma in situ, cured by excision.\",\n        },\n        \"reticular-dermis\": {\n          affected: false,\n          description: \"Not reached.\",\n        },\n        veins: {\n          affected: false,\n          description:\n            \"Not reached. Spread through lymphatics and veins comes with depth.\",\n        },\n        \"hair-follicle\": {\n          affected: false,\n          description:\n            \"Melanoma in situ can track down follicles, which is why excision margins go below them.\",\n        },\n      },\n    },\n  ],\n  stages: [\n    {\n      id: \"in-situ\",\n      label: \"In situ\",\n      summary:\n        \"Confined to the epidermis, so not yet invasive, and coded D03 rather than C43. Wide local excision with a 5 mm margin cures it.\",\n    },\n    {\n      id: \"thin\",\n      label: \"Thin\",\n      summary:\n        \"Breslow thickness up to 1 mm: it has crossed into the papillary dermis and started growing down. Five-year survival is about 99%.\",\n      findings: {\n        skin: {\n          \"papillary-dermis\": {\n            affected: true,\n            description:\n              \"Melanoma cells have crossed the basement membrane and grow downwards in nests (vertical growth). Excised with a 1 cm margin.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Breslow thickness\", result: \"0.6 mm\" },\n        { name: \"Ulceration\", result: \"Absent\" },\n        { name: \"Stage\", result: \"IA\" },\n      ],\n    },\n    {\n      id: \"thick\",\n      label: \"Thick\",\n      summary:\n        \"Breslow thickness over 2 mm, into the reticular dermis. A sentinel node biopsy finds out whether it has reached the lymph nodes.\",\n      findings: {\n        skin: {\n          \"papillary-dermis\": {\n            affected: true,\n            description: \"Filled and expanded by tumour.\",\n          },\n          \"reticular-dermis\": {\n            affected: true,\n            description:\n              \"Invaded deep among the collagen bundles, near the lymphatics and vessels that carry it to the nodes. Excised with a 2 cm margin.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Breslow thickness\", result: \"2.8 mm\", flag: \"high\" },\n        { name: \"Ulceration\", result: \"Present\", flag: \"abnormal\" },\n        { name: \"Sentinel node\", result: \"Negative\" },\n        { name: \"Stage\", result: \"IIB\" },\n      ],\n    },\n    {\n      id: \"metastatic\",\n      label: \"Metastatic\",\n      summary:\n        \"Through the dermis into fat and vessels, and spread to distant organs, most often the lungs, liver and brain. Immunotherapy has transformed survival.\",\n      findings: {\n        skin: {\n          \"papillary-dermis\": {\n            affected: true,\n            description: \"Replaced by tumour.\",\n          },\n          \"reticular-dermis\": {\n            affected: true,\n            description: \"Invaded through its full thickness.\",\n          },\n          hypodermis: {\n            affected: true,\n            description: \"Reached: Clark level V, into the subcutaneous fat.\",\n          },\n          veins: {\n            affected: true,\n            description:\n              \"Invaded by tumour (lymphovascular invasion), the route to distant metastases.\",\n          },\n        },\n      },\n      investigations: [\n        { name: \"Breslow thickness\", result: \"5.5 mm\", flag: \"high\" },\n        { name: \"LDH\", result: \"Raised\", flag: \"high\" },\n        { name: \"PET-CT\", result: \"Lung metastases\", flag: \"abnormal\" },\n        { name: \"BRAF V600E\", result: \"Mutated\", flag: \"abnormal\" },\n      ],\n    },\n  ],\n  investigations: [\n    { name: \"Dermoscopy\", result: \"Atypical network\", flag: \"abnormal\" },\n    { name: \"Excision biopsy\", result: \"Melanoma in situ\", flag: \"abnormal\" },\n    { name: \"Breslow thickness\", result: \"Not invasive\" },\n  ],\n}\n\n/** The skin with melanoma in situ, the stage the viewer opens on. */\nexport const melanomaModel = diseaseModel(melanoma)\n\nexport type MelanomaProps = Omit<DiseaseViewerProps, \"disease\">\n\nexport function Melanoma(props: MelanomaProps) {\n  return <DiseaseViewer disease={melanoma} {...props} />\n}\n",
      "type": "registry:component"
    }
  ],
  "docs": "Melanoma docs: https://organui.com/docs/components/melanoma. It reuses the skin model, licensed CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/); keep the viewer's credit visible. Educational, not for diagnosis.",
  "categories": [
    "disease",
    "integumentary"
  ],
  "type": "registry:component"
}