export const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? 'https://www.cancerindex.io'; export const SITE_NAME = 'CancerIndex'; export const TAGLINE = 'The global index of cancer.'; export const DISCLAIMER = '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.'; export const CONTACT_EMAIL = 'contact@spboucher.ai'; export const AUTHOR_NAME = 'Simon-Pierre Boucher'; export const AUTHOR_URL = 'https://www.spboucher.ai'; export const HOSTING_NAME = 'MacLustr'; export const HOSTING_URL = 'https://www.maclustr.io'; export const NAV = [ { href: '/cancers', label: 'Cancers' }, { href: '/explore', label: 'Data' }, { href: '/trials', label: 'Trials' }, { href: '/drugs', label: 'Drugs' }, { href: '/genes', label: 'Genes' }, { href: '/biomarkers', label: 'Biomarkers' }, { href: '/approvals', label: 'Approvals' }, { href: '/rankings', label: 'Rankings' }, { href: '/research-gap', label: 'Research gap' }, { href: '/graph', label: 'Graph' }, ] as const; /** Secondary navigation (mobile menu + footer): everything not in the primary bar. */ export const MORE_NAV = [ { href: '/pulse', label: 'Pulse' }, { href: '/data-updates', label: 'Data updates' }, { href: '/year/2025', label: 'Year in cancer' }, { href: '/taxonomy', label: 'Taxonomy' }, { href: '/countries', label: 'Countries' }, { href: '/compare', label: 'Compare' }, { href: '/trials/intelligence', label: 'Trial intelligence' }, { href: '/trials/map', label: 'Trial map' }, { href: '/pipeline', label: 'Drug pipeline' }, { href: '/sources', label: 'Sources' }, { href: '/methodology', label: 'Methodology' }, ] as const; export const FOOTER_NAV = [ { href: '/about', label: 'About' }, { href: '/trust', label: 'Trust & policies' }, { href: '/explore', label: 'Data explorer' }, { href: '/data', label: 'Data downloads' }, { href: '/pulse', label: 'Pulse' }, { href: '/data-updates', label: 'Data update log' }, { href: '/developers', label: 'Developers (API)' }, { href: '/sources', label: 'Sources' }, { href: '/methodology', label: 'Methodology' }, { href: '/taxonomy', label: 'Taxonomy' }, { href: '/countries', label: 'Countries' }, { href: '/compare', label: 'Compare' }, ] as const; /** External identifier browsers (chips on cancer pages link out to the authority). */ export function codeUrl(system: string, code: string): string | null { switch (system) { case 'ncit': return `https://evsexplore.semantics.cancer.gov/evsexplore/concept/ncit/${encodeURIComponent(code)}`; case 'oncotree': return `https://oncotree.mskcc.org/?version=oncotree_latest_stable&field=CODE&search=${encodeURIComponent(code)}`; case 'icd10': case 'icd10cm': return `https://icd.who.int/browse10/2019/en#/${encodeURIComponent(code)}`; case 'doid': return `https://disease-ontology.org/?id=${encodeURIComponent(code.startsWith('DOID:') ? code : `DOID:${code}`)}`; case 'umls': return `https://uts.nlm.nih.gov/uts/umls/concept/${encodeURIComponent(code)}`; case 'mesh': return `https://meshb.nlm.nih.gov/record/ui?ui=${encodeURIComponent(code)}`; case 'mondo': return `https://monarchinitiative.org/${encodeURIComponent(code)}`; case 'efo': return `https://www.ebi.ac.uk/efo/${encodeURIComponent(code)}`; case 'orphanet': return `https://www.orpha.net/en/disease/detail/${encodeURIComponent(code.replace(/^ORPHA:?/i, ''))}`; case 'gdc_project': return `https://portal.gdc.cancer.gov/projects/${encodeURIComponent(code)}`; default: return null; } } export const CODE_SYSTEM_LABEL: Record = { ncit: 'NCIt', oncotree: 'OncoTree', icd10: 'ICD-10', icd10cm: 'ICD-10-CM', icdo_topography: 'ICD-O topography', icdo_morphology: 'ICD-O morphology', doid: 'DOID', umls: 'UMLS CUI', mesh: 'MeSH', mondo: 'MONDO', seer_site: 'SEER site', efo: 'EFO', orphanet: 'Orphanet', gdc_project: 'GDC project', };