File size: 76,082 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
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "from OpenAITools.JRCTTools import fetch_clinical_trials, extract_jrct_links, create_dataframe_from_urls, reorder_columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "検索ボタンがクリックできないため、JavaScriptでクリックします。\n",
      "1 ページ目を処理しました。\n",
      "2 ページ目を処理しました。\n",
      "3 ページ目を処理しました。\n",
      "4 ページ目を処理しました。\n",
      "5 ページ目を処理しました。\n",
      "次のページはありません。全ての結果を取得しました。\n"
     ]
    }
   ],
   "source": [
    "# fetch_clinical_trialsを使って検索結果を取得\n",
    "results = fetch_clinical_trials(disease_name=\"がん 神経膠腫 骨髄腫 黒色腫\", freeword=\"\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['がん患者の疼痛',\n",
       " '卵巣がん',\n",
       " '膵嚢胞、慢性膵炎、家族性膵がん及び遺伝性膵がん家族歴を有する症例、糖尿病症例(新規発症・急性増悪...',\n",
       " '肺がん',\n",
       " '固形がん',\n",
       " '末期がん',\n",
       " '進行固形がん',\n",
       " 'H3 K27M 変異を有する初発びまん性神経膠腫',\n",
       " 'がん',\n",
       " '難治性がん(希少がん、AYAがん、原発不明がんを含める)',\n",
       " '頭頸部がんと血液がんを除く固形癌',\n",
       " '転移性固形がん\\n進行性固形がん\\n非小細胞肺がん\\nSMARCA4欠損がん',\n",
       " '進行性非小細胞肺癌(NSCLC)及びその他の固形がん',\n",
       " '悪性神経膠腫',\n",
       " '転移性非小細胞肺がん',\n",
       " '固形がん',\n",
       " '肺がん',\n",
       " '悪性リンパ腫, がん治療関連心機能障害, 心不全',\n",
       " '進行固形がん',\n",
       " 'S状結腸癌または直腸がん',\n",
       " '肺がん検診を受ける患者、及び1次スクリーニングで要検査(経過観察の対象)となった患者',\n",
       " '進行固形がん',\n",
       " '非小細胞性肺がん',\n",
       " '進行非小細胞肺がん',\n",
       " '神経膠腫',\n",
       " '子宮頸癌\\n胃/胃食道接合部腺癌\\nマイクロサテライト安定性結腸直腸癌\\n非小細胞肺癌\\n頭頸部扁平上皮癌...',\n",
       " 'がん悪液質、がん治療中に生じる諸症状',\n",
       " 'がん疼痛',\n",
       " '多発性骨髄腫',\n",
       " '標準治療がない、または標準治療に不応もしくは不耐の根治切除不能な進行・再発固形がん患者',\n",
       " '悪性腫瘍(肺がん等)、炎症性腸疾患、、関節リウマチ、自己免疫疾患',\n",
       " '多発性骨髄腫、慢性骨髄性白血病',\n",
       " '進行肺がん',\n",
       " '消化器がん',\n",
       " '乳がん',\n",
       " '大腸がん',\n",
       " '非小細胞肺がん',\n",
       " '標準治療がない又は不応若しくは不耐の進行再発と診断されたユーイング肉腫又は固形がん',\n",
       " '悪性神経膠腫',\n",
       " '転移性固形がん\\n再発性固形がん\\n進行性固形がん',\n",
       " '進行がん',\n",
       " '膵がん',\n",
       " '子宮体がん',\n",
       " '切除可能な非小細胞肺がん',\n",
       " '卵巣癌・固形がん',\n",
       " '卵巣がん・卵管癌・腹膜癌',\n",
       " '頭頸部がん',\n",
       " '肺がん、食道がん、胃癌等の固形がん',\n",
       " '子宮内膜癌、頭頸部扁平上皮癌、膵管腺癌、大腸癌、肝細胞癌、食道腺癌/食道胃接合部腺癌/胃腺癌、尿...',\n",
       " '多発性骨髄腫',\n",
       " '再発又は難治性の多発性骨髄腫',\n",
       " '進行固形がん',\n",
       " 'がん疼痛',\n",
       " '悪性黒色腫',\n",
       " '進行NSCLC 及びその他の固形がん',\n",
       " '扁平上皮非小細胞肺がん',\n",
       " '非小細胞肺がん',\n",
       " '進行性又は転移性の固形がん',\n",
       " '多発性骨髄腫',\n",
       " '固形がん',\n",
       " 'CIでM1のないPSMA-PETによるオリゴ転移性前立腺がん(OMPC)',\n",
       " '非小細胞肺がん\\n食道がん\\n胃がん',\n",
       " '再発または難治性多発性骨髄腫',\n",
       " 'MTAP 欠損固形がん患者',\n",
       " '乳がんに伴う軽度から中等度の抑うつ状態',\n",
       " '固形がん',\n",
       " '多発性骨髄腫',\n",
       " '手術不能かつ既存治療不応の進行・再発固形がん',\n",
       " '切除不能・再発固形がん',\n",
       " '早期又は進行/転移性の固形がん',\n",
       " '潜在的にSEZ6を発現する進行固形がん',\n",
       " '胃がん疑い及び他疾患で上部消化管内視鏡検査を受ける予定の者',\n",
       " '再発又は難治性の多発性骨髄腫(RRMM)',\n",
       " '手術治療を予定する低肺機能合併肺がん患者',\n",
       " '多発性骨髄腫',\n",
       " '未治療多発性骨髄腫',\n",
       " 'がん(胃、大腸、喉頭、乳、子宮、肺、膀胱、悪性リンパ腫)',\n",
       " 'がん',\n",
       " '直腸がん',\n",
       " '乳がん、早期乳がん',\n",
       " '遠隔転移を有する膵がん',\n",
       " '進行性又は転移性がん',\n",
       " '大腸がん検診における大腸内視鏡受診者',\n",
       " '再発及び難治性の多発性骨髄腫',\n",
       " '進行性又は転移性の固形がん、進行性又は転移性の食道癌、進行性又は転移性の頭頸部扁平上皮癌',\n",
       " '黒色腫',\n",
       " '固形がん(Arm 1)、非小細胞肺癌(Arm 2及びArm 3)',\n",
       " '胃腺がん, 胃食道接合部(GEJ)腺がん',\n",
       " '子宮頸がん',\n",
       " '臨床的に遠隔転移のない膵がん',\n",
       " '標準治療がない又は不応若しくは不耐の進行再発と診断されたユーイング肉腫又は固形がん',\n",
       " '血液がん',\n",
       " '非小細胞肺がん',\n",
       " '神経膠腫',\n",
       " '局所進行又は転移性固形がん',\n",
       " '多発性骨髄腫',\n",
       " '多発性骨髄腫',\n",
       " 'がん化学療法',\n",
       " 'HER2陰性切除不能・進行再発胃がん',\n",
       " '膀胱がん\\n転移性腫瘍\\n尿管癌',\n",
       " '再発・難治性の局所進行性・転移性乳がん及びトリプルネガティブ乳がん',\n",
       " '乳がん、早期乳がん',\n",
       " '進行性の切除不能又は転移性MSIhi 又はdMMR固形がん,結腸直腸がん(CRC)',\n",
       " '多発性骨髄腫',\n",
       " 'IDH野生型神経膠腫(グレードⅢ)(退形成性星細胞腫)',\n",
       " 'トリプルネガティブ乳がん',\n",
       " 'MSI-HまたはdMMRを有する進行大腸がん',\n",
       " '白血病、悪性リンパ腫、多発性骨髄腫、再生不良性貧血、骨髄異形成症候群',\n",
       " '多発性骨髄腫',\n",
       " '低悪性度神経膠腫、膵癌',\n",
       " '頭頚部がん',\n",
       " '乳がん',\n",
       " '固形がん',\n",
       " '乳がん',\n",
       " '頭頸部がん',\n",
       " '進行又は転移性固形がん',\n",
       " '食道がん、胃がん',\n",
       " '固形がん',\n",
       " '再発又は難治性多発性骨髄腫',\n",
       " 'がん悪液質',\n",
       " 'がんによる神経障害性疼痛',\n",
       " '乳がん(非浸潤性乳管癌、浸潤性乳管癌)',\n",
       " '多発性骨髄腫',\n",
       " '卵巣がん、子宮内膜がん、子宮頸がん',\n",
       " '非小細胞肺がん',\n",
       " '消化器がん',\n",
       " '用量漸増コホート:固形がん\\n拡大コホート1:結腸・直腸がん\\n拡大コホート2:TMEM180陽性の結腸・直腸...',\n",
       " '初発の多発性骨髄腫',\n",
       " '炎症性腸疾患、乾癬、掌蹠膿疱症、悪性腫瘍(悪性黒色腫等)、関節リウマチ、自己免疫疾患',\n",
       " '頭頸部がんのがん治療に伴う口腔粘膜炎の疼痛 ',\n",
       " '口腔がん',\n",
       " '多発性骨髄腫',\n",
       " 'がん悪液質、がん治療の副作用',\n",
       " '固形がん',\n",
       " '進行非小細胞肺がん',\n",
       " '乳がん',\n",
       " '良性・悪性乳腺腫瘍、遺伝性乳がん卵巣がん症候群',\n",
       " '進行非小細胞肺がん\\nEGFR変異\\nHER2変異',\n",
       " 'がん',\n",
       " '卵巣がん',\n",
       " '多発性骨髄腫',\n",
       " '固形がん',\n",
       " 'がん',\n",
       " '高度がん疼痛',\n",
       " '治癒切除不能または再発の病変を有する下記臓器原発の腫瘍。 ① 消化器(食道、胃、大腸、胆道、膵) ② ...',\n",
       " '統合失調症(統合失調感情障害を含む)、がん',\n",
       " 'がん',\n",
       " '移植後の初発多発性骨髄腫',\n",
       " '標準治療後の再発悪性神経膠腫',\n",
       " '食道がん',\n",
       " '再発又は難治性の多発性骨髄腫であり,承認された添付文書に基づきide-celの投与に適格である成人被験者。',\n",
       " '小児がんおよびAYAがん患者',\n",
       " '全てのがん患者',\n",
       " '非小細胞肺がん',\n",
       " '膵がん、良性膵疾患、他の消化器領域がん',\n",
       " '進行がんおよび再発がん患者の抑うつ症状',\n",
       " 'がん',\n",
       " '1) 消化器がん(食道がん,胃がん,大腸がん) 2) 心疾患(狭心症,心臓弁膜症) 3)  肺がん\\u30004)\\u3000運動...',\n",
       " '多発性骨髄腫',\n",
       " '多発性骨髄腫',\n",
       " 'BRAF V600E 遺伝子変異陽性大腸がん',\n",
       " '進行性又は転移性の固形がん',\n",
       " '固形がん',\n",
       " '悪性神経膠腫',\n",
       " '腎細胞がん',\n",
       " '局所進行又は転移性固形がん',\n",
       " '転移性又は切除不能の悪性黒色腫, 転移性又は切除不能の肝細胞癌, 転移性又は切除不能の大腸癌',\n",
       " '乳がん',\n",
       " '多発性骨髄腫',\n",
       " 'がん',\n",
       " '乳がん',\n",
       " '多発性骨髄腫',\n",
       " 'MAGE A4陽性かつHLA-A*02:01陽性の切除不能進行・再発を有する固形がん',\n",
       " '乳がん',\n",
       " '食道扁平上皮がん',\n",
       " '再発悪性神経膠腫',\n",
       " '膵臓がん',\n",
       " '上皮性卵巣がん(原発性腹膜がん及び卵管がんを含む)',\n",
       " '【コホートA】BRCA変異陽性の子宮平滑筋肉腫:募集中\\n【コホートB】BRCA変異陰性・HRD陽性の子宮平滑筋...',\n",
       " '未治療の治癒切除不能な膵がん患者( 遠隔転移例・切除不能局所進行膵がん)を対象とし、術後の再発症例...',\n",
       " '高齢者進行非小細胞肺がん及び膵がん',\n",
       " '乳がん',\n",
       " '多発性骨髄腫',\n",
       " '進行固形がん',\n",
       " '尿路上皮がん',\n",
       " '再発又は難治性の多発性骨髄腫(RRMM)',\n",
       " '手術不能又は再発PD-L1陽性トリプルネガティブ乳がん',\n",
       " '乳がん術後リンパ浮腫',\n",
       " '筋層非浸潤性膀胱がん',\n",
       " '固形がん及び血液がん(AML, MDS, DLBCL)',\n",
       " '結腸がん・直腸がん',\n",
       " '前立腺がん',\n",
       " '膵がん、胆道がん',\n",
       " '前立腺がん',\n",
       " '胃癌、食道がん',\n",
       " '直腸がん',\n",
       " '多発性骨髄腫',\n",
       " '多発性骨髄腫',\n",
       " '膵がん',\n",
       " '膵臓がん',\n",
       " '固形がん',\n",
       " '頭頸部扁平上皮がん',\n",
       " '原発性肺がん、転移性肺がん',\n",
       " '乳がん',\n",
       " '胆道がん',\n",
       " '子宮がん',\n",
       " '非扁平上皮非小細胞肺がん',\n",
       " '子宮頸がん、子宮体がん、卵巣がん',\n",
       " '粘膜黒色腫',\n",
       " '局所進行性又は転移性の頭頚部癌、胃癌、食道癌、非小細胞肺癌、又は悪性黒色腫',\n",
       " '肝細胞がん',\n",
       " '汎がん(約20種類の悪性腫瘍)',\n",
       " '大腸がん',\n",
       " '悪性リンパ腫,\\u3000固形がん',\n",
       " '非小細胞肺がん',\n",
       " '膵臓がん',\n",
       " '悪性黒色腫',\n",
       " '肝細胞癌,固形がん,大腸癌,子宮体癌',\n",
       " '乳がん',\n",
       " 'WHO (World Health Organization)分類2016のグレードⅢ~Ⅳに分類される悪性神経膠腫',\n",
       " '進行性悪性黒色腫',\n",
       " '固形がん',\n",
       " '再発脊髄悪性神経膠腫',\n",
       " '胃がん',\n",
       " '胃がん',\n",
       " '初発悪性神経膠腫',\n",
       " '膵がん',\n",
       " '悪性神経膠腫',\n",
       " '進行性悪性黒色腫',\n",
       " '食道胃接合部がん(西の分類)',\n",
       " '食道がん',\n",
       " '進行性悪性黒色腫',\n",
       " '乳がん',\n",
       " 'ALK遺伝子異常を有する希少がん',\n",
       " 'Part1:固形がん\\nPart2:頭頸部がん,尿路上皮がん',\n",
       " '下腹部消化器がん ']"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[result[2] for result in results]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "targetDf = pd.DataFrame({'JRCT ID':[result[0] for result in results],\n",
    "              'Target':[result[2] for result in results]})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "targetDf.to_csv('./20241128Target.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032240511\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032240506\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1042240125\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1052240186\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030240477\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030240433\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240381\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051240141\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1050240136\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1040240090\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs071240060\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051240129\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240335\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051240121\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2061240051\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240313\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061240049\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031240297\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240279\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1042240073\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032240277\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240272\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240261\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240248\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031240239\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240229\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1051240096\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031240220\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041240056\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240210\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1011240022\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2021240013\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs021240010\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030240152\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2052240059\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031240153\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061240019\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030240137\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240090\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240083\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1052240029\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1042240023\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240065\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031240063\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240057\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032240033\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1052240008\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033240023\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240016\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031240014\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041240003\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230747\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1040230173\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041230169\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230693\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230688\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031230682\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2011230059\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230660\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230637\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230608\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031230606\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2021230055\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230577\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032230540\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230532\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2061230084\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230531\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030230529\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051230147\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230510\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032230493\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2071230097\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs042230112\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2071230095\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2011230049\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1020230039\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041230106\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2072230089\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2061230074\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230429\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230410\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032230396\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051230108\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230372\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230360\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230356\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230319\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030230315\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230311\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033230299\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230249\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030230246\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051230069\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230234\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230223\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051230065\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030230130\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031230127\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230098\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230090\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230096\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230088\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230087\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2032230060\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2061230009\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031230018\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1070230005\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230009\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031230007\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032220746\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061220113\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220738\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs052220194\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041220157\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220675\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051220176\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032220618\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041220125\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220581\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031220569\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1032220561\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2021220036\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030220526\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041220102\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030220495\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220477\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2063220071\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1011220023\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220421\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041220065\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2021220022\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1051220093\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220311\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220278\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220276\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032220240\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220233\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1040220043\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220203\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033220220\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041220034\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030220126\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1051220045\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1050220041\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1060220026\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041220021\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031220060\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051220019\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1040220010\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2053220006\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1050220005\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030220014\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031210706\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051210205\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030210687\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030210672\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs021210075\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210635\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210607\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051210152\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210530\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033210499\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033210469\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041210108\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210426\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210405\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1010210046\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs071210084\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030210390\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1050210104\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs071210074\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2043210077\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2052210099\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031210300\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210299\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs032210292\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033210278\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210264\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2041210056\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041210053\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061210028\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2011210025\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2011210020\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041210041\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051210043\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs021210010\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs042210018\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2043210017\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031210072\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs041200113\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs062200061\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030200410\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2031200384\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031200386\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051200121\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031200320\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033200278\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1041200082\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051200105\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1062200037\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2071200060\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs062200029\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1052210105\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1052200051\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs071200026\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031200088\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031200069\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1051200028\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2080225196\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTc030190263\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1020190017\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031190186\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1030190169\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031190126\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031190131\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2033190086\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2080224780\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1031190049\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs071190010\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2051190009\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051190006\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs021180010\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061180096\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061180095\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061180085\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs061180074\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031180170\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1091220410\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031180114\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs031180115\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2080224549\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCTs051180046\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2091220364\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT2080223823\n",
      "Waiting for 30 seconds before the next request...\n",
      "Processing URL: https://jrct.niph.go.jp/latest-detail/jRCT1090220224\n",
      "Waiting for 30 seconds before the next request...\n"
     ]
    }
   ],
   "source": [
    "    # jRCT詳細リンクを作成\n",
    "jrct_links = extract_jrct_links(results)\n",
    "\n",
    "    # 詳細リンクからデータフレームを作成\n",
    "df = create_dataframe_from_urls(jrct_links,delay=30)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 整列後の DataFrame を作成\n",
    "sorted_df = reorder_columns(df)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/var/folders/xj/t9whz9_x5g309fn84ql50wrm0000gn/T/ipykernel_82712/2325933109.py:1: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  sorted_df['JRCT ID'] = [result[0] for result in results]\n",
      "/var/folders/xj/t9whz9_x5g309fn84ql50wrm0000gn/T/ipykernel_82712/2325933109.py:2: SettingWithCopyWarning: \n",
      "A value is trying to be set on a copy of a slice from a DataFrame.\n",
      "Try using .loc[row_indexer,col_indexer] = value instead\n",
      "\n",
      "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
      "  sorted_df['Title'] = [result[1] for result in results]\n"
     ]
    }
   ],
   "source": [
    "sorted_df['JRCT ID'] = [result[0] for result in results]\n",
    "sorted_df['Title'] = [result[1] for result in results]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "new_order = [\"JRCT ID\", \"Title\"] + [col for col in sorted_df.columns if col not in [\"JRCT ID\", \"Title\"]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "sorted_df = sorted_df[new_order]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "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>JRCT ID</th>\n",
       "      <th>Title</th>\n",
       "      <th>研究・治験の目的</th>\n",
       "      <th>試験の種類</th>\n",
       "      <th>無作為化</th>\n",
       "      <th>盲検化</th>\n",
       "      <th>対照</th>\n",
       "      <th>割付け</th>\n",
       "      <th>研究目的</th>\n",
       "      <th>主たる選択基準</th>\n",
       "      <th>...</th>\n",
       "      <th>assignment</th>\n",
       "      <th>purpose</th>\n",
       "      <th>Inclusion Criteria</th>\n",
       "      <th>Exclusion Criteria</th>\n",
       "      <th>Age Minimum</th>\n",
       "      <th>Age Maximum</th>\n",
       "      <th>Gender</th>\n",
       "      <th>Discontinuation Criteria</th>\n",
       "      <th>Keyword</th>\n",
       "      <th>Intervention(s)</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>jRCT1032240511</td>\n",
       "      <td>進行がん患者の痛みに対する交番磁界治療器の至適な治療時間の条件に関する多施設共同研究</td>\n",
       "      <td>交番磁界治療器を用いた自宅での疼痛治療について、進行がん患者が治療の継続が可能と考える治療時...</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>単一群</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>非対照</td>\n",
       "      <td>単群比較</td>\n",
       "      <td>その他</td>\n",
       "      <td>1.\\t同意取得日の年齢が18歳以上 である&lt;br&gt;\\r\\n2.\\t一般病棟/緩和ケア病棟に...</td>\n",
       "      <td>...</td>\n",
       "      <td>single assignment</td>\n",
       "      <td>other</td>\n",
       "      <td>1. Age 18 years or older on the day of consent...</td>\n",
       "      <td>1. There is a skin disorder in the painful are...</td>\n",
       "      <td>18age old over</td>\n",
       "      <td>No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>Four pads of the alternating magnetic field th...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>jRCT1032240506</td>\n",
       "      <td>卵巣腫瘍手術での術中低圧換気介入による術中出血量に及ぼす影響:ランダム化比較試験</td>\n",
       "      <td>卵巣悪性腫瘍手術は高侵襲な手術であり輸血率の高い手術である。一方で輸血により癌の予後が悪化す...</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>無作為化比較</td>\n",
       "      <td>単盲検</td>\n",
       "      <td>実薬(治療)対照</td>\n",
       "      <td>並行群間比較</td>\n",
       "      <td>治療</td>\n",
       "      <td>千葉大学医学部附属病院で卵巣がん手術をうける患者</td>\n",
       "      <td>...</td>\n",
       "      <td>parallel assignment</td>\n",
       "      <td>treatment purpose</td>\n",
       "      <td>Patients undergoing ovarian cancer surgery at ...</td>\n",
       "      <td>1.Minors\\n\\r\\n2.Emergency surgery\\n\\r\\n3.Patie...</td>\n",
       "      <td>18age old over</td>\n",
       "      <td>100age old not</td>\n",
       "      <td>Female</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>Low-pressure ventilation and low venous pressu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>jRCT1042240125</td>\n",
       "      <td>Liquid Biopsyによる膵がん早期診断法の開発</td>\n",
       "      <td>本研究では、膵がん高危険群である膵のう胞性病変等を対象にサーベイランスプログラムを立ち上げ、...</td>\n",
       "      <td>観察研究</td>\n",
       "      <td>単一群</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>非対照</td>\n",
       "      <td>単群比較</td>\n",
       "      <td>診断</td>\n",
       "      <td>①\\t藤田医科大学病院を受診した膵がんハイリスク群と診断される症例&lt;br&gt;\\r\\n具体的には...</td>\n",
       "      <td>...</td>\n",
       "      <td>single assignment</td>\n",
       "      <td>diagnostic purpose</td>\n",
       "      <td>1. Cases diagnosed as high-risk group for panc...</td>\n",
       "      <td>1. Post-Pancreatic Surgery Cases\\n\\r\\n2. Cases...</td>\n",
       "      <td>20age old over</td>\n",
       "      <td>No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>jRCT1052240186</td>\n",
       "      <td>トリモーダルプレハビリテーションが周術期の睡眠に及ぼす影響の検討:ランダム化比較試験</td>\n",
       "      <td>術前の介入により、介入群の方が対照群に比べて入院直後の睡眠効率が良いかどうかを検討すること</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>無作為化比較</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>無治療対照/標準治療対照</td>\n",
       "      <td>単群比較</td>\n",
       "      <td>予防</td>\n",
       "      <td>・20歳以上&lt;br&gt;\\r\\n・肺がん患者\\n\\r\\n・胸腔鏡補助下で根治術を受ける患者\\n\\...</td>\n",
       "      <td>...</td>\n",
       "      <td>single assignment</td>\n",
       "      <td>prevention purpose</td>\n",
       "      <td>1) Patients aged 20 and over \\n\\r\\n2) Lung can...</td>\n",
       "      <td>1) Patients who do not agree \\n\\r\\n2) Patients...</td>\n",
       "      <td>20age old over</td>\n",
       "      <td>No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Malignancy</td>\n",
       "      <td>Intervention for the Experimental Group:\\n\\r\\n...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>jRCT1030240477</td>\n",
       "      <td>プレシジョンオンコロジーを加速するためのスコアリングシステムを開発する研究</td>\n",
       "      <td>本研究の目的は、がん遺伝子パネル検査後、国立がん研究センター中央病院を受診した患者のデータを...</td>\n",
       "      <td>観察研究</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>その他</td>\n",
       "      <td>1) がん遺伝子パネル検査を実施した医師&lt;br&gt;\\r\\n2) 遺伝子異常にマッチした治験目的...</td>\n",
       "      <td>...</td>\n",
       "      <td></td>\n",
       "      <td>other</td>\n",
       "      <td>1. Physicians who performed cancer gene panel ...</td>\n",
       "      <td>Physicians deemed inappropriate by the Princip...</td>\n",
       "      <td>No limit</td>\n",
       "      <td>No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Genotype-matched trial</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>231</th>\n",
       "      <td>jRCT2080224549</td>\n",
       "      <td>進行性悪性黒色腫患者を対象としたGEN0101の皮内投与と、ペムブロリズマブ(抗PD-1抗体...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>&lt;p&gt;Both&lt;/p&gt;</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>investigational material(s)&lt;br&gt;\\nGeneric name ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>232</th>\n",
       "      <td>jRCTs051180046</td>\n",
       "      <td>造影CT及び造影MRIを用いた乳がんセンチネルリンパ節転移診断による腋窩手術回避に関する研究</td>\n",
       "      <td>原発乳がん患者に対して、造影CTとMRIを用いた転移診断により、転移陰性例に腋窩手術を安全に...</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>単一群</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>ヒストリカルコントロール</td>\n",
       "      <td>単群比較</td>\n",
       "      <td>治療</td>\n",
       "      <td>1.手術予定の原発T1-2乳がん症例。&lt;br&gt;\\r\\n2.臨床的腋窩リンパ節転移陰性症例。\\...</td>\n",
       "      <td>...</td>\n",
       "      <td>single assignment</td>\n",
       "      <td>treatment purpose</td>\n",
       "      <td>1.T1-2 primary breast cancer\\n\\r\\n2.Clinically...</td>\n",
       "      <td>1.Contraindication of contrast agents\\n\\r\\n2.P...</td>\n",
       "      <td>18age old over</td>\n",
       "      <td>No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Breast cancer</td>\n",
       "      <td>Identify the sentinel node by contrast-enhance...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>233</th>\n",
       "      <td>jRCT2091220364</td>\n",
       "      <td>ALK遺伝子異常を有する希少がんに対するアレクチニブの医師主導治験</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>無対照</td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>Age 7Month Week Day Hour over</td>\n",
       "      <td>Age Month Week Day Hour No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>Intervention type:DRUG\\n\\nName of intervention...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>234</th>\n",
       "      <td>jRCT2080223823</td>\n",
       "      <td>固形がん患者を対象としたE7130 の臨床第1相試験</td>\n",
       "      <td>NaN</td>\n",
       "      <td>介入研究</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>&lt;p&gt;Both&lt;/p&gt;</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>investigational material(s)&lt;br&gt;\\nGeneric name ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>235</th>\n",
       "      <td>jRCT1090220224</td>\n",
       "      <td>体幹部神経ブロック後のレボブピバカインの血中濃度の変化</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>非盲検</td>\n",
       "      <td>無対照</td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20Age Month Week Day Hour over</td>\n",
       "      <td>Age Month Week Day Hour No limit</td>\n",
       "      <td>Both</td>\n",
       "      <td>NaN</td>\n",
       "      <td></td>\n",
       "      <td>Intervention type:\\n\\nName of intervention:\\n\\...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>236 rows × 32 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            JRCT ID                                              Title  \\\n",
       "0    jRCT1032240511         進行がん患者の痛みに対する交番磁界治療器の至適な治療時間の条件に関する多施設共同研究   \n",
       "1    jRCT1032240506           卵巣腫瘍手術での術中低圧換気介入による術中出血量に及ぼす影響:ランダム化比較試験   \n",
       "2    jRCT1042240125                        Liquid Biopsyによる膵がん早期診断法の開発   \n",
       "3    jRCT1052240186         トリモーダルプレハビリテーションが周術期の睡眠に及ぼす影響の検討:ランダム化比較試験   \n",
       "4    jRCT1030240477              プレシジョンオンコロジーを加速するためのスコアリングシステムを開発する研究   \n",
       "..              ...                                                ...   \n",
       "231  jRCT2080224549  進行性悪性黒色腫患者を対象としたGEN0101の皮内投与と、ペムブロリズマブ(抗PD-1抗体...   \n",
       "232  jRCTs051180046     造影CT及び造影MRIを用いた乳がんセンチネルリンパ節転移診断による腋窩手術回避に関する研究   \n",
       "233  jRCT2091220364                  ALK遺伝子異常を有する希少がんに対するアレクチニブの医師主導治験   \n",
       "234  jRCT2080223823                         固形がん患者を対象としたE7130 の臨床第1相試験   \n",
       "235  jRCT1090220224                       体幹部神経ブロック後のレボブピバカインの血中濃度の変化    \n",
       "\n",
       "                                              研究・治験の目的 試験の種類    無作為化  盲検化  \\\n",
       "0    交番磁界治療器を用いた自宅での疼痛治療について、進行がん患者が治療の継続が可能と考える治療時...  介入研究     単一群  非盲検   \n",
       "1    卵巣悪性腫瘍手術は高侵襲な手術であり輸血率の高い手術である。一方で輸血により癌の予後が悪化す...  介入研究  無作為化比較  単盲検   \n",
       "2    本研究では、膵がん高危険群である膵のう胞性病変等を対象にサーベイランスプログラムを立ち上げ、...  観察研究     単一群  非盲検   \n",
       "3        術前の介入により、介入群の方が対照群に比べて入院直後の睡眠効率が良いかどうかを検討すること  介入研究  無作為化比較  非盲検   \n",
       "4    本研究の目的は、がん遺伝子パネル検査後、国立がん研究センター中央病院を受診した患者のデータを...  観察研究                \n",
       "..                                                 ...   ...     ...  ...   \n",
       "231                                                NaN  介入研究     NaN  NaN   \n",
       "232  原発乳がん患者に対して、造影CTとMRIを用いた転移診断により、転移陰性例に腋窩手術を安全に...  介入研究     単一群  非盲検   \n",
       "233                                                NaN   NaN     NaN  非盲検   \n",
       "234                                                NaN  介入研究     NaN  NaN   \n",
       "235                                                NaN   NaN     NaN  非盲検   \n",
       "\n",
       "               対照     割付け 研究目的  \\\n",
       "0             非対照    単群比較  その他   \n",
       "1        実薬(治療)対照  並行群間比較   治療   \n",
       "2             非対照    単群比較   診断   \n",
       "3    無治療対照/標準治療対照    単群比較   予防   \n",
       "4                          その他   \n",
       "..            ...     ...  ...   \n",
       "231           NaN     NaN  NaN   \n",
       "232  ヒストリカルコントロール    単群比較   治療   \n",
       "233           無対照          NaN   \n",
       "234           NaN     NaN  NaN   \n",
       "235           無対照          NaN   \n",
       "\n",
       "                                               主たる選択基準  ...  \\\n",
       "0    1.\\t同意取得日の年齢が18歳以上 である<br>\\r\\n2.\\t一般病棟/緩和ケア病棟に...  ...   \n",
       "1                             千葉大学医学部附属病院で卵巣がん手術をうける患者  ...   \n",
       "2    ①\\t藤田医科大学病院を受診した膵がんハイリスク群と診断される症例<br>\\r\\n具体的には...  ...   \n",
       "3    ・20歳以上<br>\\r\\n・肺がん患者\\n\\r\\n・胸腔鏡補助下で根治術を受ける患者\\n\\...  ...   \n",
       "4    1) がん遺伝子パネル検査を実施した医師<br>\\r\\n2) 遺伝子異常にマッチした治験目的...  ...   \n",
       "..                                                 ...  ...   \n",
       "231                                                NaN  ...   \n",
       "232  1.手術予定の原発T1-2乳がん症例。<br>\\r\\n2.臨床的腋窩リンパ節転移陰性症例。\\...  ...   \n",
       "233                                                NaN  ...   \n",
       "234                                                NaN  ...   \n",
       "235                                                NaN  ...   \n",
       "\n",
       "              assignment             purpose  \\\n",
       "0      single assignment               other   \n",
       "1    parallel assignment   treatment purpose   \n",
       "2      single assignment  diagnostic purpose   \n",
       "3      single assignment  prevention purpose   \n",
       "4                                      other   \n",
       "..                   ...                 ...   \n",
       "231                  NaN                 NaN   \n",
       "232    single assignment   treatment purpose   \n",
       "233                                      NaN   \n",
       "234                  NaN                 NaN   \n",
       "235                                      NaN   \n",
       "\n",
       "                                    Inclusion Criteria  \\\n",
       "0    1. Age 18 years or older on the day of consent...   \n",
       "1    Patients undergoing ovarian cancer surgery at ...   \n",
       "2    1. Cases diagnosed as high-risk group for panc...   \n",
       "3    1) Patients aged 20 and over \\n\\r\\n2) Lung can...   \n",
       "4    1. Physicians who performed cancer gene panel ...   \n",
       "..                                                 ...   \n",
       "231                                                NaN   \n",
       "232  1.T1-2 primary breast cancer\\n\\r\\n2.Clinically...   \n",
       "233                                                NaN   \n",
       "234                                                NaN   \n",
       "235                                                NaN   \n",
       "\n",
       "                                    Exclusion Criteria  \\\n",
       "0    1. There is a skin disorder in the painful are...   \n",
       "1    1.Minors\\n\\r\\n2.Emergency surgery\\n\\r\\n3.Patie...   \n",
       "2    1. Post-Pancreatic Surgery Cases\\n\\r\\n2. Cases...   \n",
       "3    1) Patients who do not agree \\n\\r\\n2) Patients...   \n",
       "4    Physicians deemed inappropriate by the Princip...   \n",
       "..                                                 ...   \n",
       "231                                                NaN   \n",
       "232  1.Contraindication of contrast agents\\n\\r\\n2.P...   \n",
       "233                                                NaN   \n",
       "234                                                NaN   \n",
       "235                                                NaN   \n",
       "\n",
       "                        Age Minimum                       Age Maximum  \\\n",
       "0                    18age old over                          No limit   \n",
       "1                    18age old over                    100age old not   \n",
       "2                    20age old over                          No limit   \n",
       "3                    20age old over                          No limit   \n",
       "4                          No limit                          No limit   \n",
       "..                              ...                               ...   \n",
       "231                             NaN                               NaN   \n",
       "232                  18age old over                          No limit   \n",
       "233   Age 7Month Week Day Hour over  Age Month Week Day Hour No limit   \n",
       "234                             NaN                               NaN   \n",
       "235  20Age Month Week Day Hour over  Age Month Week Day Hour No limit   \n",
       "\n",
       "          Gender Discontinuation Criteria                 Keyword  \\\n",
       "0           Both                      NaN                           \n",
       "1         Female                      NaN                           \n",
       "2           Both                      NaN                           \n",
       "3           Both                      NaN              Malignancy   \n",
       "4           Both                      NaN  Genotype-matched trial   \n",
       "..           ...                      ...                     ...   \n",
       "231  <p>Both</p>                      NaN                           \n",
       "232         Both                      NaN           Breast cancer   \n",
       "233         Both                      NaN                           \n",
       "234  <p>Both</p>                      NaN                           \n",
       "235         Both                      NaN                           \n",
       "\n",
       "                                       Intervention(s)  \n",
       "0    Four pads of the alternating magnetic field th...  \n",
       "1    Low-pressure ventilation and low venous pressu...  \n",
       "2                                                       \n",
       "3    Intervention for the Experimental Group:\\n\\r\\n...  \n",
       "4                                                       \n",
       "..                                                 ...  \n",
       "231  investigational material(s)<br>\\nGeneric name ...  \n",
       "232  Identify the sentinel node by contrast-enhance...  \n",
       "233  Intervention type:DRUG\\n\\nName of intervention...  \n",
       "234  investigational material(s)<br>\\nGeneric name ...  \n",
       "235  Intervention type:\\n\\nName of intervention:\\n\\...  \n",
       "\n",
       "[236 rows x 32 columns]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sorted_df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [],
   "source": [
    "sorted_df.to_csv('../JRCT20241128Cancer.csv')"
   ]
  },
  {
   "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
}