spb/cancerindex
Public
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: '/explore', label: 'Data' },11 { href: '/trials', label: 'Trials' },12 { href: '/drugs', label: 'Drugs' },13 { href: '/genes', label: 'Genes' },14 { href: '/approvals', label: 'Approvals' },15 { href: '/rankings', label: 'Rankings' },16 { href: '/research-gap', label: 'Research gap' },17 { href: '/graph', label: 'Graph' },18] as const;1920/** Secondary navigation (mobile menu + footer): everything not in the primary bar. */21export const MORE_NAV = [22 { href: '/taxonomy', label: 'Taxonomy' },23 { href: '/countries', label: 'Countries' },24 { href: '/compare', label: 'Compare' },25 { href: '/trials/intelligence', label: 'Trial intelligence' },26 { href: '/trials/map', label: 'Trial map' },27 { href: '/pipeline', label: 'Drug pipeline' },28 { href: '/sources', label: 'Sources' },29 { href: '/methodology', label: 'Methodology' },30] as const;3132export const FOOTER_NAV = [33 { href: '/about', label: 'About' },34 { href: '/trust', label: 'Trust & policies' },35 { href: '/explore', label: 'Data explorer' },36 { href: '/data', label: 'Data downloads' },37 { href: '/developers', label: 'Developers (API)' },38 { href: '/sources', label: 'Sources' },39 { href: '/methodology', label: 'Methodology' },40 { href: '/taxonomy', label: 'Taxonomy' },41 { href: '/countries', label: 'Countries' },42 { href: '/compare', label: 'Compare' },43] as const;4445/** External identifier browsers (chips on cancer pages link out to the authority). */46export function codeUrl(system: string, code: string): string | null {47 switch (system) {48 case 'ncit':49 return `https://evsexplore.semantics.cancer.gov/evsexplore/concept/ncit/${encodeURIComponent(code)}`;50 case 'oncotree':51 return `https://oncotree.mskcc.org/?version=oncotree_latest_stable&field=CODE&search=${encodeURIComponent(code)}`;52 case 'icd10':53 case 'icd10cm':54 return `https://icd.who.int/browse10/2019/en#/${encodeURIComponent(code)}`;55 case 'doid':56 return `https://disease-ontology.org/?id=${encodeURIComponent(code.startsWith('DOID:') ? code : `DOID:${code}`)}`;57 case 'umls':58 return `https://uts.nlm.nih.gov/uts/umls/concept/${encodeURIComponent(code)}`;59 case 'mesh':60 return `https://meshb.nlm.nih.gov/record/ui?ui=${encodeURIComponent(code)}`;61 case 'mondo':62 return `https://monarchinitiative.org/${encodeURIComponent(code)}`;63 case 'efo':64 return `https://www.ebi.ac.uk/efo/${encodeURIComponent(code)}`;65 case 'orphanet':66 return `https://www.orpha.net/en/disease/detail/${encodeURIComponent(code.replace(/^ORPHA:?/i, ''))}`;67 case 'gdc_project':68 return `https://portal.gdc.cancer.gov/projects/${encodeURIComponent(code)}`;69 default:70 return null;71 }72}7374export const CODE_SYSTEM_LABEL: Record<string, string> = {75 ncit: 'NCIt',76 oncotree: 'OncoTree',77 icd10: 'ICD-10',78 icd10cm: 'ICD-10-CM',79 icdo_topography: 'ICD-O topography',80 icdo_morphology: 'ICD-O morphology',81 doid: 'DOID',82 umls: 'UMLS CUI',83 mesh: 'MeSH',84 mondo: 'MONDO',85 seer_site: 'SEER site',86 efo: 'EFO',87 orphanet: 'Orphanet',88 gdc_project: 'GDC project',89};90