SPB Git

spb/cancerindex

Public
2.9 KB · 75 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: '/countries', label: 'Countries' },13  { href: '/compare', label: 'Compare' },14  { href: '/genes', label: 'Genes' },15  { href: '/drugs', label: 'Drugs' },16  { href: '/trials', label: 'Trials' },17  { href: '/sources', label: 'Sources' },18  { href: '/methodology', label: 'Methodology' },19] as const;2021export const FOOTER_NAV = [22  { href: '/about', label: 'About' },23  { href: '/trust', label: 'Trust & policies' },24  { href: '/data', label: 'Data downloads' },25  { href: '/developers', label: 'Developers' },26  { href: '/sources', label: 'Sources' },27  { href: '/methodology', label: 'Methodology' },28] as const;2930/** External identifier browsers (chips on cancer pages link out to the authority). */31export function codeUrl(system: string, code: string): string | null {32  switch (system) {33    case 'ncit':34      return `https://evsexplore.semantics.cancer.gov/evsexplore/concept/ncit/${encodeURIComponent(code)}`;35    case 'oncotree':36      return `https://oncotree.mskcc.org/?version=oncotree_latest_stable&field=CODE&search=${encodeURIComponent(code)}`;37    case 'icd10':38    case 'icd10cm':39      return `https://icd.who.int/browse10/2019/en#/${encodeURIComponent(code)}`;40    case 'doid':41      return `https://disease-ontology.org/?id=${encodeURIComponent(code.startsWith('DOID:') ? code : `DOID:${code}`)}`;42    case 'umls':43      return `https://uts.nlm.nih.gov/uts/umls/concept/${encodeURIComponent(code)}`;44    case 'mesh':45      return `https://meshb.nlm.nih.gov/record/ui?ui=${encodeURIComponent(code)}`;46    case 'mondo':47      return `https://monarchinitiative.org/${encodeURIComponent(code)}`;48    case 'efo':49      return `https://www.ebi.ac.uk/efo/${encodeURIComponent(code)}`;50    case 'orphanet':51      return `https://www.orpha.net/en/disease/detail/${encodeURIComponent(code.replace(/^ORPHA:?/i, ''))}`;52    case 'gdc_project':53      return `https://portal.gdc.cancer.gov/projects/${encodeURIComponent(code)}`;54    default:55      return null;56  }57}5859export const CODE_SYSTEM_LABEL: Record<string, string> = {60  ncit: 'NCIt',61  oncotree: 'OncoTree',62  icd10: 'ICD-10',63  icd10cm: 'ICD-10-CM',64  icdo_topography: 'ICD-O topography',65  icdo_morphology: 'ICD-O morphology',66  doid: 'DOID',67  umls: 'UMLS CUI',68  mesh: 'MeSH',69  mondo: 'MONDO',70  seer_site: 'SEER site',71  efo: 'EFO',72  orphanet: 'Orphanet',73  gdc_project: 'GDC project',74};75
Files · 602dc111f3dd7d7dec082e01832909f07dca7bd3
Menu

Theme