Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
CLI1976 authored Aug 20, 2024
1 parent 5f6eaa8 commit 48b0349
Show file tree
Hide file tree
Showing 19 changed files with 1,347 additions and 25 deletions.
2 changes: 1 addition & 1 deletion Cervical.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ GenerateReport:
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Cervical Carcinoma (AJCC 9th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down
2 changes: 1 addition & 1 deletion Colangio.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ GenerateReport:
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Cholangiocarcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down
62 changes: 60 additions & 2 deletions Colon.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,69 @@ return
GenerateReport:
; Collect data from GUI
Gui, Submit, NoHide

; ===vvvvv 欄位簡易檢核vvvvv===
; 檢查tumor location是否 全部未勾選
if ( TLS != 1 and Cecum != 1 and Ascending != 1 and Hepati != 1 and Transverse != 1 and Splenic != 1 and Descending != 1 and Sigmoid != 1 and Rectum != 1 and Other != 1)
{
MsgBox, T location未填
}
; 檢查勾選但對應的location structure為空
if (Other= 1 and OtherL = "" )
{
MsgBox, Location structure未填
}

; 檢查tumor location是否 全部未勾選
if ( NonM != 1 and Measurable != 1 )
{
MsgBox, Measure欄位未填
}
; 檢查勾選但對應的location structure為空
if (Measurable = 1 and Measure = "" )
{
MsgBox, Measure size未填
}

; 檢查tumor invasion是否全部未勾選
if ( Invasion0 != 1 and Invasion1 != 1 and Invasion2 != 1 and Invasion3 != 1 and Invasion4 != 1)
{
MsgBox, T stage有遺漏的欄位未填
}
; 檢查勾選但對應的invasion structure為空
if (Invasion4= 1 and Invasion5 = "" )
{
MsgBox, invasion structure未填
}

; 檢查vLN0, vLN1, vLN11是否全部未勾選
if ( LN0 != 1 and LN1 != 1 and LN11 != 1)
{
MsgBox, N stage有遺漏的欄位未填
}
; 檢查vLN1或vLN11是否被勾選但對應的LN21或LN23為空
if ((LN1 = 1 and LN21 = "") or (LN11 = 1 and LN23 = "" ))
{
MsgBox, LN數目未填
}

; 檢查Distent meta是否 全部未勾選
if ( DM0 != 1 and DM1 != 1 and DM2 != 1 )
{
MsgBox, Distent meta欄位未填
}
; 檢查勾選但對應的Meta location為空
if ((DM1 = 1 and DM3 = "") or (DM2 = 1 and DM4 = "" ))
{
MsgBox, Meta location未填
}
; === ^^^欄位簡易檢核^^^===

; 刪除現有的 test.txt 文件
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Colorectal Carcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down Expand Up @@ -524,7 +582,7 @@ if DM2= 1
FileAppend, %2_Space%`n, c:\temp\test.txt
;-------------------------------------------------------------
FileAppend, 5. %1_Space%Other findings: `n, c:\temp\test.txt
FileAppend, %4_Space%______ %vOF0%________ `n, c:\temp\test.txt
FileAppend, %4_Space%______ %OF0%________ `n, c:\temp\test.txt
; ==================================
FileRead, ClipboardContent, c:\temp\test.txt
; 將內容複製到剪貼簿
Expand Down
1 change: 0 additions & 1 deletion GIST.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,3 @@ Exit:
GuiClose:
ExitApp
return

132 changes: 132 additions & 0 deletions GUI run.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
; 創建GUI窗口
Gui, Add, Button, gRunScript1 w80 h20 y15 x10 , Colon
Gui, Add, Button, gRunScript2 w80 h20 y15 x105, Esophagus
Gui, Add, Button, gRunScript3 w80 h20 y40 x10, Gastric
Gui, Add, Button, gRunScript4 w80 h20 y40 x105, HCC
Gui, Add, Button, gRunScript5 w80 h20 y65 x10, Lung
Gui, Add, Button, gRunScript6 w80 h20 y65 x105, Prostate
Gui, Add, Button, gRunScript7 w80 h20 y90 x10, Endometria
Gui, Add, Button, gRunScript8 w80 h20 y90 x105, Cervical
Gui, Add, Button, gRunScript9 w80 h20 y115 x10, Ovarian
Gui, Add, Button, gRunScript10 w80 h20 y115 x105, Pancreas
Gui, Add, Button, gRunScript11 w80 h20 y140 x10, Colangio
Gui, Add, Button, gRunScript12 w80 h20 y140 x105, Nasopharynx
Gui, Add, Button, gRunScript13 w80 h20 y165 x10, Oral
Gui, Add, Button, gRunScript14 w80 h20 y165 x105, Oropharynx
Gui, Add, Button, gRunScript15 w80 h20 y190 x10, Hypopharynx
Gui, Add, Button, gRunScript16 w80 h20 y190 x105, GIST
Gui, Add, Button, gRunScript17 w80 h20 y215 x10, RCC
Gui, Add, Button, gRunScript18 w80 h20 y215 x105, Urinary bladder
Gui, Add, Button, gRunScript19 w80 h20 y240 x10, Larynx

; GUI Configuration
; Gui, Color, 85ddda ; 綠
; Gui, Color, cca6bf ; 紅藤色
; Gui, Color, a3a3a2 ; 薄墨色 
; Gui, Color, ee827c ; 甚三紅 
Gui, Color, ee827c ; 甚三紅 
Gui, Font, cDefault, Arial

Menu, Tray, Icon, C:\Green software\Icon\favicon-20181225093349134.ico, 1
; 顯示GUI窗口,在螢幕的左上角位置(x=0, y=0),窗口大小為200x300
Gui, Show, x1720 y850 w200 h280, Stage form
return

; 按鈕1的處理程序Colon
RunScript1:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\colon.ahk"
return

; 按鈕2的處理程序Esophagus
RunScript2:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\esophageal.ahk"
return

; 按鈕3的處理程序Gastric
RunScript3:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Gastric.ahk"
return

; 按鈕4的處理程序HCC
RunScript4:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\HCC.ahk"
return

; 按鈕5的處理程序Lung
RunScript5:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Lung.ahk"
return

; 按鈕6的處理程序Prostate
RunScript6:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Prostate.ahk"
return

; 按鈕7的處理程序Endometria
RunScript7:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\endometrial.ahk"
return

; 按鈕8的處理程序Cervical
RunScript8:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\cervical.ahk"
return

; 按鈕9的處理程序Ovarian
RunScript9:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\ovarian.ahk"
return

; 按鈕10的處理程序Ovarian
RunScript10:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\pancreatic.ahk"
return

; 按鈕11的處理程序Colangio
RunScript11:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Colangio.ahk"
return

; 按鈕12的處理程序Nasopharynx
RunScript12:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Nasopharyngeal.ahk"
return

; 按鈕13的處理程序Oral
RunScript13:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Oral.ahk"
return

; 按鈕14的處理程序Oropharynx
RunScript14:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Oropharynx.ahk"
return

; 按鈕15的處理程序Hypopharynx
RunScript15:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Hypopharygeal.ahk"
return

; 按鈕16的處理程序GIST
RunScript16:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\GIST.ahk"
return

; 按鈕17的處理程序RCC
RunScript17:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\RCC.ahk"
return

; 按鈕18的處理程序Urinary bladder
RunScript18:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Urinary bladder.ahk"
return

; 按鈕19的處理程序Larynx
RunScript19:
Run, "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Green software\AHK compiler\Staging form\Larygeal.ahk"
return

; 關閉GUI窗口
GuiClose:
ExitApp
16 changes: 10 additions & 6 deletions Gastric.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ GenerateReport:
; 刪除現有的 test.txt 文件
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Gastric Carcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, *本表單僅依據單次影像進行分期供腫瘤團隊參考,並不代表病人的臨床分期,臨床分期需綜合病人的臨床發現、各種影像(包括各種內視鏡及超音波檢查)及病理表現來進行判斷,病人的臨床分期請務必依據腫瘤團隊會議討論後的結果,登載在癌症團隊會議紀錄單中。 `n, c:\temp\test.txt
FileAppend, *本表單僅依據單次影像進行分期供腫瘤團隊參考,並不代表病人的臨床分期,臨床分期需綜合病人臨床發現、各種影像(包括各種內視鏡及超音波檢查)及病理表現來進行判斷,病人的最終臨床分期可能因癌症團隊討論有所異動,敬請參閱病歷首頁。 `n, c:\temp\test.txt
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;-------------------------------------------------------------

Expand Down Expand Up @@ -305,15 +305,19 @@ if Nyes= 1
FileAppend,
(
%4_Space%■ Yes, %4_Space%%1_tab%Number: _%Ny1%_
)`n, c:\temp\test.txt
), c:\temp\test.txt
}
if Nyes= 0
{
FileAppend,
(
%4_Space%□ Yes, %4_Space%%1_tab%Number: _%Ny1%_
)`n, c:\temp\test.txt
), c:\temp\test.txt
}
FileAppend,
(
(N1:1-2; N2:3-6; N3a:7-15; N3b:>15)
)`n , c:\temp\test.txt
FileAppend, %2_tab%Location: _%Ny2%_`n , c:\temp\test.txt
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版

Expand Down
2 changes: 1 addition & 1 deletion HCC.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ GenerateReport:
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Hepatocellular Carcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down
2 changes: 1 addition & 1 deletion Hypopharygeal.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ GenerateReport:
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Hypopharyngeal Carcinoma (AJCC 8th)`n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down
2 changes: 1 addition & 1 deletion Larygeal.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Gui, Add, Edit, vDM4 y635 x792 w250


; Show GUI
Gui, Show, w1350 h880 x0 y0, Laryngeal Carcinoma Imaging Report Generator
Gui, Show, w1350 h880 x0 y0 , Laryngeal Carcinoma Imaging Report Generator
return

; === 生成報告===
Expand Down
4 changes: 2 additions & 2 deletions Lung.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Gui, Add, Button, Default gGenerateReport y1050 x20, Generate Report
Gui, Add, Button, gExit y1050 x170, Exit

; Show GUI
Gui, Show, w600 h1100 x0 y0, Lung Cancer Imaging Report Generator
Gui, Show, w600 h1100, Lung Cancer Imaging Report Generator
return

; === 生成報告===
Expand All @@ -172,7 +172,7 @@ GenerateReport:
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate%`n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Lung Carcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
Expand Down
Loading

0 comments on commit 48b0349

Please sign in to comment.