SPB Git

spb/cancerindex

Public
2.8 KB · 73 lines typescript
1export const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://www.cancerindex.io';2export const SITE_NAME = 'CancerIndex';3export const TAGLINE = 'The global index of cancer.';4export const DISCLAIMER =5  'CancerIndex is a research and information platform. It is not a physician, does not diagnose, and does not recommend treatment. Population statistics do not predict individual outcomes.';6export const CONTACT_EMAIL = 'corrections@cancerindex.io';78export const NAV = [9  { href: '/cancers', label: 'Cancers' },10  { href: '/taxonomy', label: 'Taxonomy' },11  { href: '/rankings', label: 'Rankings' },12  { href: '/genes', label: 'Genes' },13  { href: '/drugs', label: 'Drugs' },14  { href: '/trials', label: 'Trials' },15  { href: '/sources', label: 'Sources' },16  { href: '/methodology', label: 'Methodology' },17] as const;1819export const FOOTER_NAV = [20  { href: '/about', label: 'About' },21  { href: '/trust', label: 'Trust & policies' },22  { href: '/data', label: 'Data downloads' },23  { href: '/developers', label: 'Developers' },24  { href: '/sources', label: 'Sources' },25  { href: '/methodology', label: 'Methodology' },26] as const;2728/** External identifier browsers (chips on cancer pages link out to the authority). */29export function codeUrl(system: string, code: string): string | null {30  switch (system) {31    case 'ncit':32      return `https://evsexplore.semantics.cancer.gov/evsexplore/concept/ncit/${encodeURIComponent(code)}`;33    case 'oncotree':34      return `https://oncotree.mskcc.org/?version=oncotree_latest_stable&field=CODE&search=${encodeURIComponent(code)}`;35    case 'icd10':36    case 'icd10cm':37      return `https://icd.who.int/browse10/2019/en#/${encodeURIComponent(code)}`;38    case 'doid':39      return `https://disease-ontology.org/?id=${encodeURIComponent(code.startsWith('DOID:') ? code : `DOID:${code}`)}`;40    case 'umls':41      return `https://uts.nlm.nih.gov/uts/umls/concept/${encodeURIComponent(code)}`;42    case 'mesh':43      return `https://meshb.nlm.nih.gov/record/ui?ui=${encodeURIComponent(code)}`;44    case 'mondo':45      return `https://monarchinitiative.org/${encodeURIComponent(code)}`;46    case 'efo':47      return `https://www.ebi.ac.uk/efo/${encodeURIComponent(code)}`;48    case 'orphanet':49      return `https://www.orpha.net/en/disease/detail/${encodeURIComponent(code.replace(/^ORPHA:?/i, ''))}`;50    case 'gdc_project':51      return `https://portal.gdc.cancer.gov/projects/${encodeURIComponent(code)}`;52    default:53      return null;54  }55}5657export const CODE_SYSTEM_LABEL: Record<string, string> = {58  ncit: 'NCIt',59  oncotree: 'OncoTree',60  icd10: 'ICD-10',61  icd10cm: 'ICD-10-CM',62  icdo_topography: 'ICD-O topography',63  icdo_morphology: 'ICD-O morphology',64  doid: 'DOID',65  umls: 'UMLS CUI',66  mesh: 'MeSH',67  mondo: 'MONDO',68  seer_site: 'SEER site',69  efo: 'EFO',70  orphanet: 'Orphanet',71  gdc_project: 'GDC project',72};73
Files · 36d464dcc8d9fe84217ecbfd89a225759f5f0c06
Menu

Theme