Skip to content

Commit

Permalink
fixed missing apikey
Browse files Browse the repository at this point in the history
  • Loading branch information
antsh3k committed Jul 24, 2024
1 parent ab1e975 commit d462e6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/snomed/preprocessing_snomed_ct.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"source": [
"import requests\n",
"import sys\n",
"from getpass import getpass\n",
"sys.path.append('../..')\n",
"from credentials import * # you can store your api key here"
]
Expand All @@ -70,7 +71,10 @@
"outputs": [],
"source": [
"# Important URLs\n",
"\n",
"if 'snomed_apikey' in locals():\n",
" pass\n",
"else:\n",
" snomed_apikey = getpass('Please enter your SNOMED api key: ')\n",
"# SNOMED CT UK Clinical Edition\n",
"clinical_info_url = f'https://isd.digital.nhs.uk/trud/api/v1/keys/{snomed_apikey}/items/101/releases?latest'\n",
"\n",
Expand Down

0 comments on commit d462e6c

Please sign in to comment.