hyoje's picture
Update app.py
9045d8c verified
#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 = ["""
<Pre-EP note>
* 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]
<Pre-EP note>
* 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 = ["""<Pre-EP note>
* 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]
<Pre-EP note>
* 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 = ["""
<Bed side echo>
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()