#Patient1 progress_note_1 = """ [Progress Note 20211213] [Problem List] nan [Subjective] Chest discomfort(-) [Objective] 혈압: 146/57 mmHg, 맥박: 69 회/min, 호흡: 14 회/min, 체온: 36.2 ℃, SPO2: 99 %, [Assessment] #1 3VD, stable angina #2 EGC s.p ESD #3 DM ESRD on HD (월수금 Lt. AVF) [Goal] nan [Plan] nan [Comment] nan [Progress Note 20211214] [Problem List] nan [Subjective] 흉통 없고 괜찮아요. [Objective] 혈압: 103/66 mmHg, 맥박: 80 회/min, 호흡: 18 회/min, 체온: 37.4 ℃ [2021-12-14] (▼)RBC (Qn)[ChemR-I],Blood 2.69 x10^6/uL [2021-12-14] (▼)Hb (Qn)[ChemR-I],Blood 9.2 g/dl [2021-12-14] (▼)Hct (Qn)[ChemR-I],Blood 27.6 % [2021-12-14] (▼)Platelet (Qn)[ChemR-I],Blood 145 x10³/uL [2021-12-14] (▲)MCV (Qn)[ChemR-I],Blood 102.6 fl [2021-12-14] (▲)MCH (Qn)[ChemR-I],Blood 34.2 pg [2021-12-14] (▲)CK (Qn)[ChemR-I],Blood 528 IU/L femoral site hematoma + 5cm 더 커지지 않고 흡수되는 경과임 [Assessment] #1 3VD, stable angina s/p PCI at pmRCA, pmLAD (18.6.18) s/p PCI at LM-pLAD, pLCX-OM (21.12.13) #2 EGC s.p ESD #3 ESRD on HD [Goal] nan [Plan] nan [Comment] nan """ real_discharge_1 = """ [Chief Complaint] nan [Operation and Procedure] nan [Hospital Course] =========================================================== #1 3VD, stable angina s/p PCI at pmRCA, pmLAD (18.6.18) s/p PCI at LM-pLAD, pLCX-OM (21.12.13) #2 EGC s.p ESD #3 ESRD on HD =========================================================== 2018년 #1 소견으로 CV OPD방문했던 분. 당시 #2 시행 후 경과보고 추후 CAG고려함. 이후 f/u loss 2021.09.07 CV OPD 방문하였고, 입원하여 CAG시행 후 PCI or CABG시행 결정하기로 함. 2021.12.12 ADM for CAG+ <입원경과> 2021.12.13 CAG 시행: 2 vessel disease & Left Main Disease 로 PCI at LM-pLAD, pLCX-OM 시행 후 퇴원함 PCI(percutaneous coronary intervention) [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ date1 = ['2021-12-13', '2021-12-14'] problem1 = ['nan', 'nan'] subjective1 = ['Chest Discomfort(-)', '흉통없고 괜찮아요'] objective1 = ['혈압: 146/57 mmHg, 맥박: 69 회/min, 호흡: 14 회/min, 체온: 36.2 ℃, SPO2: 99 %', """혈압: 103/66 mmHg, 맥박: 80 회/min, 호흡: 18 회/min, 체온: 37.4 ℃, [2021-12-14] (▼)RBC (Qn)[ChemR-I],Blood 2.69 x10^6/uL [2021-12-14] (▼)Hb (Qn)[ChemR-I],Blood 9.2 g/dl [2021-12-14] (▼)Hct (Qn)[ChemR-I],Blood 27.6 % [2021-12-14] (▼)Platelet (Qn)[ChemR-I],Blood 145 x10³/uL [2021-12-14] (▲)MCV (Qn)[ChemR-I],Blood 102.6 fl [2021-12-14] (▲)MCH (Qn)[ChemR-I],Blood 34.2 pg [2021-12-14] (▲)CK (Qn)[ChemR-I],Blood 528 IU/L femoral site hematoma + 5cm \n더 커지지 않고 흡수되는 경과임"""] assessment1 = ["""#1 3VD, stable angina #2 EGC s.p ESD #3 DM ESRD on HD (월수금 Lt. AVF)""", """#1 3VD, stable angina s/p PCI at pmRCA, pmLAD (18.6.18) s/p PCI at LM-pLAD, pLCX-OM (21.12.13) #2 EGC s.p ESD #3 ESRD on HD"""] goal1 = ['nan', 'nan'] plan1 = ['nan', 'nan'] comment1 = ['nan', 'nan'] inference1 = """ [Chief Complaint] chest discomfort [Operation and Procedure] nan [Hospital Course] #1 3VD, stable angina s/p PCI at pmRCA, pmLAD (18.6.18) s/p PCI at LM-pLAD, pLCX-OM (21.12.13) #2 EGC s.p ESD #3 ESRD on HD 상병으로 본원 CV, GI, NPH f/u 중인 분으로 2021.12.12 3VD에 대해 PCI 위해 입원함. 2021.12.13 PCI at LM-pLAD, pLCX-OM 시행함. 2021.12.14 femoral site hematoma + 5cm 확인되어 f/u 시행하였고, 흡수되는 경과로 퇴원함. [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원""" #Patient2 date2 = ['2021-02-23', '2021-02-24', '2021-02-25'] problem2 = ['nan', 'nan', 'nan'] subjective2 = ['nan', 'nan', 'nan'] objective2 = [""" 체중: 71.9 kg, 2021-02-23 07:21:35 혈압: 103/47 mmHg, 맥박: 51 회/min, 호흡: 20 회/min, 체온: 36.8 ℃, SPO2: 95 %, 2021-02-23 08:14:37 """, """ 체중: 71.2 kg, 2021-02-24 07:41:16 혈압: 118/56 mmHg, 맥박: 56 회/min, 호흡: 20 회/min, 체온: 36.6 ℃, SPO2: 95 %, 2021-02-24 08:10:28 """, """ 체중: 71.7 kg, 2021-02-25 06:22:36 혈압: 126/76 mmHg, 맥박: 51 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, SPO2: 95 %, 2021-02-25 07:08:28 """] assessment2 = [""" #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) """, """ #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) """, """#1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월)""" ] goal2 = ['nan', 'nan', 'nan'] plan2 = ['nan', 'nan', 'nan'] comment2 = ['nan', 'nan', 'nan'] progress_note_2 = """ [Progress Note 20210223] [Problem List] nan [Subjective] nan [Objective] 체중: 71.9 kg, 2021-02-23 07:21:35 혈압: 103/47 mmHg, 맥박: 51 회/min, 호흡: 20 회/min, 체온: 36.8 ℃, SPO2: 95 %, 2021-02-23 08:14:37 [Assessment] #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) [Goal] nan [Plan] nan [Comment] nan [Progress Note 20210224] [Problem List] nan [Subjective] nan [Objective] 체중: 71.2 kg, 2021-02-24 07:41:16 혈압: 118/56 mmHg, 맥박: 56 회/min, 호흡: 20 회/min, 체온: 36.6 ℃, SPO2: 95 %, 2021-02-24 08:10:28 [Assessment] #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) [Goal] nan [Plan] nan [Comment] nan [Progress Note 20210225] [Problem List] nan [Subjective] nan [Objective] 체중: 71.7 kg, 2021-02-25 06:22:36 혈압: 126/76 mmHg, 맥박: 51 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, SPO2: 95 %, 2021-02-25 07:08:28 [Assessment] #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) [Goal] nan [Plan] nan [Comment] nan """ real_discharge_2 = """ [Chief Complaint] For preop w/u [Operation and Procedure] nan [Hospital Course] #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) ========================================================== severe MS에 대해 본원에서 PMV 시행 후 f/u 지속하던 환자이며 심부전 증상 없으나 f/u TTE에서 severe AR with mild AS 소견 보여 21.02.22 수술적 치료 고려하여 work up 위해 입원함. 21.02.25 mitral valve function은 비교적 양호한 것으로 보고 AVR만 시행하기로 했으며 수술 위한 재입원 예정으로 퇴원함. [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ inference2 = """ [Chief Complaint] for w/u [Operation and Procedure] nan [Hospital Course] #1. Severe rheumatic MS with mild MR and severe AR with mild AS (2004.01.02) - s/p PMV (2004.2.25) #2. Hypothyroidism (2001) #3. Chronic cholecystitis - s/p LLC (12.07.31) #4. MM tear of Rt. knee (2020.01월) ========================================================== 상환 상병으로 본원 CV f/u 하시는 분으로 2021.02.22 op w/u 위해 입원함. 2021.02.23 TTE/TEE 시행함. 2021.02.24 TEE상 severe rheumatic MS, severe AR 소견으로 MVR, AVR 시행하기로 함. 2021.02.25 퇴원함. [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ #Patient3 date3 = ['2021-02-05', '2021-02-06'] problem3 = ['nan', 'nan'] subjective3 = ['nan', '괜찮아요 불편한 것 없습니다.'] objective3 = [ 'nan', """ 혈압: 93/62 mmHg, 맥박: 55 회/min, 호흡: 16 회/min, 체온: 37.3 ℃, SPO2: 98 %, 2021-02-06 07:00:23 """] assessment3 = ['nan', """ #1. Atrial tachycardia - s/p RFCA(2021.02.05) """] goal3 = ['nan', 'nan'] plan3 =['nan', 'nan'] comment3 = [""" * Dx # Atrial tachycardia * PMHx # Atrial tachycardia A 32 years old female patient with palpitation was admitted for radiofrequency catheter ablation. Atrial tachycardia was documented on electrocardiogram and was refractory to antiarrhythmic drugs. Echocardiography showed structurally normal heart (left ventricular ejection fraction 63%) without enlarged left atrium (anteroposterior diameter 33 mm). * Med Concor tab [5mg] 1.00 TAB PO DP 1회 100일 Tambocor tab [50mg] 1.00 TAB PO BP 2회 100일 * ECG 2021.1.15 sinus rhythm, hr 61 bpm, qrs 100ms * Image [ 20201023 - Transthoracic Echocardiography Report ] LVEF 63%, LA 33 mm Normal echocardiography * Lab 2021-01-29 WBC (Qn)[ChemR-I],Blood 6.5 x10³/uL 2021-01-29 Hb (Qn)[ChemR-I],Blood 13.6 g/dl 2021-01-29 Platelet (Qn)[ChemR-I],Blood 236 x10³/uL 2021-01-29 PT(INR) (Qn)[ChemR-I],Blood 0.91 INR 2021-01-29 (▼)Creatinine (Qn)[ChemR-I],Blood 0.65 mg/dL 2021-01-29 AST(SGOT) (Qn)[ChemR-I],Blood 21 IU/L 2021-01-29 ALT(SGPT) (Qn)[ChemR-I],Blood 14 IU/L * Plan AT-RFCA 심방세동 도자절제술에 대하여 설명함. - 성공율 60-70% - 재시술 30~40% - 시술시간 3-6 시간 - 국소마취, 진정제, 진통제 투여 - 보조 호흡 필요할 수 있음. - 합병증 (1-2%): 뇌졸중, 응급심장수술 가능성 심방-식도누공--> 발열, 뇌졸증, 객혈 등 증상 -> 사망가능성 장운동장애, 횡경막마비, 폐정맥 협착--> 호흡곤란 기타 합병증 - 시술 중 직류동율동전환--> 진정중이므로 치아 포함 구강 내 손상 """, 'nan'] progress_note_3 = """ [Progress Note 20210205] [Problem List] nan [Subjective] nan [Objective] nan [Assessment] nan [Goal] nan [Plan] nan [Comment] * Dx # Atrial tachycardia * PMHx # Atrial tachycardia A 32 years old female patient with palpitation was admitted for radiofrequency catheter ablation. Atrial tachycardia was documented on electrocardiogram and was refractory to antiarrhythmic drugs. Echocardiography showed structurally normal heart (left ventricular ejection fraction 63%) without enlarged left atrium (anteroposterior diameter 33 mm). * Med Concor tab [5mg] 1.00 TAB PO DP 1회 100일 Tambocor tab [50mg] 1.00 TAB PO BP 2회 100일 * ECG 2021.1.15 sinus rhythm, hr 61 bpm, qrs 100ms * Image [ 20201023 - Transthoracic Echocardiography Report ] LVEF 63%, LA 33 mm Normal echocardiography * Lab 2021-01-29 WBC (Qn)[ChemR-I],Blood 6.5 x10³/uL 2021-01-29 Hb (Qn)[ChemR-I],Blood 13.6 g/dl 2021-01-29 Platelet (Qn)[ChemR-I],Blood 236 x10³/uL 2021-01-29 PT(INR) (Qn)[ChemR-I],Blood 0.91 INR 2021-01-29 (▼)Creatinine (Qn)[ChemR-I],Blood 0.65 mg/dL 2021-01-29 AST(SGOT) (Qn)[ChemR-I],Blood 21 IU/L 2021-01-29 ALT(SGPT) (Qn)[ChemR-I],Blood 14 IU/L * Plan AT-RFCA 심방세동 도자절제술에 대하여 설명함. - 성공율 60-70% - 재시술 30~40% - 시술시간 3-6 시간 - 국소마취, 진정제, 진통제 투여 - 보조 호흡 필요할 수 있음. - 합병증 (1-2%): 뇌졸중, 응급심장수술 가능성 심방-식도누공--> 발열, 뇌졸증, 객혈 등 증상 -> 사망가능성 장운동장애, 횡경막마비, 폐정맥 협착--> 호흡곤란 기타 합병증 - 시술 중 직류동율동전환--> 진정중이므로 치아 포함 구강 내 손상 [Progress Note 20210206] [Problem List] nan [Subjective] 괜찮아요 불편한 것 없습니다. [Objective] 혈압: 93/62 mmHg, 맥박: 55 회/min, 호흡: 16 회/min, 체온: 37.3 ℃, SPO2: 98 %, 2021-02-06 07:00:23 [Assessment] #1. Atrial tachycardia - s/p RFCA(2021.02.05) [Goal] nan [Plan] nan [Comment] nan """ real_discharge_3 = """ [Chief Complaint] Atrial tachycardia [Operation and Procedure] nan [Hospital Course] #1. Atrial tachycardia - s/p RFCA(2021.02.05) ================================== 2020.09.25 수개월 간격 palpitation 반복되어 본원 CV 외래 내원 Concor 5 + flec 50 bid 2021.01.15 AAD 복용중에도 증상 지속됨 2021.02.05 RFCA 시행함 2021.02.05 경과관찰 위해 입원 2021.02.06 특이합병증 없이 퇴원, Liquixia 5mg bid 한 달간 투약 예정함. * RFCA(radiofrequency catheter ablation) [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ inference3 = """ [Chief Complaint] for RFCA [Operation and Procedure] nan [Hospital Course] #1. Atrial tachycardia - s/p RFCA(2021.02.05) ====================================================== 상환 상기 질환으로 본원 CV f/u 하던 분으로 2021.02.05 RFCA 시행 후 입원함. 2021.02.06 급성 합병증 없이 퇴원함. [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ #Patient4 date4 = ['2020-04-21', '2020-04-22'] problem4 = ['nan', 'nan'] subjective4 = ['nan', '퇴원해요.'] objective4 = ["""nan""", """nan""", ] assessment4 = ["""nan""", """#1. HTN on med #2. PSVT s/p RFCA (2020.04.21)"""] goal4 = ['nan', 'nan'] plan4 = ['nan', 'nan'] comment4 = [""" * Dx paroxysaml supraventricular tachycardia * PMHx #. HTN A 47 years old male patient with palpitation was admitted for radiofrequency catheter ablation. Supraventricular tachycardia was documented on ECG(2018.12.18) and recurred continuously. Echocardiography showed structurally normal heart(left ventricular ejection fraction 73%)with enlarged left atrium (anteroposterior diameter 47mm) * Med 18.12.31 prn verapamil 180mg * ECG 18.12.18 PSVT, 153bpm, QRS 106ms 19.1.17 PSVT, 162bpm, QRS 100ms 19.1.25 PSVT, 172bpm, QRS 98ms 20.1.8 PSVT, 160bpm, 110ms* Image TTE(20.1.14) : LVEF 73%, LA 47mm, normal echocardiography * Plan PSVT 시술 과정 및 경과에 대해 설명함 10% 정도는 1)부정맥 유발안됨 2) 3D mapping 필요 부정맥 발생 3) 정상전도로 근처에서 발생하는 부정맥으로 인해 시술 불가한 경우가 있음. 시술 진행하게 될 경우 90% 성공 10% 재발 및 재시술 가능성 상처 부위 출혈 혈종 감염 정상 전도로 손상 -> PPM 기타 예기치못한 합병증 등으로 인한 응급 수술 및 사망 가능성등에 대해 설명함.""", 'nan'] progress_note_4 = """ [Progress Note 20200421] [Problem List] nan [Subjective] nan [Objective] nan [Assessment] nan [Goal] nan [Plan] nan [Comment] * Dx paroxysaml supraventricular tachycardia * PMHx #. HTN A 47 years old male patient with palpitation was admitted for radiofrequency catheter ablation. Supraventricular tachycardia was documented on ECG(2018.12.18) and recurred continuously. Echocardiography showed structurally normal heart(left ventricular ejection fraction 73%)with enlarged left atrium (anteroposterior diameter 47mm) * Med 18.12.31 prn verapamil 180mg * ECG 18.12.18 PSVT, 153bpm, QRS 106ms 19.1.17 PSVT, 162bpm, QRS 100ms 19.1.25 PSVT, 172bpm, QRS 98ms 20.1.8 PSVT, 160bpm, 110ms * Image TTE(20.1.14) : LVEF 73%, LA 47mm, normal echocardiography * Plan PSVT 시술 과정 및 경과에 대해 설명함 10% 정도는 1)부정맥 유발안됨 2) 3D mapping 필요 부정맥 발생 3) 정상전도로 근처에서 발생하는 부정맥으로 인해 시술 불가한 경우가 있음. 시술 진행하게 될 경우 90% 성공 10% 재발 및 재시술 가능성 상처 부위 출혈 혈종 감염 정상 전도로 손상 -> PPM 기타 예기치못한 합병증 등으로 인한 응급 수술 및 사망 가능성등에 대해 설명함. [Progress Note 20200422] [Problem List] nan [Subjective] 퇴원해요 [Objective] nan [Assessment] #1. HTN on med #2. PSVT s/p RFCA (2020.04.21) [Goal] nan [Plan] nan [Comment] nan """ real_discharge_4 = """ [Chief Complaint] palpitation [Operation and Procedure] nan [Hospital Course] ============================================== #1. HTN on med #2. PSVT s/p RFCA (2020.04.21) ============================================== 내원 4~5년 전부터 간헐적인 palpitation 있어 r/o PSVT로 진료받았던 기왕력 있는 분 2018.12 본원 응급실 진료 후 CV OPD f/u 하였고 PRN isoptin 180mg 처방 받아 증상 있을 때 복용해왔다고 함. 2020.01.08 40~50분 전 술 마시고 나오다가 palpitation, chest discomfort 발생하여 ER 내원하였고 initial ekg: SVT -> adenosine 6 -> 12mg 투약 후 sinus conversion prn isoptin 처방하여 CV OPD f/u 하기로 함. 2020.03.06 외래 방문하여 당일 시술후 입원하기로 함 2020.04.21 RFCA(radiofrequency catheter ablation) 시행 2020.04.22 시술 후 급성 합병증 없어 퇴원 [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planned discharge) """ inference4 = """ [Chief Complaint] for RFCA [Operation and Procedure] nan [Hospital Course] ================================================== #1. HTN on med #2. PSVT s/p RFCA (2020.04.21) ================================================== HTN으로 약물 복용중임. 2018년 12월 18일부터 간헐적으로 가슴두근거림(1시간 정도 지속) 경험. 가슴두근거림 동반되어 개인병원 내원하여 검사 시행함. EKG: PSVT(HR 153bpm) 소견으로 본원 진료 원해서 내원함. 2018년 12월 31일 RFCA 권유받았으나 시술 거부하여 prn verapamil 180mg 처방받아 복용함. 2019년 1월 8일부터 가슴두근거림의 빈도 증가하여 1주일에 2회 정도 경험. 1월 8일 가슴두근거림 발현되어 개인병원 내원하여 EKG: PSVT(HR 160bpm) 소견으로 본원 진료 원해서 내원함. 2019년 1월 25일 가슴두근거림 발현되어 개인병원 내원하여 EKG: PSVT(HR 172bpm) 소견으로 본원 진료 원해서 내원함. 2020년 1월 14일 TTE: EF 73%, LA 47mm, normal echocardiography 2020년 4월 21일 RFCA 시행 후 입원함. 2020년 4월 22일 급성합병증 없이 퇴원함. RFCA(radiofrequency catheter ablation) [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge)""" #Patient5 date5 = ['2020-02-02', '2020-02-03', '2020-02-04'] problem5 = ['nan', 'nan', 'nan'] subjective5 = ['수술은 하게되면 언제쯤 하나요', '집에 언제 가도 되나요?', '검사하고 퇴원하면 되죠'] objective5 = ["""체중: 53.9 kg, 2020-02-02 07:06:51 혈압: 115/82 mmHg, 맥박: 71 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-02 07:06:47""", """체중: 55.55 kg, 2020-02-03 07:38:45 혈압: 107/72 mmHg, 맥박: 67 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-03 16:45:0""", """체중: 55 kg, 2020-02-04 07:38:19 혈압: 111/75 mmHg, 맥박: 69 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-04 08:04:45 [2020-02-03] Transthoracic echocardiography (정밀) 1.Bicupsid aortic valve with moderate aortic stenosis 2.Ascending aorta aneurysm(54 mm) 3.Normal LV size and systolic function ;slightly increased transaortic valve Vmax and PG compared with the previous study(2019.11.12)""" ] assessment5 = ["""#1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN""", """#1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm""", """#1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN"""] goal5 = ['nan', 'nan', 'nan'] plan5 = ['nan', 'nan', 'nan'] comment5 = ["""nan""", 'nan', 'nan'] progress_note_5 = """ [Progress Note 20200202] [Problem List] nan [Subjective] 수술은 하게되면 언제쯤 하나요 [Objective] 체중: 53.9 kg, 2020-02-02 07:06:51 혈압: 115/82 mmHg, 맥박: 71 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-02 07:06:47 [Assessment] #1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN [Goal] nan [Plan] nan [Comment] nan [Progress Note 20200203] [Problem List] nan [Subjective] 집에 언제 가도 되나요? [Objective] 체중: 55.55 kg, 2020-02-03 07:38:45 혈압: 107/72 mmHg, 맥박: 67 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-03 16:45:07 [2020-02-01] MR,Brain & Head angiography (with enhance)(3.0T) Severe leukoaraiosis and multifocal old lacunes in both cerebral hemispheres. [ 20200203 - Transthoracic Echocardiography Report ] 1.Bicupsid aortic valve with moderate aortic stenosis 2.Ascending aorta aneurysm(54 mm) 3.Normal LV size and systolic function ;slightly increased transaortic valve Vmax and PG compared with the previous study(2019.11.12) [Assessment] #1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN [Goal] nan [Plan] nan [Comment] nan [Progress Note 20200204] [Problem List] nan [Subjective] 검사하고 퇴원하면 되죠 [Objective] 체중: 55 kg, 2020-02-04 07:38:19 혈압: 111/75 mmHg, 맥박: 69 회/min, 호흡: 18 회/min, 체온: 36.3 ℃, 2020-02-04 08:04:45 [2020-02-03] Transthoracic echocardiography (정밀) 1.Bicupsid aortic valve with moderate aortic stenosis 2.Ascending aorta aneurysm(54 mm) 3.Normal LV size and systolic function ;slightly increased transaortic valve Vmax and PG compared with the previous study(2019.11.12) [Assessment] #1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN [Goal] nan [Plan] nan [Comment] nan """ real_discharge_5 = """ [Chief Complaint] for op w/u [Operation and Procedure] nan [Hospital Course] ========================================================================== #1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN ========================================================================== 2018.10.11 타원에서 pleuritis로 입원하여 시행한 검사에서 aortic aneurysm 확인되어 f/e 위해 본원 내원함. Ascending aortic aneurysm : tubular portion 55mm, BAV with moderate AS 이후 정기적으로 opd 내원하며 약제 조절함. 2019.11.12 TTE : BAV with moderate AS, flow Vmax 3.4m/s, PG 46/28mmHg, AV area 0.86cm2 2020.02.01 op w/u 위해 입원함. Hospital course> 2020.02.01 MRA : severe leukoaraiosis and multifocal old lacunes in both cerebral hemispheres NR @ 동변배와 risk 같으며 혈압은 가능한 normotension으로 유지 필요 2020.02.03 11월 coronary CT 촬영하여 Aortic dissection CT 촬영 PFT > normal DNT > #16,17 대해 국소마취(1:10만 epi, lidocaine)하에 치아 발치 필요한 상태 -> 연고지 병원에서 진행 CS > 5.18 AVR, ascending aorta replacement 예정 2020.02.04 TEE 후 퇴원 ** BAV with moderate AS 및 Ascending aortic aneurysm 에 대하여 수술 w/u 후 퇴원하는 분으로 5.18 AVR, ascending aorta replacement 예정입니다 ** DNT > #16,17 대해 국소마취(1:10만 epi, lidocaine)하에 치아 발치 필요한 상태로 소견서 작성했습니다. [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ inference5 = """ [Chief Complaint] for w/u [Operation and Procedure] nan [Hospital Course] ================================================== #1. BAV with moderate AS #2. Ascending aortic aneurysm : tubular portion 55mm #3. HTN ================================================== [Brief history] 상환 상병으로 본원 CV f/u 중인 분으로 2019.11.12 시행한 TTE 에서 BAV with moderate AS 소견 보여 2020.01.31 수술 w/u 위해 입원함 [Hospital course] 2020.02.01 bMR 시행함 [ 검사일 : 2020.02.01 - 결과확정일: 2020.02.03 - MR,Brain & Head angiography (with enhance)(3.0T) ] Severe leukoaraiosis and multifocal old lacunes in both cerebral hemispheres. 2020.02.03 TTE, TEE 시행함 [ 20200203 - Transthoracic Echocardiography Report ] 1.Bicupsid aortic valve with moderate aortic stenosis 2.Ascending aorta aneurysm(54 mm) 3.Normal LV size and systolic function ;slightly increased transaortic valve Vmax and PG compared with the previous study(2019.11.12) [ 2020.02.03 - Transesophageal echocardiography ] Bicuspid aortic valve (coronary cusp fusion) with moderate AS Aortic annulus 29 mm 2020.02.04 w/u 마치고 퇴원함 [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge)""" #Patient6-dup5 date6 = ['2021-05-27', '2021-05-28', '2021-05-29'] problem6 = ['nan', 'nan', 'nan'] subjective6 = ['nan', '오늘 시술해요', '이상없어요'] objective6 = ['nan', """혈압: 112/74 mmHg, 맥박: 79 회/min, 호흡: 18 회/min, 체온: 36.6 ℃, SPO2: 98 %, 2021-05-28 11:05:38 [Intake] 총섭취량:50 ( Parenteral:50 )""", """혈압: 101/65 mmHg, 맥박: 90 회/min, 호흡: 16 회/min, 체온: 36.1 ℃, SPO2: 96 %, 2021-05-29 23:33:26 [Output] 총배설량:1 ( Stool:1 ) [2021-05-29] Transthoracic echocardiography (정밀)(Congenital) S/P ASD device closure(Figulla Flex 24 mm) 1.No remnant ASD shunt 2.Enlarged RV with normal RV function 3.Normal LV dimension with normal systolic function"""] assessment6 = ['nan', '[2021-05-28] CV 김대희 atrial septal defect device closure', '[2021-05-28] CV 김대희 atrial septal defect device closure'] goal6 = ['nan', 'nan', 'nan'] plan6 = ['nan', 'nan', 'nan'] comment6 = ["""* 동의서 수령 기록 위해 추가기록 함 과제번호: 2013-0246 연구명 : 심방 중격 결손증의 경피적 폐쇄술에서 3차원 경식도초음파 영상을 통한 폐쇄 기구 크기 측정의 유용성 (ASD registry) 임상시험대상자에게 위 연구에 대한 설명문 및 동의서(Version 5.0)를 자세히 설명 후 질문의 기회를 제공하고 모든 질문에 답변함. 시험대상자가 충분히 생각할 시간을 제공함. 시험대상자는 금일 (2021-05-27) 자발적으로 동의서에 서명함. 동의서 사본 1부를 시험대상자에게 제공함. """, 'nan', """nan"""] real_discharge_6 = """ [Chief Complaint] for ASD closure [Operation and Procedure] [2021-05-28] CV 김대희 atrial septal defect device closure [Hospital Course] #1. ASD #2. HTN #3. DM #4. HL #5. s/p cholecystectomy (2019.07.09) #6. s/p appendectomy (2019.07.09) #7. s/p TAH (2019.07.09) ====================================================== 상환 상병으로 본원 END, CV f/u 하던 분으로 2021.02.25 TTE상 ASD 소견으로 2021.05.27 ASD closure 위해 입원함 2021.05.28 ASD closure 시행함 2021.05.29 TTE상 remnant ASD shunt 없음 확인함 2021.05.30 퇴원함 [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ inference6 = """ [Chief Complaint] palpitation [Operation and Procedure] [2021-05-28] CV 김대희 atrial septal defect device closure [Hospital Course] #. ASD secondum ================ 상환 palpitation 있어 타원에서 시행한 TTE에서 ASD 발견되어 본원 내원함. 2021.04.09 TTE> 1.Secundum ASD with left to right shunt 2.Enlarged RV with normal RV function 3.Normal LV dimension and systolic function TEE> Secundum ovoid ASD with left to right shunt ; potential candidate for percutaneous device closure 상기 소견으로 ASD device closure 위해 입원함. Hospital course> 2021.05.28 ASD closure 시행 2021.05.29 TTE > 2021.05.30 시술 후 급성 합병증 없이 퇴원 [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ #Patient7-dup9 date7 = ['2020-04-16', '2020-04-17'] problem7 = ['nan', 'nan'] subjective7 = ["""기침약 어제 먹고 괜찮아졌어요. 항문쪽에 난 게 한 달 전부터 있었는데 더 커졌어요.""", '퇴원합니다'] objective7 = ['혈압: 100/63 mmHg, 맥박: 74 회/min, 호흡: 18 회/min, 체온: 36.8 ℃, 2020-04-16 08:01:33', '혈압: 96/66 mmHg, 맥박: 75 회/min, 호흡: 16 회/min, 체온: 36.8 ℃, 2020-04-17 09:06:03'] assessment7 = [""" #1. DCMP (EF 18%) s/p HTPL (2017/01/03) #2. h/o VF s/p ICD (2014/09) #3. Latent Tbc s/p INH prophylaxis (2016/11 - 2017/11) #4. DM """, """ #1. DCMP (EF 18%) s/p HTPL (2017/01/03) #2. h/o VF s/p ICD (2014/09) #3. Latent Tbc s/p INH prophylaxis (2016/11 - 2017/11) #4. DM """] goal7 = ['nan', 'nan'] plan7 = ['nan', 'nan'] comment7 = ['nan', 'nan'] real_discharge_7 = """ [Chief Complaint] for CAG IVUS [Operation and Procedure] nan [Hospital Course] ================================================================ #1. DCMP(dilated cardiomyopathy) (EF 18%) s/p HTPL(heart transplantation) (2017/01/03) #2. h/o VF s/p ICD (2014/09) #3. Latent Tbc s/p INH prophylaxis (2016/11 - 2017/11) #4. DM ================================================================ Brief History 상기환자 상병력으로 본원 CV, END f/u하시는 분으로 CV opd f/u하며 주기적으로 TTE 시행, tacrolimus 용량 조절하시는 분. last TTE : normal (2019.12.19) 2020.04.15 CAG, IVUS, TTE 시행 위해 입원함. Hospital Course 2020.04.15 HLA class Ⅰ,Ⅱ 에서 DSA 확인되지 않음. 2020.04.16 CAG, IVUS 시행함. pLAD stenosis, diffuse eccentric plaque thickness 1.27mm 확인되나 1년째 w/u 과 변화 없음. 2020.04.17 w/u 종료 후 퇴원함. ** DCMP s/p HTPL (2017.1.3) 로 본원 CV OPD f/u 중인 분으로 3년째 w/u 후 퇴원하였습니다. 면역억제제 tacrobell 0.75mg bid, cellcept 500-250mg bid 유지하고 퇴원합니다. perianal papules r/o wart, r/o skin tag에 대해 DER 진료 후 Aldara cream, esroban oint 투약 하였습니다. [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planned discharge) """ inference7 = """ [Chief Complaint] for w/u [Operation and Procedure] nan [Hospital Course] ================================================== #1. DCMP (EF 18%) s/p HTPL (2017/01/03) #2. h/o VF s/p ICD (2014/09) #3. Latent Tbc s/p INH prophylaxis (2016/11 - 2017/11) #4. DM ================================================== [Brief history] 상환 상병으로 본원 CV f/u 하던 분으로 2017.01.03 HTPL 시행하였고 2017.01.04 TTE : normal LV size and systolic function 이후 OPD f/u 하였고 2020.04.15 CAG, IVUS, TTE 위해 입원함. [Hospital course] 2020.04.16 CAG : normal CAG IVUS : max plaque thickness 0.8mm TTE : normal LV size and systolic function 2020.04.17 퇴원함. [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ #Patient8-dup13 date8 = ['2019-10-14', '2019-10-15', '2019-10-16'] problem8 = ['nan', 'nan', 'nan'] subjective8 = ['nan', 'nan', '퇴원해요'] objective8 = [""" 체중: 59.5 kg, 2019-10-14 05:55:43 혈압: 125/87 mmHg, 맥박: 52 회/min, 호흡: 18 회/min, 체온: 36.6 ℃, 2019-10-14 07:30:04 [2019-10-13] EKG Sinus bradycardia Nonspecific ST abnormality Abnormal ECG [2019-10-14] Transthoracic echocardiography (정밀) Normal echocardiography [2019-10-14] (외부자료-판독) CT,Abdomen & Pelvis 1. No unusual finding. [Assessment] #1. AF #2. HTN #3. Dyslipidemia """, """ 체중: 59.1 kg, 2019-10-15 06:28:36 혈압: 137/90 mmHg, 맥박: 61 회/min, 호흡: 18 회/min, 체온: 36.9 ℃, 2019-10-15 08:12:40 """, """ 체중: 59.1 kg, 2019-10-16 06:41:48 혈압: 122/81 mmHg, 맥박: 65 회/min, 호흡: 18 회/min, 체온: 36.5 ℃, 2019-10-16 07:39:50 [2019-10-14] CT,Coronary artery & Aortic dissection (with enhance) 1. Moderate stenosis with noncalcified plaque in mLAD. 2. Collapsed stomach with uneven enhancement, r/o gastritis. 3. A 0.9-cm nodular thickening of left adrenal gland. --> R/O adenoma or adrenal hyperplasia """] assessment8 = [""" #1. AF #2. HTN #3. Dyslipidemia """, """ #1. AF #2. HTN #3. Dyslipidemia """, """ #1. AF #2. HTN #3. Dyslipidemia """] goal8 = ['nan', 'nan', 'nan'] plan8 = ['nan', 'nan', 'nan'] comment8 = ['nan', 'nan', 'nan'] real_discharge_8 = """ [Chief Complaint] palpitation [Operation and Procedure] nan [Hospital Course] #1. AF --> Mx 후 현재는 NSR #2. HTN #3. Dyslipidemia #4. LAD moderate stenosis #5. R/O adenoma or adrenal hyperplasia #6. Gastritis ============================================================ 상기 환자 3년 전부터 palpitation 등의 증상 호소했던 분으로 타원에서 카나브 60, 콩코르 2.5, 엘리퀴스 5 bid, 리트모놈 SR 325 bid, 다이크로짓 0.5T, 리피토 10mg 투약 중이던 분임 2019년 들어 누우면 가슴 답답한 느낌 들었고 판막 역류라는 얘기 들었다고 함. 2019.08.02 본원 CV opd 내원하였고 w/u 위해 입원하기로 함. 2019.10.13 w/u 위해 입원함. [ 2019.10.10 - (외부자료-판독) CT,Abdomen & Pelvis ] 1. No unusual finding. [ 20191014 - Transthoracic Echocardiography Report ] Normal echocardiography [ 2019.10.15 - EGD (진정) ] Impression : Superficial gastritis Erosive gastritis Atrophic gastritis [ 2019.10.14 - CT,Coronary artery & Aortic dissection (with enhance) ] 1. Moderate stenosis with noncalcified plaque in mLAD. 2. Collapsed stomach with uneven enhancement, r/o gastritis. 3. A 0.9-cm nodular thickening of left adrenal gland. --> R/O adenoma or adrenal hyperplasia [ 2019.10.15 - 24hrs holter monitoring ] Basically normal sinus rhythm Some PACs (4% of total QRS complexes) short run of atrial tachycardia (up to 7 beats at 106 bpm) [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ inference8 = """ [Chief Complaint] for RFCA [Operation and Procedure] nan [Hospital Course] ================================================== #1. AF #2. HTN #3. Dyslipidemia ================================================== [Brief history] 상기환자 2019.08.01 AF로 본원 CV opd 내원 2019.10.13 RFCA 위해 입원함 [Hospital course] 2019.10.14 RFCA 시행함 2019.10.15 시술 후 급성 합병증 없이 퇴원함 [Checklist] 외부 CT, coronary artery & aortic dissection (with enhance) 결과 확인 후 adrenal gland nodular thickening에 대해 URO opd f/u 예정입니다. [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ #Patient9-dup31 date9 = ['2021-10-29', '2021-10-30'] problem9 = ['nan', 'nan'] subjective9 = ['괜찮아요', '괜찮아요'] objective9 = ["""체중: 72.12 kg, 혈압: 116/69 mmHg, 맥박: 76 회/min, 호흡: 14 회/min, 체온: 36.5 ℃""", """체중: 72.12 kg, 혈압: 116/69 mmHg, 맥박: 76 회/min, 호흡: 14 회/min, 체온: 36.5 ℃"""] assessment9 = ["""#1. DM ESRD(end stage renal disease) s/p LDKT(2018.02.21) #2. T2 DM(1998), # DM foot, Lt 5th toe s/p debridement and integra apply(2021.06.21) s/p PTA(2021.10? 타원) # DM foot Rt #3. DM retinopathy B) PDR s/p PRP L) DMVH s/p PPV (2017.03, 일산병원) r/o functional NLDO #4. HTN(hypertension) #5. hyperlipidemia # current smoker""", """#1. DM ESRD(end stage renal disease) s/p LDKT(2018.02.21) #2. T2 DM(1998), # DM foot, Lt 5th toe s/p debridement and integra apply(2021.06.21) s/p PTA(2021.10? 타원) # DM foot Rt #3. DM retinopathy B) PDR s/p PRP L) DMVH s/p PPV (2017.03, 일산병원) r/o functional NLDO #4. HTN(hypertension) #5. hyperlipidemia # current smoker"""] goal9 = ['nan', 'nan'] plan9 = ['nan', 'nan'] comment9 = ['nan', 'nan'] real_discharge_9 = """ [Chief Complaint] for PTA [Operation and Procedure] nan [Hospital Course] #1. DM ESRD(end stage renal disease) s/p LDKT(2018.02.21) #2. T2 DM(1998), # DM foot, Lt 5th toe s/p debridement and integra apply(2021.06.21) s/p PTA(2021.10? 타원) # DM foot Rt #3. DM retinopathy B) PDR s/p PRP L) DMVH s/p PPV (2017.03, 일산병원) r/o functional NLDO #4. HTN(hypertension) #5. hyperlipidemia # current smoker --------------------------------------------------------------------------------------------------------------------- M/61y 상환 상병 있는 분으로 DM ESRD 로 KT 받은 적 있는 분. 2021.06.21 DM foot, Lt 5th toe 로 PS에서 debridement and integra apply 후 퇴원한적 있으며 이후 opd f/u하며 타원에서 산소치료 받았으나 wound healing 잘 되지 않음 이에 9월 경 Lt. PTA 시행하였으나 pedal artery calcification 심하며 잘 되지 않았다고 함. 2021.10.28 이에 PAOD management위해 빠른 자리로 입원함. PTA 시행 및 CV 전과함 < DM foot > Rt. 1st and 5th toe, ischemic change td (+), color change : demarkation (both toe), discharge (), odor () DP pulse poor, 양측 발 차가움. Lt. 5th toe ischemic change 2021.10.28-30 PAOD, Rt 에대해 Rt.PTA Rt.PA Rt.ATA~DPA POBA 시행 Aspirin Xarelto 유지하며 퇴원. [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ inference9 = """ [Chief Complaint] for w/u [Operation and Procedure] nan [Hospital Course] #1. DM ESRD(end stage renal disease) s/p LDKT(2018.02.21) #2. T2 DM(1998), # DM foot, Lt 5th toe s/p debridement and integra apply(2021.06.21) s/p PTA(2021.10? 타원) # DM foot Rt #3. DM retinopathy B) PDR s/p PRP L) DMVH s/p PPV (2017.03, 일산병원) r/o functional NLDO #4. HTN(hypertension) #5. hyperlipidemia # current smoker ============================================== 상환 상기 질환으로 본원 CV, END, NPH f/u 중인 분으로 2021.10.28 3년 뒤 f/u 위해 입원함 2021.10.29 CAG 시행하였고 1VD 확인됨 2021.10.30 퇴원함 [Condition at Discharge] 호전됨 [Type of Discharge] 지시 퇴원 """ #Patient10-dup19 date10 = ['2019-06-06', '2019-06-08'] problem10 = ['nan', 'nan'] subjective10 = ['nan', '오늘 퇴원해요'] objective10 = [""" Normal ventricular chamber size and wall thickeness Akinetic motion of mid-basal posterior wall and mildly decreased LV contraction (LVEF ≒ 50%) normal valvular morphology and function no pericardial effusion F1. 정영진 """, """ 체중: 81.85 kg, 2019-06-08 07:15:02 [ 2019.06.06 - Coronary angiography (2nd vessel-) ] * Date : 20190606 * Operator 1 : 강도윤 * Assist 1 : 김태오 Assist 2 : 정영진 * Nurse : 이현진 * Technician 1 : 임재윤 Coronary Angiogram * Femoral, Rt. artery puncture후에 (7) Fr sheath를 삽입한 후 CAG & PCI 을 시행함. Coronary anatomy Seg DS Lesion Type Lesion Length Description ------------------------------------------------------------------------------------------------- dLCX 99 C Subtotal ------------------------------------------------------------------------------------------------- Catheter Vessel Name # Fr. Cath Memo ---------------------------------------------------------------------------------------------- Left coronary JL 4 6 diagnostic catheter ---------------------------------------------------------------------------------------------- Right coronary JR 4 7 guiding catheter ---------------------------------------------------------------------------------------------- Coronary angiographic findings : 1 vessel disease Rec ) PCI PCI * Lesion (dLCX) * Guiding Catheter : JL 4 7Fr guiding catheter Side Hole * PTCA guide wire Device Use Name 1 Name 2 ---------------------------------------------------------------------------------- Guide wire ASAHI Sion ---------------------------------------------------------------------------------- * PCI device Device Use Primary Device Name Size Leng Pr Dia ------------------------------------------------------------------------------------------------------ Balloon Pre-dilatation Emerge 2.5 15 6 2.5 ------------------------------------------------------------------------------------------------------ DEB SeQuent Please 2.5 26 7 2.5 ------------------------------------------------------------------------------------------------------ PCI Complication Data Successful ( DEB ) at ( dLCX ) * Final Residual Stenosis : < 10 TFG : 3 Successful PCI """] assessment10 = ['nan',"""#1. STEMI s/p POBA to dLCx (2019.6.6)"""] goal10 = ['nan', 'nan'] plan10 = ['nan', 'Discharge : 2019-06-08'] comment10 = ['nan', 'nan'] real_discharge_10 = """ [Chief Complaint] chest pain (onset : 2HA) [Operation and Procedure] nan [Hospital Course] #1. STEMI s/p POBA to dLCx (2019.6.6) ==================================================================== 이전 10PY smoking history 외 앓고 있는 병 없음. 내원 1일 전 7pm 경 벽돌 나르는 일 하던 중 mid-sternum으로의 조이는 양상의 흉통 있었음. 증상 약 5분 있었고 쉰 후에 곧 호전되어 경과관찰 하였음. 금일 오전 6am 경 식사 후 길을 건는데 mid-sternum area로의 쥐어짜는, 짓누르는 양상의 chest pain, NRS 10 점 있으며 Lt. arm tingling sense 및 diaphoresis 동반됨. 쉬면서 통증 다소 호전되긴 하였으나 NRS 3~4 점 정도의 통증 지속되어 응급실 내원함. STEMI 확인되어 CAG 시행, POBA 시행 후 CCU 입실함. 2019.06.07 경과 양호하여 GW 전동. 2019.6.8 퇴원함 심장재활 원하지 않아 d/c 하였습니다 [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ inference10 = """ [Chief Complaint] chest pain [Operation and Procedure] nan [Hospital Course] #1. STEMI s/p POBA to dLCx (2019.6.6) ================================================= 2019.6.5 10:30am chest pain 발생하여 ER 내원함. EKG 상 V2-4 STE 확인됨. STEMI로 입원하여 PCI 시행함. 2019.6.6 dLCx에 POBA 시행함. 2019.6.8 급성 합병증 없이 퇴원함. [Condition at Discharge] 호전됨(improved) [Type of Discharge] 지시 퇴원(planed discharge) """ def btn1_click_1(): return progress_note_1 def btn2_click_1(): return real_discharge_1 def btn3_click_1(): return inference1 def btn1_click_2(): return progress_note_2 def btn2_click_2(): return real_discharge_2 def btn3_click_2(): return inference2 def btn1_click_3(): return progress_note_3 def btn2_click_3(): return real_discharge_3 def btn3_click_3(): return inference3 def btn1_click_4(): return progress_note_4 def btn2_click_4(): return real_discharge_4 def btn3_click_4(): return inference4 def btn1_click_5(): return progress_note_5 def btn2_click_5(): return real_discharge_5 def btn3_click_5(): return inference5 def btn1_click_6(): return progress_note_6 def btn2_click_6(): return real_discharge_6 def btn3_click_6(): return inference6 def btn1_click_7(): return progress_note_7 def btn2_click_7(): return real_discharge_7 def btn3_click_7(): return inference7 def btn1_click_8(): return progress_note_8 def btn2_click_8(): return real_discharge_8 def btn3_click_8(): return inference8 def btn1_click_9(): return progress_note_9 def btn2_click_9(): return real_discharge_9 def btn3_click_9(): return inference9 def btn1_click_10(): return progress_note_10 def btn2_click_10(): return real_discharge_10 def btn3_click_10(): return inference10 import gradio as gr import pandas as pd from datetime import datetime def create_progress_note1() : return pd.DataFrame({ 'Date' : date1, 'Problem List' : problem1, 'Subjective' : subjective1, 'Objective' : objective1, 'Assessment' : assessment1, 'Goal' : goal1, 'Plan' : plan1, 'Comment' : comment1 }) def create_progress_note2() : return pd.DataFrame({ 'Date' : date2, 'Problem List' : problem2, 'Subjective' : subjective2, 'Objective' : objective2, 'Assessment' : assessment2, 'Goal' : goal2, 'Plan' : plan2, 'Comment' : comment2 }) def create_progress_note3() : return pd.DataFrame({ 'Date' : date3, 'Problem List' : problem3, 'Subjective' : subjective3, 'Objective' : objective3, 'Assessment' : assessment3, 'Goal' : goal3, 'Plan' : plan3, 'Comment' : comment3 }) def create_progress_note4() : return pd.DataFrame({ 'Date' : date4, 'Problem List' : problem4, 'Subjective' : subjective4, 'Objective' : objective4, 'Assessment' : assessment4, 'Goal' : goal4, 'Plan' : plan4, 'Comment' : comment4 }) def create_progress_note5() : return pd.DataFrame({ 'Date' : date5, 'Problem List' : problem5, 'Subjective' : subjective5, 'Objective' : objective5, 'Assessment' : assessment5, 'Goal' : goal5, 'Plan' : plan5, 'Comment' : comment5 }) def create_progress_note6() : return pd.DataFrame({ 'Date' : date6, 'Problem List' : problem6, 'Subjective' : subjective6, 'Objective' : objective6, 'Assessment' : assessment6, 'Goal' : goal6, 'Plan' : plan6, 'Comment' : comment6 }) def create_progress_note7() : return pd.DataFrame({ 'Date' : date7, 'Problem List' : problem7, 'Subjective' : subjective7, 'Objective' : objective7, 'Assessment' : assessment7, 'Goal' : goal7, 'Plan' : plan7, 'Comment' : comment7 }) def create_progress_note8() : return pd.DataFrame({ 'Date' : date8, 'Problem List' : problem8, 'Subjective' : subjective8, 'Objective' : objective8, 'Assessment' : assessment8, 'Goal' : goal8, 'Plan' : plan8, 'Comment' : comment8 }) def create_progress_note9() : return pd.DataFrame({ 'Date' : date9, 'Problem List' : problem9, 'Subjective' : subjective9, 'Objective' : objective9, 'Assessment' : assessment9, 'Goal' : goal9, 'Plan' : plan9, 'Comment' : comment9 }) def create_progress_note10() : return pd.DataFrame({ 'Date' : date10, 'Problem List' : problem10, 'Subjective' : subjective10, 'Objective' : objective10, 'Assessment' : assessment10, 'Goal' : goal10, 'Plan' : plan10, 'Comment' : comment10 }) def generate_discharge_note1(): # This function would implement the actual dataset generation logic return inference1 def generate_discharge_note2(): # This function would implement the actual dataset generation logic return inference2 def generate_discharge_note3(): # This function would implement the actual dataset generation logic return inference3 def generate_discharge_note4(): # This function would implement the actual dataset generation logic return inference4 def generate_discharge_note5(): # This function would implement the actual dataset generation logic return inference5 def generate_discharge_note6(): # This function would implement the actual dataset generation logic return inference6 def generate_discharge_note7(): # This function would implement the actual dataset generation logic return inference7 def generate_discharge_note8(): # This function would implement the actual dataset generation logic return inference8 def generate_discharge_note9(): # This function would implement the actual dataset generation logic return inference9 def generate_discharge_note10(): # This function would implement the actual dataset generation logic return inference10 def create_interface(): # Create sample data progress_note1 = create_progress_note1() progress_note2 = create_progress_note2() progress_note3 = create_progress_note3() progress_note4 = create_progress_note4() progress_note5 = create_progress_note5() progress_note6 = create_progress_note6() progress_note7 = create_progress_note7() progress_note8 = create_progress_note8() progress_note9 = create_progress_note9() progress_note10 = create_progress_note10() with gr.Blocks(title="Enhancing Clinical Efficiency through LLM:Discharge Note Generation for Cardiac Patients") as app: gr.Markdown(""" # Enhancing Clinical Efficiency through LLM:Discharge Note Generation for Cardiac Patients ### Generate the Discharge Note for Cardiac Patients using LLM Base Model : [unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit) """) with gr.Tabs(): with gr.Tab("Patient 1"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note1, headers=list(progress_note1.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_1, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_1, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_1, outputs=output3) with gr.Tab("Patient 2"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note2, headers=list(progress_note2.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_2, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_2, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_2, outputs=output3) with gr.Tab("Patient 3"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note3, headers=list(progress_note3.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_3, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_3, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_3, outputs=output3) with gr.Tab("Patient 4"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note4, headers=list(progress_note4.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_4, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_4, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_4, outputs=output3) with gr.Tab("Patient 5"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note5, headers=list(progress_note5.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_5, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_5, outputs=output3) with gr.Tab("Patient 6"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note6, headers=list(progress_note6.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_6, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_6, outputs=output3) with gr.Tab("Patient 7"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note7, headers=list(progress_note7.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_7, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_7, outputs=output3) with gr.Tab("Patient 8"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note8, headers=list(progress_note8.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_8, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_8, outputs=output3) with gr.Tab("Patient 9"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note9, headers=list(progress_note9.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_9, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_9, outputs=output3) with gr.Tab("Patient 10"): with gr.Column(): gr.Markdown("#### Progress note") gr.DataFrame( progress_note10, headers=list(progress_note10.columns), wrap=True ) with gr.Row(): # 첫 번째 열 # with gr.Column(): # btn1 = gr.Button(value="Generate the Progress Note") # output1 = gr.Textbox(label="Whole Progress Note") # btn1.click(fn=btn1_click_5, outputs=output1) # 두 번째 열 with gr.Column(): btn2 = gr.Button(value="Real Discharge Note") output2 = gr.Textbox(label="Real Discharge Note") btn2.click(fn=btn2_click_10, outputs=output2) # 세 번째 열 with gr.Column(): btn3 = gr.Button(value="Generate the Discharge Note") output3 = gr.Textbox(label="Generated Discharge Note") btn3.click(fn=btn3_click_10, outputs=output3) return app # Create and launch the interface demo = create_interface() if __name__ == "__main__": demo.launch()