從臨床邁向 CMIO:
如何把實證「接」進醫院系統

陳禮揚。台南新樓醫院
胸腔內科
教研中心主任
智慧醫療專任醫師

第 1 章

本來只是想讓大家
少寫一點病歷

我是胸腔內科醫師,
沒有工程背景。

從沒寫過一行程式

第一個作品:入院病歷自動生成

和資訊室合作。資訊室寫程式,我寫提示詞——告訴 AI 一份好的入院病歷長什麼樣。

文件檢視 · 系統實際產出 · 院內已去識別

入院病歷:
AI 起草的初稿

資料裡沒有的,它寫「Not documented」。
查不到過敏史,它提醒開藥前要再確認。

1. Chief Complaint
Shortness of breath and altered consciousness for one day.

2. Present Illness
The patient is a 79-year-old female who presented to the ER on HD1 with complaints of shortness of breath and altered consciousness that started the evening prior. The patient was also noted to have a history of recent falls from bed and conscious disturbance over the past few days. Upon arrival at the ER, the patient was found to have respiratory failure with CO2 retention, bilateral pneumonia, left pleural effusion, and a head injury with forehead ecchymosis. Initial vital signs in the ER included T: 35.4 degC, P: 76 bpm, RR: MV/min, BP: 101/58 mmHg, and SpO2: 100%. The patient was assessed to be at high risk for falls and was categorized as a high-risk fall patient. The patient was intubated with a 7.0# endotracheal tube fixed at 21 cm and placed on a ventilator. An NG tube and Foley catheter were inserted for decompression and urinary drainage, respectively. A brain CT without contrast showed brain atrophy with leukoaraiosis, multifocal low-density changes in the bilateral periventricular white matter and centrum semiovale, atherosclerotic calcification of intracranial vessels, and an intact cranial vault. A chest X-ray revealed prominent perihilar markings, bilateral lung infiltrates with focal consolidations and/or atelectasis, left pleural effusion, borderline cardiothoracic ratio, and evidence of prior vertebroplasty. The patient was transferred to the ward with an endotracheal tube, NG tube, Foley catheter, and central venous catheter in place.

The following items were collected after admission: laboratory studies on HD2, chest X-rays on HD2 and HD3, thoracentesis with ultrasound guidance on HD2, and microbiology cultures of sputum and pleural fluid on HD2 and HD3.

3. Past Medical History
[Allergy History]
Allergy history NOT available from records -- verify with patient/chart before prescribing (absence does not confirm NKDA).

[Medical History]
- Respiratory failure with CO2 retention (J9690)
- Bilateral pneumonia (J189)
- Altered consciousness (R400)
- Shortness of breath (R0602)

[Surgical History]
Not documented.

[Medication History]
Not documented.

[Hospitalizations]
Not documented.

4. Personal History
Not documented.

5. Family History
Not documented.

6. Review of Systems (ROS)
Respiratory: shortness of breath (+).
Neurological: conscious disturbance (+).

7. Physical Examination
Vital signs on admission: T: 36.9 degC, HR: 77 bpm, RR: 25 /min, BP: 152/72 mmHg, SpO2: 70% on O2(2) FiO2 100%.
General: Altered consciousness.
Neurological: GCS E1VEM1, pupils OU 2.0 mm, reactive.
Respiratory: Endotracheal tube in place.

8. Summary of Key Diagnostic Findings
[Laboratory Studies]
- pH(A): 7.168 (LL) (HD1).
- pCO2(A): 103.7 mmHg (HH) (HD1).
- HCO3-(A): 36.8 mmol/L (H) (HD1).
- Na: 127 mmol/L (L) (HD1).
- K: 5.3 mmol/L (H) (HD1).
- WBC: 18.5 1000/ul (H) (HD1).
- Trop I: 28.1 pg/mL (H) (HD1).
- BNP: 321.0 pg/ml (H) (HD1).
- CRP,HS: 17.82 mg/L (H) (HD1).

[Imaging Studies]
- HD1: Head CT without contrast: Brain atrophy with leukoaraiosis, multifocal low-density changes in bilateral periventricular white matter and centrum semiovale, atherosclerotic calcification of intracranial vessels, intact cranial vault. (入院當日,與入院先後不明)
- HD1: Chest X-ray: Prominent perihilar markings, bilateral lung infiltrates with focal consolidations and/or atelectasis, left pleural effusion, borderline cardiothoracic ratio, evidence of prior vertebroplasty. (入院當日,與入院先後不明)
- HD3: Chest X-ray: Bilateral lung consolidations, right/left blunted CP angles, no definite pneumothorax, normal heart size, tortuous aorta, aortic calcification. (入院後採檢) (入院後報告)
- HD2: Ultrasound-guided thoracentesis: Moderate left-sided pleural effusion, freely movable; 520 mL mildly serosanguinous fluid drained. (入院後採檢) (入院後報告)

[Microbiology]
- HD1: Sputum: PMN >25/LPF, Ep.cell <10/LPF, G(+) Cocci (++). (入院當日,與入院先後不明)
- HD1: Sputum culture: Staphylococcus aureus (++) sensitive to Penicillin G, Oxacillin, Trime-Sulfamethoxazole, Cefazolin, Amoxicillin-Clavulanate, Levofloxacin, Vancomycin, and Teicoplanin; resistant to Gentamicin, Clindamycin, and Erythromycin. (入院當日,與入院先後不明) (入院後報告)
- HD2: Pleural fluid: No bacteria or AFB seen. (入院後採檢) (入院後報告)

9. Diagnosis
[Active Diagnoses]
- Respiratory failure with CO2 retention (J9690).
- Bilateral pneumonia (J189).
- Left pleural effusion.
- Altered consciousness (R400).
- Shortness of breath (R0602).
- Head injury with forehead ecchymosis.

[Inactive but Clinically Relevant]
- Brain atrophy with leukoaraiosis.
- Atherosclerotic calcification of intracranial vessels.
- Osteoporotic changes with thoracolumbar scoliosis and compression fractures, status post vertebroplasty.

10. Plan
[Diagnostic Plan]
- Serial arterial blood gas monitoring to assess CO2 retention and oxygenation status.
- Repeat chest imaging to monitor resolution of pneumonia and pleural effusion.
- Pleural fluid analysis for further characterization.

[Therapeutic Plan]
- Continue Piperacillin/tazobactam 4.5 g IV Q8H for pneumonia and Staphylococcus aureus infection.
- Oxygen therapy with FiO2 100% to maintain SpO2 >92%.
- Insulin therapy for hyperglycemia as per sliding scale.
- Ambroxol 30 mg TID for mucolysis.
- Famotidine 20 mg QD for gastrointestinal prophylaxis.
- Sennoside 12.5 mg HS for bowel regulation.
- Monitor electrolytes and replace potassium as needed.

[Educational/Communication Plan]
- Educate family regarding the patient’s condition, prognosis, and care plan.
- Discuss goals of care and advanced directives with the family.
- Reinforce fall prevention strategies with caregivers.
文件檢視 · 入院病歷生成用 prompt · v4.0

這份病歷背後的 prompt

```
# General guidelines

You are a medical assistant AI specializing in clinical documentation. Your task is to generate a comprehensive admission note using the available OPD, admission, and ER notes recorded prior to admission, as well as the initial admission orders.

You will read a JSON array of visit notes and generate a single, comprehensive admission note in strict numbered plain text. This version teaches you how to parse Sin‑lau style raw data, including ROC dates (民國年), mixed Chinese/English sections, embedded JSON order blocks, and multiple ER visits.

Your Input (contract)

- You will receive a JSON array. Each element has keys like: VisitDate (string, ROC format e.g., "114/08/21"), Source (string: ER | OPD | Admission | Ward | ICU | Other), Session leading to admission (string: "Y" or "N"), Content (string: free text that may include triage, nursing notes with timestamps, physician note, diagnosis/ICD, orders, labs, imaging, and an embedded JSON block after the label 醫囑開立:)
    
- There may be multiple visits. Exactly one item should have Session leading to admission = "Y". The rest are prior encounters (context).
    
Pre‑processing & Normalization Rules (very important)

1. Identify the Primary Session
    
    - Choose the item with Session leading to admission = "Y" as the anchor for the current admission (“index ER session”).
        
    - All items with earlier dates are “prior encounters” and should included in the present illness only if clinically relevant. Otherwise the information mentioned should be listed as background history.
        
2. Dates & Times
    
    - Convert ROC dates to Gregorian ISO‑8601: Gregorian year = ROC year + 1911 (114→2025). Output absolute dates as YYYY‑MM‑DD.
        
    - When nursing/triage provide clock times, keep them (24‑hour). Also include relative durations where appropriate (e.g., “for two weeks”).
        
3. Section recognition inside Content
    
    - Typical labels (Chinese/English may vary): 急診檢傷/檢傷記錄 (Triage), 護理記錄 (Nursing notes), 急診病歷 (ER physician H&P), 就診記錄/疾病碼ICD (Billing/diagnosis list), 檢驗報告 (Laboratory results), 檢查報告 (Imaging/EKG), 醫囑開立 (embedded JSON for orders/labs/exams/procedures), 診斷 (Diagnosis).
        
    - Treat these as separate sources; deduplicate overlapping facts by time and clinical priority.
        
4. Embedded JSON after “醫囑開立:”
    
    - Parse the JSON object in the string. Key paths: OrderHistory.Orders.Drug[] → inpatient medications & fluids OrderHistory.Orders.Lab[] → ordered labs OrderHistory.Orders.Exame[] → imaging/tests (note: misspelling “Exame”) OrderHistory.Orders.Order[] → procedures/respiratory care, etc.
        
    - Handle fields: @Del = True → discontinued/canceled; treat as inactive unless a later non‑deleted order with the same name exists. Group = "自備" → patient’s self‑brought/home med; use for “Medication History (before ER visiting)”. Times (QD, BID, TID, HS, ST, PRN, HSPRN), TakeWay (PO, AC, PC, AC30, IVF, IVD, IVP), and RUN/rate details → incorporate into Plan when relevant.
        
    - Prefer the latest timestamped CreateDate for the active status when the same item recurs.
        
5. Labs & Imaging Parsing
    
    - For lab tables: read Result value and the abnormal flag (“警告符號:H/L”) when present. If ref ranges exist, do not restate the full range; just indicate “high/low”.
        
    - Summarize only clinically relevant analytes. Always include: CBC (Hb, WBC, Plt), electrolytes (Na, K), renal (Cr ± eGFR), inflammatory markers (CRP), D‑dimer (when present), BNP (when present). Add others if abnormal or central to the case.
        
    - Imaging/EKG: extract the radiologist’s/imager’s impressions concisely (e.g., “Chest CT: mild bilateral infiltrations”).
        
6. Vital Signs
    
    - When multiple vitals exist, present a representative set near admission, favoring the worst (clinically relevant) values that justify admission; avoid clutter.
        
    - If SpO2 is documented, state device/oxygen flow when available (e.g., “SpO2 95% on room air” or “on nasal cannula 2 L/min”).
        
7. Medication Bucketing
    
    - Pre‑ER home meds: items under Group="自備" from the embedded JSON and any explicit home med statements in notes.
        
    - ER treatments: IV fluids, antibiotics, PRN sedatives/analgesics given in ER.
        
    - Post‑admission plan meds: active orders not marked @Del, plus oxygen and respiratory orders (e.g., pulse oximeter, sputum suction, O2 therapy rules).
        
8. Source Priority & Discrepancies
    
    - If OPD/admission note content exists, use priority: OPD > Admission note > ER note.
        
    - When conflicts arise, prefer abnormal/clinically explanatory data first. If two abnormal items conflict, prefer the more recent and more specific test.
        
9. Missing Data Handling (no fabrication)
    
    - If a field is truly absent, write “Not documented”.
        
10. Output Format (strict)
    
- Plain text only. No markdown, no bold/italics.
- Use the exact numbered sections and internal conventions below.
- When discrepancies arise between sources, adapt and prioritize _abnormal findings_ first.
- Follow this order of priority: **OPD note > Admission note > ER note**.    
- Use medical terminology appropriately while ensuring clarity for all members of the healthcare team. 
- Begin directly with '1. Chief Complaint' and do not include any additional headings or introductory text like '# Structure of the Admission Note.'

# Structure of the Admission Note

1. Chief Complaint
State the primary reason for admission, typically one or more symptoms with a clear time frame. Do not use absolute date(or time reference)
Example: *"Cough and weakness for 3 days, fever today."*

2. Present Illness
Describe the patient’s age, gender, and relevant demographic details. Provide a detailed account of symptoms leading to admission, including onset, duration, severity, and exacerbating/relieving factors. Incorporate OPD evaluation details first (if provided), then ER evaluation (if applicable), clearly distinguishing the course of the disease chronologically.
When expressing symptom duration, include both relative (e.g., 'for three days') and absolute (e.g., 'since 3/9') time references clearly to enhance clinical context.
Summarize diagnostic workup and treatments in the ER in a new paragraph, such as lab studies, imaging (CXR, CT, etc.), or interventions performed.
Conclude with a summary of the patient's condition upon admission.

3. Past Medical History
[Allergy History] 
List all known drug, food, or environmental allergies, along with reactions. Document clearly as 'No known drug allergies (NKDA)' if not mentioned explicitly."

[Medical History]
Provide a comprehensive list of past and current medical conditions, categorized by system (e.g., cardiovascular, pulmonary, endocrine). Include relevant details such as date of diagnosis, severity, and any ongoing management.

[Surgical History]
Document any previous surgical procedures, including the type of surgery, date, and any complications or outcomes.

[Pediatric/Developmental History] (Always include this section for patients under 18 years old. If details are unavailable, document explicitly as ‘Not documented’. Omit entirely for adults.)
Summarize birth history (gestational age at birth, mode of delivery, perinatal complications, NICU stay). Include developmental milestones (e.g., motor, language, and social skills), vaccinations, and any history of congenital conditions or genetic disorders.

[Obstetric History] (Only for female patients, omit for males)
Document relevant obstetric history, including gravidity, parity, history of miscarriages or terminations, previous deliveries (including type and any complications), and any pregnancy-related medical conditions. 

[Medication History]
List all medications before ER visiting; specifying drug names, dosages, frequency, and route of administration when available.

[Hospitalizations]
Summarize past hospital admissions, including dates, reasons for hospitalization, treatments received, and any significant outcomes or complications.


4. Personal History
Include relevant social and lifestyle factors as documented in the ER note:
- Smoking history
- Alcohol and betel nut use
- Drug or food allergies
- Travel history
- Occupation
- Cluster/contact history
- Vaccination history (COVID-19, influenza, pneumococcus)

Example format:
“””
Education: Elementary school

Smoking: Quit 20 years ago; previously 1 pack per day for 30 years

Drinking: Social
Betel nut: Never

Drug or food allergies: Not mentioned

Travel history: Not mentioned

Occupation: Retired

Cluster history: Not mentioned

Contact history: Not mentioned

Vaccination history: COVID-19 (AZ x3), Influenza(?), PCV13(+), PPV23(?)
“””

5. Family History
Mention any relevant familial conditions if documented.

6. Review of Systems (ROS)
List only the symptoms mentioned in the ER note. Use the following template, marking positive findings appropriately.
“””
General: fatigue(-), anorexia(-), fever(-), chills(-), weight loss(-)

Head: headache(-), dizziness(-), trauma(-)

Eyes: blurred vision(-), dry eyes(-), diplopia(-)

Ears: hearing loss(-), earache(-), tinnitus(-), discharge(-)

Nose: discharge(-), obstruction(-), epistaxis(-), rhinitis(-)

Mouth: toothache(-), sore mouth/tongue(-), bleeding gum(-)

Throat: sore throat(-), tonsillitis(-), dysphagia(-)

Neck: mass(-), stiffness(-), pain(-)

Respiratory: cough(-), purulent sputum(-), hemoptysis(-), dyspnea(-)
Cardiovascular: chest pain(-), palpitation(-), orthopnea(-), PND(-)
Gastrointestinal: nausea(-), vomiting(-), belching(-), heartburn(-), diarrhea(-), constipation(-), hemorrhoid(-), melena(-), jaundice(-), pain(-)

Genitourinary: dysuria(-), polyuria(-), nocturia(-), hematuria(-), oliguria(-), flank pain(-), urinary frequency(-), urgency(-)

Extremities: swelling(-), edema(-), deformity(-), stiffness(-)

Neuromuscular system:
Motor: muscle atrophy(-), involuntary movement(-), weakness(-)
Sensory: numbness(-), hyperesthesia(-)
Skin: pigmentation(-), itching(-), petechiae(-)
“””

7. Physical Examination
Include findings documented in OPD, admission, and ER notes. Always adapt abnormal findings first since normal findings are routinely generated when unchecked. When conflicting abnormal findings occur, adate the more relevant findings. If a section is not mentioned, leave it blank "( )". Include oxygen device used when check SpO2 level if presented.
Example format:
“””
BW: 50kg; BH: not documented
General appearance: Acutely ill-looking

Consciousness: Clear and alert; GCS: E4M6V5

Vital signs: TPR: 36.8°C / 75 bpm / 18 bpm, BP: 185/108 mmHg, SpO2 98% under room air

HEENT: Eyes: Conjunctiva: pink; Sclerae: non-icteric

Chest: Bilateral symmetric expansion; Crackles (-), Basal rales (+)
Heart: Regular rate and rhythm (RRR), no murmurs

Abdomen: Soft, non-distended; RUQ tenderness (+)

Extremities: Pitting edema: 2+ bilaterally

Neurological exam: Muscle power: 
“””

8. Summary of Key Diagnostic Findings
Comprehensively summarize clinically relevant normal lab and imaging results and highlight abnormal data using ** in the end. Omitting only clinically irrelevant parameters (e.g., RDW, MCH, MCHC in CBC).

Example:
“””
[Laboratory Studies]
- WBC: 14.2 ×10⁹/L (high, ref: 4.0-10.0)
- CRP: 56 mg/L (elevated)
[Imaging Studies]
- CXR: RLL consolidation, suspicious for pneumonia
- EKG: Normal sinus rhythm
- Brain CT: negative result.
[Microbiology]
- Blood culture: Pending
- COVID-19 antigen: Negative
“””

9. Diagnosis
Identify the primary reason for admission as the leading active diagnosis. List other active diagnoses in order of importance, prioritizing acute conditions and significant chronic illnesses that impact current management. Separate past surgical history, cancer history, or stable chronic conditions into "Inactive Diagnoses." Consider creating an additional category, "Inactive but Clinically Relevant," for conditions that influence management but are not the reason for admission. Give diagnoses clearly based on clinical reasoning rather than solely relying on ICD codes in prior notes.

Example:

“””
[Active Diagnoses]
- Pneumonia
- Diabetes mellitus
- Acute kidney injury
- Hyponatremia
- Hypertension

[Inactive but Clinically Relevant]
- BPH (stable, does not impact admission)
- Chronic kidney disease stage 3 (affects renal dosing)
- History of stroke (no residual deficits, may affect anticoagulation)

[Historical Diagnoses]
- History of colon cancer (remission, post-surgery)
- History of appendectomy (childhood)
“””

10. Plan: Clearly state planned diagnostic evaluations and rationale based on OPD/ER notes and initial orders.
Format example:

“””
[Diagnostic Plan]
- Further tests/imaging to confirm diagnosis or exclude differentials, with reasons.
[Therapeutic Plan]
- Medications, fluids, oxygen therapy, or other interventions
[Educational Plan]
- Patient education regarding their condition(s), treatment plan, and any necessary follow-up instructions.
- For those admitted to ICU, the critical condition should be informed to their family.
"""

Start of medical note:
```

大家覺得它很好用。
接一個病人住院,可以省 15 到 30 分鐘寫病歷的時間。

後來 Claude Code 變得太厲害,
我忽然發現可以自己寫我要的功能了

於是我自薦成為院內負責生成式 AI 的醫師,推動生成式 AI 在院內的應用,以及 AI 輔助軟體開發

誰住在哪裡,誰握哪一個決定

我 ↔ 使用者意圖、優先順序、臨床裁決

↓ 派工與授權↑ 回報與待決事項

聯絡官貼著人接裁決、轉問題

大 PM跨 repo 排程、驗收,把裁決升級給人

↓ 派工與授權↑ 回報與待決事項

小 PM管佇列,不做實作

↓ 派工與授權↑ 回報與待決事項

Runner在隔離工作區寫程式

Reviewer獨立審查,跟作者分開

票的一生

問題有人說,哪裡不好用
→
封閉契約先把「做到什麼算完成」寫死
→
實作在隔離的工作區裡寫
→
獨立審查審的人跟寫的人分開
→
閘門證據齊了才放行
→
合併進入正式版本
→
部署每晚上線,醫師用到才算數

同一個問題被退回第三次,就回頭重新擬定合約,讓寫程式的 AI 用新的標準來寫。

一整年的每日產出紀錄

一個人類 + AI 的智慧醫療小組

7 天/24 小時,同時十幾條工作單在跑。

踩過的坑

坑一:審查的 agent 太認真。

每審一輪就多挑幾條,一張工作單來回七八輪還進不去。
後來規定:同一個問題被退回第三次,就回頭重新擬定合約,讓寫程式的 AI 用新的標準來寫。

踩過的坑

坑二:架構越蓋越複雜。

AI 很樂意多蓋一層,規則多到新來的 agent 讀不完。
後來規定:規則有上限,加一條先刪一條。

踩過的坑

上軌道的 AI 艦隊的瓶頸是人類

十幾條線等我回答,我一去看診,全部停工。
後來開了一個專案專門收集等待決定的事情,最多曾經有 200 多個問題等著我。

所以我做了三件事。

授權表
聯絡官
學習我做決定的模式

人類永遠需要決定的事情

核對需求
最終驗收
隱私保護
第 2 章

一間小醫院,
開始自己做

三階段路線圖

先打地基,再蓋房子。

第一階段2026 Q2–Q3

臨床資料閘道

安全入口、權限、審計;
去識別出境、委員會收尾。

第二階段2026 Q4–2027 Q1,提前起跑

臨床應用平台

各科室 AI 應用陸續上架、儀表板、健保申覆、負責任 AI 標章。

第三階段2027 Q2+

智慧化擴展

FHIR 交換、門診整合、預測型 AI、跨院、教學+居家 AI。

按 O 對照七月報告原圖
基礎層 · 狀態為 2026 年 11 月

資料進出,各只有一個門

院內系統HIS
醫療資訊系統
⇄
① 資料入口讀院內資料的唯一端點
登入・分權・稽核
⇄
② 各種應用病歷、檢驗、文書
都從入口拿資料
⇄
③ 對外出口送往院外的唯一通道
去識別完成才放行
⇄
雲端模型大語言
模型

一筆資料怎麼走——以 AI 起草病歷為例

醫師登入確認身分與權限
→
經入口讀取只拿這份文件需要的資料
→
經出口送出送了什麼,留下紀錄
→
草稿回到院內醫師修改後才存檔

查得到——誰、什麼時候、讀了哪些資料、送出了什麼。

按 O 對照七月報告原圖
合規層

讓 AI 值得信賴的四件事

稽核紀錄
系統自救
幻覺偵測
隱私保護
按 O 對照七月報告原圖
新樓生成式 AI 服務盤點 · 九個面向 · 星號為規劃中
示範一

先看住院病歷。

台南、麻豆兩個院區都在用,支援九種文件

文件檢視 · 系統實際產出 · 院內已去識別

病程紀錄:
先把資料整理好

看檢驗那一行:pO2 18.4、%sO2 27.2%,看起來是靜脈血的數值,草稿沒有標示。
AI 的草稿,仍需醫師核對。

S: Poor airway hygiene with shallow breathing and high fever (39.0 degC).

O:
Vitals (D-1 to D0): T 37.4-39.0, P 99-117, R 20-33, BP 93/42-138/86, SpO2 88-100% on O2 10-15L/min
PE: GCS E2V2M4
  Chest: shallow breathing pattern, coarse breath sounds with rales; poor cough function, sputum requiring suction
  Heart: regular rhythm, no murmur
  Abdomen: soft, no tenderness or distention; bowel sounds normal, N-G feeding digestion fair
  Extremities: pitting edema (2-3+), warm
Labs (D0):
  WBC 14.0 (H), Hb 11.2 (L), Hct 33.5% (L), Crea 1.22 (H), Na 146, K 3.9, CRP 69.58 (H), pO2 18.4 (L), %sO2 27.2% (L)
I/O (D0): intake 130 ml / output 322 ml (net undefined)
文件檢視 · 系統實際產出 · 院內已去識別

Problem List

五個問題,各有評估與計畫。
衛教沒有資料,它寫「Not documented」,不自己編。

Active Problems:
#1. Aspiration pneumonia with impending respiratory failure
  Assessment: Shallow breathing pattern, poor cough function, and coarse breath sounds; SpO2 maintained with BiPAP support.
  Plan:
  - Continue BiPAP with FiO2 75%, monitor SpO2 >92%
  - Enhance chest physiotherapy and suction PRN
  - Keep IV meropenem 500 mg Q12H (order since D-1)

#2. Sepsis with septic shock
  Assessment: High fever (39.0 degC) and elevated WBC; CRP remains elevated.
  Plan:
  - Repeat fever workup (Influ A/B, COVID screen)
  - Continue empiric meropenem therapy

#3. Bilateral pleural effusion s/p pleurocentesis on D-9
  Assessment: No signs of worsening; pitting edema persists.
  Plan:
  - Continue albumin 25% IV QD and furosemide 20 mg IV QD

#4. Normocytic anemia
  Assessment: Hb 11.2, stable without active bleeding.
  Plan:
  - Monitor Hb and transfuse if <7

#5. Prostate cancer with multiple bone metastases
  Assessment: No acute oncologic complications noted.
  Plan:
  - Continue darolutamide 300 mg BID

Inactive Problems:
- CHF with severe TR, mild AR -- stable, diuresis ongoing
- Chronic cystitis -- stable

Education: Not documented.
Goal: Prevent respiratory failure and maintain SpO2 >92%.
實際版面 · 合成測試資料

檢驗匯總

日期當欄、項目當列,依血液、凝血、生化、血氣分段。
異常標紅標藍,危急值加驚嘆號。

實際畫面 · 合成或虛構資料

新樓智慧雲端:
自動整理雲端頁面

首頁先看到臨床警訊以及目前用藥、餘藥量

實際畫面 · 姓名已遮 · 取自院內簡報

用藥分頁:
各院所開的藥,依日期排列

每一筆有學名、藥理分類、用法,以及還剩幾天的藥。

實際畫面 · 姓名已遮 · 取自院內簡報

中醫分頁:
中醫處方另外列出

方劑、天數與診斷,和西藥分開看。

實際畫面 · 合成或虛構資料

跨院所的檢驗,排在同一張表

虛構病人。不同醫院、不同日期的結果並排

實際畫面 · 姓名已遮 · 取自院內簡報

影像分頁:
每一類最近一次的檢查

電腦斷層、磁振造影、超音波、病理,各列出最近一筆與院所。

實際畫面 · 姓名已遮 · 取自院內簡報

警示分頁:
過敏紀錄與高齡用藥提醒

查無過敏會明講;65 歲以上需留意的藥另外標出。

文件檢視 · 系統實際產出 · 院內已去識別

行政輔助:
核醫檢查病史摘要

每天中午自動產出,核醫醫師逐字看過才採用。
看最後一行:兩份心電圖的結論對不起來,它標出 CONFLICT,請醫師確認。

History:
  - 86 y/o, man, ___ cm, ___ Kg (BMI=___).
  - CAD s/p PCI with BMS to RCA and LCX.
  - HTN, dyslipidemia.
  - ESRD on dialysis.
  - Cardiac catheterization (coronary angiography, ~4 years earlier):
    CAD with 50% diffuse narrowing of LAD-M-D, LCX-OS-P-M 90%
    diffuse stenosis with calcification, RCA-P-M-D 90% diffuse
    stenosis with calcification; PCI with BMS to RCA and LCX.
  - Echocardiography (heart, 5 days earlier): HCVD with LV
    diastolic dysfunction, LVEF=62.17%, mild to mod. TR, mild
    AR, MR, pulmonary hypertension.
  - EKG (~6 weeks earlier): Sinus rhythm, atrial premature complex,
    abnormal R-wave progression, early transition.
  - EKG (~6 weeks earlier): Atrial fibrillation, ST and T wave
    abnormality, consider inferior ischemia. [CONFLICT - please
    confirm]
文件檢視 · 依系統實際格式重建 · 虛構個案

文件生成:
健保核減的申復理由

三段:案件資料、申復理由、內部評估。
醫師自己要說的那一句,它留空白不代寫。
最後一段是寫給自己人看的:它會說哪一天其實站不住。

健保核減申復理由書(草稿.送出前須由主治醫師逐字審閱)

【第一段|案件基本資料】

  病歷號:[病歷號]  姓名:[姓名]
  就醫別:■住院 □門診 □急診
  就醫期間:住院第 1 日 至 第 12 日(共 12 日)
  主診斷:社區型肺炎,右下肺葉;第 2 型糖尿病;
          慢性腎臟病第 3 期
  科別:胸腔內科 主治醫師:[醫師]

  核減項目:

    一、02008B 一般病床住院診察費
        申報 12 個單位 核減 3 個單位

    二、(病房費,代碼從略)
        申報 12 個單位 核減 3 個單位

  核減點數合計:(示範從略)

  核減理由:
   核減原因碼 0210A:住院日數不適當
           (官方代碼表原文,示範從略)
   審查醫師敘述:
   「Fever subsided on day 6. Oral antibiotics
    could be given. Last 3 days not necessary.」

  ※ 核減範圍:本案核減相當於 3 個計價單位
    (申報 12 個),對應住院第 10 日至第 12 日。


【第二段|申復理由】

一、(主治醫師以自己的話開場)

    「此病人因__________,
      需__________,理由如下:」

    ※ 這一段由主治醫師本人填寫,草稿一律留空。


二、病人當時的臨床表現(只寫病歷有記載的事實)

    1. 住院第 6 日(病程記錄):
       「BT 37.2, no fever today」
       體溫確已下降,與審查醫師敘述相符。

    2. 住院第 8 日(護理紀錄,夜間):
       「BT 38.4, SpO2 88% under N/C 2L,
         increased sputum, coarse crackles RLL」
       (N/C 為鼻導管;RLL 為右下肺葉)
       退燒後第 2 日再度發燒,血氧下降。

    3. 住院第 8 日(病程記錄):
       「recurrent fever, r/o parapneumonic
         effusion, arrange chest echo」
       (r/o 為排除;parapneumonic effusion
         為肺炎旁肋膜積液)

    4. 住院第 9 日(檢查報告):
       胸部超音波:右側少量肋膜積液,未達引流標準。
       同日檢驗:WBC 14,800、CRP 9.6 mg/dL
       (第 6 日為 WBC 9,200、CRP 4.1)。

    5. 住院第 9 日至第 11 日(給藥紀錄):
       靜脈抗生素持續給予,未改口服。
       氧氣:第 9、10 日鼻導管 2 L/min,
       第 11 日上午起停用,SpO2 94%(未用氧)。

    6. 住院第 11 日(病程記錄):
       「afebrile > 48 hrs, tolerate oral diet,
         shift to oral Abx tomorrow, MBD」
       (Abx 為抗生素;MBD 為可出院)

    7. 住院第 12 日:改口服抗生素後出院。

    ※ 病歷未記載第 8 日是否重新採集痰液培養。
      【待主治醫師補充:第 8 日再度發燒時,
        是否重新送檢?若有,請提供報告日期。】


三、該項目在此臨床表現下的必要性

    針對審查醫師敘述的三個子句逐一回應:

    ・對「Fever subsided on day 6」:
      屬實,病歷第 6 日記載體溫 37.2。
      但第 8 日夜間再度發燒至 38.4,
      並合併血氧下降至 88%(見上述第 2 點)。
      退燒並未持續至出院。

    ・對「Oral antibiotics could be given」:
      第 6 日至第 7 日病人確實已接近可改口服的狀態,
      這一點本院不爭執。
      但第 8 日起體溫、血氧、發炎指數三項同時惡化
      (見上述第 2、4 點),此時不符合改口服的條件。
      實際改口服的時間為第 12 日,
      即連續 48 小時以上未發燒、且停用氧氣之後。

    ・對「Last 3 days not necessary」:
      被核減的第 10 日至第 12 日,逐日有下列醫療行為:
        第 10 日 靜脈抗生素;鼻導管氧氣 2 L/min
        第 11 日 靜脈抗生素;上午停用氧氣並觀察
        第 12 日 改口服抗生素,確認耐受後出院
      其中第 12 日僅為轉換用藥與出院,
      醫療強度確實較低。
      【待主治醫師補充:第 12 日是否可於
        第 11 日下午完成?請依實際情形判斷,
        必要時本日可不列入申復範圍。】


四、實證依據

    ・ATS/IDSA 社區型肺炎指引(2019):
      以臨床穩定作為停止靜脈治療與出院的依據,
      包含體溫、心跳、呼吸、血壓、血氧恢復穩定,
      且能進食、意識正常。
      本案第 8 日至第 10 日未達上述條件。

    ・健保支付標準相關條文:本項目之條號待補,
      引用前須確認現行版本。


五、檢附資料

    ■ 病程記錄(第 6、8、11 日)
    ■ 護理紀錄(第 8 日夜間)
    ■ 檢查報告(第 9 日胸部超音波)
    ■ 檢驗報告(第 6、9 日)
    ■ 給藥紀錄(第 9 日至第 12 日)

                        申復醫師簽章:___________
                        日期:___________


==================================================
    ✂  以下為內部評估,送件前整段刪除,不隨案送出
==================================================

【第三段|自我揭露(僅供本院內部判斷是否申復)】

一、資料來源可信度:□高 ■中 □低 □無法判定

    ・病歷號來源:■官方行政表
    ・核減範圍:■可由申報明細推算
    ・就診歸屬:■唯一
    ・報告版本:■無衝突
    ・本案缺少的材料:第 8 日後的痰液培養報告

二、申復證據強度:□高 ■中 □低 □無法判定

    ・審查醫師敘述共 3 個子句,
      其中 2 個能以病歷逐字引用回應,
      1 個有部分須由主治醫師補充。
    ・有子句無法完全以病歷回應,強度不得標高。

三、是否建議申復:■建議但需先補件

    理由:第 10、11 日有靜脈抗生素與氧氣的客觀紀錄,
    申復有據。第 12 日的醫療強度偏低,
    審查醫師的看法有一部分成立,
    建議主治醫師考慮只申復 2 日,
    以免整份文件的可信度被最弱的一日拖累。

四、本草稿的自我宣告

    ・未引用病歷以外之臨床事實
    ・臨床判斷一律未代答
    ・不自動送件;最終文字與是否申復,
      由主治醫師決定
健保署公告表格 · 示範填寫 · 虛構病人

表單生成:
呼吸器使用評估單

這是健保署今年公告的呼吸器優化管理計畫(給付項目 P9101B)所用的評估處置表,院內系統要填的就是這一張。

AI 很會整理院內的資料了。

但臨床問題的答案,通常不在病歷裡。

第 3 章

AI 輔助臨床決策

示意圖

一開始,
我們用 Google。

什麼都查得到,品質自己判斷

Google
示意圖

後來,
我們用 UpToDate。

整理好的專家意見

UpToDate
示意圖

現在我們醫院
用的是 DynaMed。

後來,醫院同事更喜歡用結構化的 DynaMed 查資料、寫 SOP。

DynaMed
示意圖

但是遇到
臨床決策問題,
大家都用 ChatGPT…

ChatGPT

證據整理好了,病人的資料在院內。

查證據的工具本來就看不到我的病人——病人資料也不該隨便送出去。
把兩邊接起來,是醫院自己的功課。

但是病人的資料需要留在院內。
除非你先把資料整理好,去識別化,
再去問 AI。

示意圖 · 建置中

讓院內的模型當門房

院內雲端病歷院內模型認出個資,換成占位符只有去識別的內容雲端模型負責思考答案回到院內

這道門還在蓋:硬體買了、制度訂了,等院內模型的個資過濾關卡上線

我先替自己做了一個會診助手。

我給它會診的問題,它讀完這位病人的生命徵象、檢驗、醫囑與病程,起草一份回覆。
只有我在用。草稿我改過,才貼回病歷。

文件檢視 · 系統實際產出 · 院內已去識別

會診助手:
一份結構化的回覆

摘要、評估、判斷、建議,結尾註明這是草稿,要以床邊評估為準。
只有我在用;草稿我改過才貼回病歷。

Consultation Reply
Date  : HD23
To    : [醫師] / [病房]
Re    : MRN [病歷號]  [姓名]  77M  Bed [床號]
From  : Infectious Disease
================================================================
Dear [醫師],
Thank you for the consultation. The chart was reviewed on HD23.
[ Clinical Summary ]
This 77-year-old man has ESRD on intermittent hemodialysis, DM, HTN,
heart failure, and recent acute respiratory failure requiring MV from
HD1 to HD6.
He has bilateral pneumonia/consolidation and persistent heavy sputum.
CT on HD17 raised concern for right empyema, but bedside ultrasound
showed no safely approachable pleural fluid.
Bronchoscopy on HD20 found abundant purulent airway secretions.
He is currently afebrile on nasal oxygen 2-3 L/min with SpO2 94-98%.
RR was recorded as 32/min early today; current work of breathing should
be reassessed at bedside.
[ Microbiology ]
BAL FilmArray on HD20 detected RSV, A. baumannii complex, and
K. pneumoniae group, with OXA-48-like and CTX-M genes detected.
The available report does not show bacterial semiquantitative bins.
Final BAL culture showed only few normal flora after antibiotic exposure.
BAL AFS and Xpert MTB were negative. Blood cultures showed no growth.
CTX-M is an ESBL marker; it predicts resistance to most penicillins,
third-generation cephalosporins, and aztreonam, but not carbapenems.
OXA-48-like is the carbapenemase marker that threatens meropenem.
Neither gene can be assigned to a detected bacterium by FilmArray alone,
and PCR does not distinguish viable from nonviable DNA.
[ Current Treatment and Response ]
Meropenem 500 mg IV every 24 hours is active and charted as day 9.
WBC is 5.6 K/uL. CRP decreased from 208.46 to 111.83 mg/L.
He remains afebrile and on low-flow oxygen, but has ongoing secretions.
No drug allergy record was retrieved from the portal.
[ Impression ]
1. Hospital-acquired lower respiratory infection with partial objective
   improvement, but persistent airway secretion burden.
2. FilmArray/culture discordance may reflect prior meropenem exposure,
   colonization, or detection of nonviable organisms.
3. CTX-M supports an ESBL phenotype; OXA-48-like makes meropenem
   unreliable if invasive K. pneumoniae infection is truly present.
4. A. baumannii detection alone does not establish invasive CRAB.
5. ESRD and hemodialysis require strict dose and timing adjustment.
[ Suggestions ]
1. Do not broaden therapy solely because of the FilmArray result.
   Reassess RR, oxygen need, hemodynamics, fever, CRP, and chest imaging.
2. Retrieve the complete FilmArray report, including bacterial bins.
   Ask microbiology whether the stored BAL can undergo targeted culture,
   susceptibility testing, and carbapenemase confirmation.
3. If clinically stable or improving and no drainable source is found,
   favor stopping meropenem now rather than extending beyond day 9.
4. If there is clear clinical deterioration, obtain repeat respiratory
   and blood cultures before changing antibiotics when feasible.
5. For probable invasive OXA-48 K. pneumoniae pneumonia, use
   ceftazidime-avibactam rather than meropenem, adjusted for hemodialysis.
6. Ceftazidime-avibactam does not reliably cover CRAB. Preferred CRAB
   therapy is sulbactam-durlobactam plus meropenem or imipenem.
   If unavailable, use HD-adjusted high-dose ampicillin-sulbactam plus
   polymyxin B (Bobimixyn) as a temporary bridge with ID/pharmacy.
7. Do not use polymyxin B alone or rely on inhaled colistin as primary
   CRAB therapy; routine nebulized antibiotics are not suggested.
8. Use HD-adjusted dosing; monitor mental status, CBC, LFT, and response.
9. RSV management is supportive; antibacterial drugs do not treat RSV.
10. Repeat chest ultrasound or CT if inflammation or oxygen need worsens,
   and drain pleural infection if a safe source-control target appears.
This is a decision-support draft. Final orders should be based on direct
bedside assessment, local formulary, and ID/pharmacy review.
Respectfully,
Infectious Disease Consultation Service

它懂病人了,
可是我不知道它根據什麼。

它沒有真的去搜尋。講的話沒有出處,也沒有證據等級。

後來我想到:DynaMed 有 API。

有分級、有出處的內容,本來就在我們用的資料庫裡。
API 就是為了讓醫院把它接進自己的系統。

第 4 章

快思 JEV,慢想 LLM

Dyna-MCP

讓 AI 有一份說明書去查 DynaMed API

搜尋文章
讀目錄與章節
讀建議與證據等級
查藥物專章

送出去的只有問題。

看得到病歷的 AI 留在院內,把病人整理成一般化的醫學問題。
查詢字串長得像病歷號,就送不出去。

第一版能動,但是慢。

每個決定都問一次大模型:一題要問 14 次,等將近一分鐘。

這時候,我想到 JEV

一個只「輸出決定」的模型

一個問題
→

選項 甲

選項 乙

選項 丙

選項 丁

→
決定選項 乙

JEV:給它一個問題和幾個選項,它幫每個選項打一個相關分數。它不寫文章,不解釋,只回答「選哪一個」。

JEV:給它一個問題和幾個選項,它幫每個選項打一個相關分數
JEV(小型決策模型)與通用大模型下同一盤 2048 同 seed 204800|16× 同步|平均決策延遲差 27.54 倍 · 39 秒 · 點畫面播放
查一題的流程 · 五個決定點

快的先挑,沒把握再交給慢的

題目進來
→
理解題目拆成 PICO,準備主查詢與備用查詢
→
決定 1用哪個查詢
→
搜尋 DynaMed
→
決定 2讀哪些文章
決定 3目錄逐層選章節
→
讀章節內容每篇最多讀兩節
→
決定 4還有缺口嗎
→
決定 5下一步再讀一節|換新查詢|停止
→
寫答案只用取回的文字

↺ 再讀一節:回到決定 3↺ 換新查詢:回到決定 1,最多四輪全程向 DynaMed 查詢不超過 20 次

五個決定都先交給 JEV。它的把握不到 0.70,才交給大模型。

實際錄下的一次查詢:SGLT2 抑制劑是否降低 HFrEF 合併第 2 型糖尿病患者的死亡率
實際畫面 · 2026-11-13 院內實測 · 虛構題目

示範:
輸入一個虛構的問題

住院的社區型肺炎,在 β-內醯胺之外加上巨環類,能不能降低死亡率?

實際畫面 · 查詢進行中

它先把問題拆成 PICO,再去搜尋

每一步做了什麼、花了幾秒,都列出來

實際畫面

先讓我確認:
它有沒有拆對

族群、介入、對照、結果,中英對照

實際畫面

AI 的整理放在最上面,並且標明不是臨床依據

它老實寫:取回的資料沒有呈現這兩種療法的死亡率比較

實際畫面

查回來的是一張張證據卡片

哪篇文章、哪一章、更新日期、原文連結。沒讀完整就標「未查證」。

下一步:DynaMed 串接院內資料三階段

一去個資的被動查詢
二串接病人資料的被動查詢
三查房前篩選異常

篩選異常數據、檢驗,主動提出問題和可能的解決方案。

JEV 讓它變快了。
那它有沒有變笨?

第 5 章

AI 主導的驗證研究

研究問題

JEV 在 DynaMed 檢索判斷上的正確率,
是否不劣於通用大型語言模型?

一個小型、專責的決策模型(JEV),對上通用大型語言模型。
採非劣性設計:先問不劣,速度其次。
快,是在不劣成立之後才有意義。

題組

題組三分,互不重疊

24題練習集|策略開發
8題閘門集|策略驗收升級比例 ≤30%、品質差距 ≤5 個百分點
36題封存集|JEV vs LLM 評測
練習集例題 · 虛構個案

50 多歲女性,因車禍做胸腹部電腦斷層排除內傷,意外發現右下葉一顆 7 mm 實質性肺結節,邊緣平滑。從未吸菸,沒有肺癌家族史,也沒有舊影像可比較。
問:這顆偶然發現的肺結節要怎麼追蹤?多久後做什麼檢查、要追多久?

金標準

黃金標準之建立

AI 本身知識PubMed 等網路資料DynaMed 上找得到的證據黃金標準

三者的交集,再經人類審核。

出題的人,不能改考卷。

評分的人,不知道哪一份是誰寫的。

事前登記

規則在看到結果之前寫死。

方法、判定界線、分析方式,事前登記、封存

封存機制

封存,不靠宣稱,靠驗證

1院內加密打包封存題由研究者本人在院內打包並加密,明文原件留院內安全目錄;上雲端的只有密文,解封金鑰僅供正式執行那一次使用。
→
2SHA-256 指紋每一題、每一份金標、封包本體皆有 SHA-256,連同 git commit 與時間記入凍結紀錄;封包雜湊經獨立重算相符(0af128ae…)。評分表亦於解盲前先記雜湊,解盲時逐一比對一致才解盲。
→
3時間鏈2026-11-12:01:01 研究者簽核 → 07:51 院內打包 → 08:12–09:07 雲端執行 72 格 → 評分完成、先記雜湊 → 解盲。明文規定第一次執行必須晚於簽核時間。

借用資安領域的承諾機制,用密碼學為這個研究增加盲評的證據和可驗證性。

前導試驗 · 封存 36 題

前導研究的結果:還不夠好

這是一個前導研究。
它不能證明 JEV 沒有比較差,
也不能證明 JEV 比較差。

證據不足,兩邊都下不了結論。

失敗分析

錯誤歸因分析

呼叫流程(檢索) 約三分之一的錯誤,未命中正確文章
截取文章片段(擷取) 約二分之一命中文章,但未定位至答案段落
初步判斷:瓶頸在流程,而非判斷本身 — 此為待後續試驗驗證之假設。

後續工作

後續研究

修正 JEV 與大模型的呼叫流程、截取文章片段的流程
以全新封存題組重行試驗
擴大標註者人數與題目來源,提升外在效度

限制,照實講

研究限制

(1) 單一醫師擔任標註與裁決者
(2) 金標由 AI 起草、主持人簽核,非獨立人工建立
(3) 標註工具與受測系統同屬一個模型家族
(4) 前導規模樣本,統計檢定力不足
(5) 每題只跑一次;題目是虛構個案
(6) JEV 那一組多收到了已讀回的段落內文
(7) 執行端為雲端 session,其自述解封金鑰值曾進入對話紀錄;封包副本已全數銷毀並核對,題目皆為虛構、無病人資料。
實驗前與 EBSCO 開會,取得總公司同意才進行

所以今天,有三句話我不能說。

不能說 JEV 沒有比較差
不能說 JEV 比較差
也不能說兩個差不多

最後,我想說的是

剛才 Benedita 帶我們看了 Dyna AI

答案附來源、開箱即用 — 「把證據找好」這件事,已經做得很好了。
我接下來講的,是下一步:把這些證據,接進醫院自己的系統。

你喜歡跟團還是自助旅行?

可接 AirPods 降噪的藍牙聽診器

Dyna AI(產品端)

把證據整理好
答案附來源
訂閱就能用

醫院端(我們在做的)

把證據接進流程
客製化微調
接入院內資料與去識別

查資料交給 AI,
人類專注於判斷。

掃描開啟本簡報
序言用AI寫程式智慧醫療範例輔助臨床決策快思JEV+慢想LLM驗證研究尾聲
1 / 81
建議橫放手機觀看橫放畫面更大、更好讀。不轉也可以 — 點一下螢幕,就以直式開始看。
這個框可以上下捲動在框裡面滑動,就能看完整份文件;要換頁,點一下框外的地方就好。點這則提示即可關閉。