kueikui
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# CQL 2025/10/13 次世代CQL國際研討會暨工作坊 ## CQL Clinical Quality Language 臨床品質語言,2011 HL7訂製的一種標準化語言,用於臨床決策支援(CDS)與品質衡量邏輯(CQMs) 主要目的 - 協助醫療系統標準化、互通 - 與FHIR整合,統一任鎮、跨系統相容 - 接近醫學與法,醫師一看就懂,用於健保規範、品質監控、指引 ## ELM Expression Logical Model ELM 是 CQL 的機器可讀表示形式,通常以 JSON 或 XML 格式呈現 ## CQL Engine CQL 邏輯通常以人類可讀的形式編寫,但在執行前需轉換為機器可讀的 ELM ## eCQM & DQM Electronic Clinical Quality Measure,電子臨床品質指標:使用CQL與EHR衡量醫療品質(醫療成效) DQM(Data Quality Measure,資料品質指標):利用結構化或非結構化資料量化醫療品質 ## 流程 EHR → CDS → CQL Engine → ELM → FHIR → 執行邏輯 → UI /醫生回饋 :::info EHR(電子病歷系統) 1️⃣醫生在 EMR/電子病歷開立醫囑或輸入臨床資料 2️⃣ CDS(Clinical Decision Support)臨床決策支援系統監控醫囑或臨床行為,將要判斷的規則送到 CQL Engine 3️⃣ CQL Engine將人類可讀的 CQL轉換成機器可讀的 ELM 4️⃣ ELM會抓取 FHIR 資料,根據規則計算或判斷 5️⃣ FHIR 資料庫提供病人結構化或標準化資料(檢驗值、用藥紀錄、過敏史等) 6️⃣ 執行邏輯,ELM 對 FHIR 資料進行規則判斷(例如:血糖值超標、藥物禁忌) 7️⃣ UI / 醫生回饋,判斷結果回到使用者界面(UI)醫生看到警示、建議或修改建議,進行臨床決策 ``` CQL:人類可讀規則 ELM:機器可執行規則 CQL Engine:轉換與執行核心 FHIR:標準化病人資料 CDS:提供即時決策支援 ``` ::: ## CQL架構 <!--[LINE_ALBUM_CQL研討會_251014_1](https://hackmd.io/_uploads/HktwY03Txg.jpg)--> ![image](https://hackmd.io/_uploads/r1dLnRhplg.png) ## 開發環境 以VS Code為例 - step1.下載Java21(版本:select21-LTS/x64/Windows(.msl) - step2.環境變數Add To Path - step3.CMD驗證是否安裝成功 java -version - step4.VS Code安裝擴充:Clinical Quality Language(CQL)套件 測試檔案:https://github.com/cqframework/vscode-cql/wiki/images/vscodeTest.zip 範例一 ![LINE_ALBUM_CQL研討會_251014_6](https://hackmd.io/_uploads/S1CHqC2axg.jpg) 範例二 ![913073_0](https://hackmd.io/_uploads/B1789C36ll.jpg) 練習 CQL ![螢幕擷取畫面 2025-10-14 163353](https://hackmd.io/_uploads/BkV6cAhpxg.png) 測試資料 ![螢幕擷取畫面 2025-10-14 163919](https://hackmd.io/_uploads/S1HkjAhael.png) ![螢幕擷取畫面 2025-10-14 163923](https://hackmd.io/_uploads/H1S1iRhpgg.png) 測試結果 ![螢幕擷取畫面 2025-10-14 164025](https://hackmd.io/_uploads/BJA1sRhpgl.png) 檔案路徑都要放對 ![image](https://hackmd.io/_uploads/r1nZoC2alg.png) ![螢幕擷取畫面 2025-10-14 164308](https://hackmd.io/_uploads/Hy9co0haxe.png) 輸出失敗範例 ![image](https://hackmd.io/_uploads/B1CLj02Tlx.png) ## CQL 工作坊實作練習 納入條件:女性患者,年齡大於45歲,且BMI>=25kg/m2 排除條件:半年內做過HgA1檢測或過去一年內診斷為空腹血糖(IFG)受損 ![913074_0](https://hackmd.io/_uploads/HyqOjRhTxe.jpg) CQL ![螢幕擷取畫面 2025-10-14 162311](https://hackmd.io/_uploads/BJt2sRnpgx.png) ![螢幕擷取畫面 2025-10-14 162345](https://hackmd.io/_uploads/H1ahsRn6lg.png) 輸出結果 ![螢幕擷取畫面 2025-10-15 092736](https://hackmd.io/_uploads/r1jRoChael.png) ## 相關連結 常見CQL引擎 - CQL Ruler 開源Java平台 - CQL Compiler/Translator HL7官方工具 [PPT](https://www.canva.com/design/DAG1uNHSRkI/55OsYa4agwySenoAHWOAJQ/edit?utm_content=DAG1uNHSRkI&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton) [CQL_HackMD陳鴻裕](https://hackmd.io/@hongyu0324/cql101) [FHIR Helpers](https://hl7.org/fhir/uv/cql/Library-FHIRHelpers.html) [OMOP通用資料模型](https://www.ohdsi.org/data-standardization/) [Electronic Clinical Quality Improvement (eCQI) Resource Center](https://ecqi.healthit.gov/) [Quality Improvement Core (QI-Core) Implementation Guide](https://build.fhir.org/ig/HL7/fhir-qi-core/) [臺灣醫療資訊標準大平台](https://medstandard.mohw.gov.tw/) [TWCDI](https://twcore.mohw.gov.tw/ig/twcore/twcdi.html) [Github_CQLFormattingandUsage](https://github.com/cqframework/CQL-Formatting-and-Usage-Wiki/blob/master/Source/CheatSheet/CQL%20Cheat%20Sheet.pdf) [10/13 次世代CQL國際研討會暨工作坊談話翻譯](https://live.vurbo.ai/?s=SSJU2534)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully