File size: 24,658 Bytes
9754890
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Fetching data from: https://clinicaltrials.gov/api/v2/studies?query.titles=Stomach cancer SEARCH[Location](AREA[LocationCountry]Japan AND AREA[LocationStatus]Recruiting)&pageSize=100\n"
     ]
    }
   ],
   "source": [
    "from langchain_community.agent_toolkits import create_sql_agent\n",
    "from langchain_openai import ChatOpenAI\n",
    "from langchain_groq import ChatGroq\n",
    "from langchain_core.prompts import ChatPromptTemplate\n",
    "from langchain_core.pydantic_v1 import BaseModel, Field\n",
    "import pandas as pd\n",
    "from pydantic import BaseModel, Field\n",
    "\n",
    "from langchain.text_splitter import RecursiveCharacterTextSplitter\n",
    "from langchain_community.vectorstores import Chroma\n",
    "from langchain.embeddings import HuggingFaceEmbeddings\n",
    "from langchain_core.runnables import RunnablePassthrough\n",
    "from langchain_core.output_parsers import StrOutputParser\n",
    "\n",
    "\n",
    "gpt = ChatOpenAI(model=\"gpt-3.5-turbo\", temperature=0)\n",
    "#agent_gpt_executor = create_sql_agent(gpt, db=db, agent_type=\"tool-calling\", verbose=True)\n",
    "\n",
    "## make database\n",
    "from langchain_community.utilities import SQLDatabase\n",
    "from sqlalchemy import create_engine\n",
    "\n",
    "from langchain.prompts import ChatPromptTemplate\n",
    "from langchain.schema import SystemMessage\n",
    "from langchain_core.prompts import MessagesPlaceholder\n",
    "#agent_groq_executor = create_sql_agent(llm, db=db, agent_type=\"tool-calling\", verbose=True)\n",
    "\n",
    "from OpenAITools.FetchTools import fetch_clinical_trials, fetch_clinical_trials_jp\n",
    "from OpenAITools.CrinicalTrialTools import QuestionModifierEnglish, TumorNameExtractor, SimpleClinicalTrialAgent,GraderAgent,LLMTranslator,generate_ex_question_English\n",
    "\n",
    "groq = ChatGroq(model_name=\"llama3-70b-8192\", temperature=0)\n",
    "#agent_groq_executor = create_sql_agent(groq, db=db, agent_type=\"tool-calling\", verbose=True)\n",
    "\n",
    "age = \"65\"\n",
    "sex =\"男性\"\n",
    "tumor_type =\"胃癌\"\n",
    "#tumor_type = \"gastric cancer\"\n",
    "GeneMutation =\"HER2\"\n",
    "Meseable = \"有り\"\n",
    "Biopsiable = \"有り\"\n",
    "NCTID = 'NCT06441994'\n",
    "\n",
    "#Define extractor\n",
    "Translator = LLMTranslator(groq)\n",
    "TumorName = Translator.translate(tumor_type)\n",
    "\n",
    "#Make db\n",
    "df = fetch_clinical_trials(TumorName)\n",
    "# 新しい列を追加\n",
    "df['AgentJudgment'] = None\n",
    "df['AgentGrade'] = None\n",
    "#df = df.iloc[:5, :]\n",
    "NCTIDs = list(df['NCTID' ])\n",
    "\n",
    "#Define agents\n",
    "#modifier = QuestionModifierEnglish(groq)\n",
    "CriteriaCheckAgent = SimpleClinicalTrialAgent(groq)\n",
    "grader_agent = GraderAgent(groq)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "ex_question = generate_ex_question_English(age, sex, TumorName, GeneMutation, Meseable, Biopsiable)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The patient is not eligible for this clinical trial because the trial is for metastatic breast cancer (mBC) or metastatic gastric adenocarcinoma, gastroesophageal junction adenocarcinoma, or esophageal adenocarcinoma (mGEAC), and the patient has stomach cancer, which is not explicitly mentioned in the inclusion criteria.\n",
      "no\n",
      "The patient is eligible for this clinical trial based on the provided information, as they meet the inclusion criteria (age, measurable tumor, biopsiable tumor, and HER2 gene mutation) and do not have any of the exclusion criteria mentioned.\n",
      "yes\n",
      "The patient is eligible for this clinical trial based on the provided information, as he has a known HER2 gene mutation and a measurable and biopsiable tumor. However, I do not know if he meets the other inclusion criteria, such as adequate bone marrow, renal, and liver function, and performance status.\n",
      "unclear\n",
      "The 65-year-old male patient with Stomach cancer is eligible for this clinical trial based on the provided criteria, as he meets the inclusion criteria (age, disease characteristics, measurable tumor, and HER2-positive status) and does not have any of the listed exclusion criteria.\n",
      "yes\n",
      "The patient is eligible for this clinical trial based on the provided criteria, as the patient has a biopsy-confirmed diagnosis of stomach cancer (gastric adenocarcinoma), is 65 years old (meeting the age criterion), and has a biopsiable tumor.\n",
      "yes\n",
      "The patient is eligible for this clinical trial based on the provided criteria. The patient meets the inclusion criteria for gastric/GEJ cancer, has a measurable tumor, and has a biopsiable tumor. The patient's HER2 mutation is not a exclusion criterion. However, the patient's age (65) is not explicitly mentioned as an inclusion or exclusion criterion, but it is likely that the patient is considered an adult according to local regulation.\n",
      "yes\n",
      "I do not know if the patient is eligible for this clinical trial because the criteria do not mention age or cancer type as inclusion or exclusion criteria, and there is no information about the patient's H. pylori status.\n",
      "unclear\n",
      "The patient is not eligible for this clinical trial because the patient's tumor has a HER2 mutation, whereas the trial requires a KRAS wild type (wt) amplification or a KRAS G12V mutation.\n",
      "no\n",
      "The patient is not eligible for this clinical trial because the patient has stomach cancer, but the trial is specific to gastric cancer with malignant ascites or pancreatic cancer with malignant ascites, and there is no mention of malignant ascites in the patient's condition.\n",
      "no\n",
      "The patient is eligible for this clinical trial based on the provided criteria, as they meet the inclusion criteria (unresectable or recurrent gastric cancer, age over 20, and measurable tumor) and do not have any of the exclusion criteria mentioned.\n",
      "yes\n",
      "The patient is not eligible for this clinical trial because the patient has a known HER2 gene mutation, and the exclusion criteria specifically state that HER2 positive gastric or GEJ adenocarcinoma is an exclusion criterion.\n",
      "no\n",
      "The 65-year-old male patient with Stomach cancer is eligible for this clinical trial based on the provided information, as he meets the inclusion criteria (HER2-positive, measurable tumor, and biopsiable tumor) and does not have any obvious exclusion criteria mentioned.\n",
      "yes\n",
      "The patient is not eligible for this clinical trial because they have a known HER2 gene mutation, which is an exclusion criterion.\n",
      "no\n"
     ]
    }
   ],
   "source": [
    "for nct_id in NCTIDs:\n",
    "    TargetCriteria = df.loc[df['NCTID'] == nct_id, 'Eligibility Criteria'].values[0]\n",
    "    AgentJudgment = CriteriaCheckAgent.evaluate_eligibility(TargetCriteria, ex_question)\n",
    "    print(AgentJudgment)\n",
    "\n",
    "    AgentGrade = grader_agent.evaluate_eligibility(AgentJudgment)\n",
    "    print(AgentGrade)\n",
    "    # NCTIDに一致する行を見つけて更新\n",
    "    df.loc[df['NCTID'] == nct_id, 'AgentJudgment'] = AgentJudgment\n",
    "    df.loc[df['NCTID'] == nct_id, 'AgentGrade'] = AgentGrade"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    " # 列を指定した順に並び替え\n",
    "columns_order = ['NCTID', 'AgentGrade', 'Title', 'AgentJudgment', 'Japanes Locations', \n",
    "                     'Primary Completion Date', 'Cancer', 'Summary', 'Eligibility Criteria']\n",
    "df = df[columns_order]        "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>NCTID</th>\n",
       "      <th>AgentGrade</th>\n",
       "      <th>Title</th>\n",
       "      <th>AgentJudgment</th>\n",
       "      <th>Japanes Locations</th>\n",
       "      <th>Primary Completion Date</th>\n",
       "      <th>Cancer</th>\n",
       "      <th>Summary</th>\n",
       "      <th>Eligibility Criteria</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>NCT06324357</td>\n",
       "      <td>no</td>\n",
       "      <td>Beamion BCGC-1: A Study to Find a Suitable Dos...</td>\n",
       "      <td>The patient is not eligible for this clinical ...</td>\n",
       "      <td>ku, shi</td>\n",
       "      <td>2027-02-22</td>\n",
       "      <td>Metastatic Breast Cancer, Metastatic Gastric A...</td>\n",
       "      <td>This study is open to adults aged 18 years and...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* Signed and dated writ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>NCT06490055</td>\n",
       "      <td>yes</td>\n",
       "      <td>Predicting the Efficacy in Advanced Gastric Ca...</td>\n",
       "      <td>The patient is eligible for this clinical tria...</td>\n",
       "      <td>Kurashiki</td>\n",
       "      <td>2025-12-31</td>\n",
       "      <td>Gastric Cancer, Chemotherapy Effect, Paclitaxe...</td>\n",
       "      <td>With advances in chemotherapy for gastric canc...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n1. unresectable or recu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>NCT05002127</td>\n",
       "      <td>unclear</td>\n",
       "      <td>A Study of Evorpacept (ALX148) in Patients wit...</td>\n",
       "      <td>The patient is eligible for this clinical tria...</td>\n",
       "      <td>Chiba, Fukuoka, Gifu, Kumamoto, Kyoto, Nagasak...</td>\n",
       "      <td>2026-07</td>\n",
       "      <td>Gastric Cancer, Gastroesophageal Junction Aden...</td>\n",
       "      <td>A Phase 2/3 Study of Evorpacept (ALX148) in Co...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* HER2-overexpressing a...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>NCT04379596</td>\n",
       "      <td>yes</td>\n",
       "      <td>Ph1b/2 Study of the Safety and Efficacy of T-D...</td>\n",
       "      <td>The 65-year-old male patient with Stomach canc...</td>\n",
       "      <td>Kashiwa, gun, ku, shi</td>\n",
       "      <td>2026-07-30</td>\n",
       "      <td>Gastric Cancer</td>\n",
       "      <td>DESTINY-Gastric03 will investigate the safety,...</td>\n",
       "      <td>Inclusion criteria:\\n\\n1. Male and female part...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>NCT05205343</td>\n",
       "      <td>yes</td>\n",
       "      <td>Trans-Pacific Multicenter Collaborative Study ...</td>\n",
       "      <td>The patient is eligible for this clinical tria...</td>\n",
       "      <td>Tokyo</td>\n",
       "      <td>2026-05-31</td>\n",
       "      <td>Gastrostomy, Gastric, GastroEsophageal Cancer</td>\n",
       "      <td>To compare the symptoms of patients who have a...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n1. Able to speak and re...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>NCT05365581</td>\n",
       "      <td>yes</td>\n",
       "      <td>A Study of ASP2138 Given by Itself or Given Wi...</td>\n",
       "      <td>The patient is eligible for this clinical tria...</td>\n",
       "      <td>Kashiwa, Nagoya, Osakasayama, Suita, Yokohama, ku</td>\n",
       "      <td>2026-10-31</td>\n",
       "      <td>Gastric Adenocarcinoma, Gastroesophageal Junct...</td>\n",
       "      <td>Claudin 18.2 protein, or CLDN18.2 is a protein...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* Participant is consid...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>NCT00197470</td>\n",
       "      <td>unclear</td>\n",
       "      <td>Cytokine Gene Polymorphisms in Gastric Diseases</td>\n",
       "      <td>I do not know if the patient is eligible for t...</td>\n",
       "      <td>Hamamatsu</td>\n",
       "      <td>Unknown Date</td>\n",
       "      <td>Gastric Ulcer, Duodenal Ulcer, Gastric Cancer</td>\n",
       "      <td>Recently, cytokine polymorphisms are considere...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n-\\n\\nExclusion Criteria...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>NCT06056024</td>\n",
       "      <td>no</td>\n",
       "      <td>A Study to Test How Well Different Doses of BI...</td>\n",
       "      <td>The patient is not eligible for this clinical ...</td>\n",
       "      <td>Kashiwa, ku</td>\n",
       "      <td>2027-05-26</td>\n",
       "      <td>Solid Tumor, KRAS Mutation</td>\n",
       "      <td>This study is open to adults with advanced can...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n1. Patients with pathol...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>NCT05438459</td>\n",
       "      <td>no</td>\n",
       "      <td>GAIA-102 Intraperitoneal Administration in Pat...</td>\n",
       "      <td>The patient is not eligible for this clinical ...</td>\n",
       "      <td>shi</td>\n",
       "      <td>2026-12-31</td>\n",
       "      <td>Gastric Cancer, Pancreatic Cancer</td>\n",
       "      <td>Phase I Part :\\n\\nConfirm the safety of GAIA-1...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n1. Unresectable, advanc...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>NCT06490159</td>\n",
       "      <td>yes</td>\n",
       "      <td>Predicting Peripheral Neuropathy of Paclitaxel...</td>\n",
       "      <td>The patient is eligible for this clinical tria...</td>\n",
       "      <td>Kurashiki</td>\n",
       "      <td>2025-12-31</td>\n",
       "      <td>Gastric Cancer, Chemotherapy-induced Periphera...</td>\n",
       "      <td>Although advances in chemotherapy have improve...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n1. unresectable or recu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>NCT06038578</td>\n",
       "      <td>no</td>\n",
       "      <td>A Study of TRK-950 When Used in Combination Wi...</td>\n",
       "      <td>The patient is not eligible for this clinical ...</td>\n",
       "      <td>Chuo Ku, Kashiwa, Ku</td>\n",
       "      <td>2025-08-31</td>\n",
       "      <td>Gastric Adenocarcinoma, Gastric Cancer, Gastro...</td>\n",
       "      <td>This study will assess the efficacy, safety, o...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* Histologically or cyt...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>NCT05152147</td>\n",
       "      <td>yes</td>\n",
       "      <td>A Study of Zanidatamab in Combination With Che...</td>\n",
       "      <td>The 65-year-old male patient with Stomach canc...</td>\n",
       "      <td>Cho, Chuo Ku, Hirakata, Ina, Ku, Matsuyama, Na...</td>\n",
       "      <td>2024-12-31</td>\n",
       "      <td>Gastric Neoplasms, Gastroesophageal Adenocarci...</td>\n",
       "      <td>This study is being done to find out if zanida...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* Histologically confir...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>NCT05322577</td>\n",
       "      <td>no</td>\n",
       "      <td>A Study Evaluating Bemarituzumab in Combinatio...</td>\n",
       "      <td>The patient is not eligible for this clinical ...</td>\n",
       "      <td>Shi, gun, ku, shi</td>\n",
       "      <td>2026-03-17</td>\n",
       "      <td>Gastric Cancer, Gastroesophageal Junction Cancer</td>\n",
       "      <td>The main objectives of this study are to evalu...</td>\n",
       "      <td>Inclusion Criteria:\\n\\n* Adults with unresecta...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "          NCTID AgentGrade                                              Title  \\\n",
       "0   NCT06324357         no  Beamion BCGC-1: A Study to Find a Suitable Dos...   \n",
       "1   NCT06490055        yes  Predicting the Efficacy in Advanced Gastric Ca...   \n",
       "2   NCT05002127    unclear  A Study of Evorpacept (ALX148) in Patients wit...   \n",
       "3   NCT04379596        yes  Ph1b/2 Study of the Safety and Efficacy of T-D...   \n",
       "4   NCT05205343        yes  Trans-Pacific Multicenter Collaborative Study ...   \n",
       "5   NCT05365581        yes  A Study of ASP2138 Given by Itself or Given Wi...   \n",
       "6   NCT00197470    unclear    Cytokine Gene Polymorphisms in Gastric Diseases   \n",
       "7   NCT06056024         no  A Study to Test How Well Different Doses of BI...   \n",
       "8   NCT05438459         no  GAIA-102 Intraperitoneal Administration in Pat...   \n",
       "9   NCT06490159        yes  Predicting Peripheral Neuropathy of Paclitaxel...   \n",
       "10  NCT06038578         no  A Study of TRK-950 When Used in Combination Wi...   \n",
       "11  NCT05152147        yes  A Study of Zanidatamab in Combination With Che...   \n",
       "12  NCT05322577         no  A Study Evaluating Bemarituzumab in Combinatio...   \n",
       "\n",
       "                                        AgentJudgment  \\\n",
       "0   The patient is not eligible for this clinical ...   \n",
       "1   The patient is eligible for this clinical tria...   \n",
       "2   The patient is eligible for this clinical tria...   \n",
       "3   The 65-year-old male patient with Stomach canc...   \n",
       "4   The patient is eligible for this clinical tria...   \n",
       "5   The patient is eligible for this clinical tria...   \n",
       "6   I do not know if the patient is eligible for t...   \n",
       "7   The patient is not eligible for this clinical ...   \n",
       "8   The patient is not eligible for this clinical ...   \n",
       "9   The patient is eligible for this clinical tria...   \n",
       "10  The patient is not eligible for this clinical ...   \n",
       "11  The 65-year-old male patient with Stomach canc...   \n",
       "12  The patient is not eligible for this clinical ...   \n",
       "\n",
       "                                    Japanes Locations Primary Completion Date  \\\n",
       "0                                             ku, shi              2027-02-22   \n",
       "1                                           Kurashiki              2025-12-31   \n",
       "2   Chiba, Fukuoka, Gifu, Kumamoto, Kyoto, Nagasak...                 2026-07   \n",
       "3                               Kashiwa, gun, ku, shi              2026-07-30   \n",
       "4                                               Tokyo              2026-05-31   \n",
       "5   Kashiwa, Nagoya, Osakasayama, Suita, Yokohama, ku              2026-10-31   \n",
       "6                                           Hamamatsu            Unknown Date   \n",
       "7                                         Kashiwa, ku              2027-05-26   \n",
       "8                                                 shi              2026-12-31   \n",
       "9                                           Kurashiki              2025-12-31   \n",
       "10                               Chuo Ku, Kashiwa, Ku              2025-08-31   \n",
       "11  Cho, Chuo Ku, Hirakata, Ina, Ku, Matsuyama, Na...              2024-12-31   \n",
       "12                                  Shi, gun, ku, shi              2026-03-17   \n",
       "\n",
       "                                               Cancer  \\\n",
       "0   Metastatic Breast Cancer, Metastatic Gastric A...   \n",
       "1   Gastric Cancer, Chemotherapy Effect, Paclitaxe...   \n",
       "2   Gastric Cancer, Gastroesophageal Junction Aden...   \n",
       "3                                      Gastric Cancer   \n",
       "4       Gastrostomy, Gastric, GastroEsophageal Cancer   \n",
       "5   Gastric Adenocarcinoma, Gastroesophageal Junct...   \n",
       "6       Gastric Ulcer, Duodenal Ulcer, Gastric Cancer   \n",
       "7                          Solid Tumor, KRAS Mutation   \n",
       "8                   Gastric Cancer, Pancreatic Cancer   \n",
       "9   Gastric Cancer, Chemotherapy-induced Periphera...   \n",
       "10  Gastric Adenocarcinoma, Gastric Cancer, Gastro...   \n",
       "11  Gastric Neoplasms, Gastroesophageal Adenocarci...   \n",
       "12   Gastric Cancer, Gastroesophageal Junction Cancer   \n",
       "\n",
       "                                              Summary  \\\n",
       "0   This study is open to adults aged 18 years and...   \n",
       "1   With advances in chemotherapy for gastric canc...   \n",
       "2   A Phase 2/3 Study of Evorpacept (ALX148) in Co...   \n",
       "3   DESTINY-Gastric03 will investigate the safety,...   \n",
       "4   To compare the symptoms of patients who have a...   \n",
       "5   Claudin 18.2 protein, or CLDN18.2 is a protein...   \n",
       "6   Recently, cytokine polymorphisms are considere...   \n",
       "7   This study is open to adults with advanced can...   \n",
       "8   Phase I Part :\\n\\nConfirm the safety of GAIA-1...   \n",
       "9   Although advances in chemotherapy have improve...   \n",
       "10  This study will assess the efficacy, safety, o...   \n",
       "11  This study is being done to find out if zanida...   \n",
       "12  The main objectives of this study are to evalu...   \n",
       "\n",
       "                                 Eligibility Criteria  \n",
       "0   Inclusion Criteria:\\n\\n* Signed and dated writ...  \n",
       "1   Inclusion Criteria:\\n\\n1. unresectable or recu...  \n",
       "2   Inclusion Criteria:\\n\\n* HER2-overexpressing a...  \n",
       "3   Inclusion criteria:\\n\\n1. Male and female part...  \n",
       "4   Inclusion Criteria:\\n\\n1. Able to speak and re...  \n",
       "5   Inclusion Criteria:\\n\\n* Participant is consid...  \n",
       "6   Inclusion Criteria:\\n\\n-\\n\\nExclusion Criteria...  \n",
       "7   Inclusion Criteria:\\n\\n1. Patients with pathol...  \n",
       "8   Inclusion Criteria:\\n\\n1. Unresectable, advanc...  \n",
       "9   Inclusion Criteria:\\n\\n1. unresectable or recu...  \n",
       "10  Inclusion Criteria:\\n\\n* Histologically or cyt...  \n",
       "11  Inclusion Criteria:\\n\\n* Histologically confir...  \n",
       "12  Inclusion Criteria:\\n\\n* Adults with unresecta...  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "gradio",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}