BCSacituzumabGovitecanRule
type: Library
node role: treeRoot
id:
  v: BCSacituzumabGovitecanRule
text:
  status:
    v: extensions
  div:
    v: Metadata Title Sacituzumab govitecan給付規定-Sacituzumab Govitecan Rule Version 1.0.0 Status Draft Description 此 Library 為乳癌患者於申請使用 Sacituzumab Govitecan 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //乳癌_Sacituzumab govitecan給付規定 library BCSacituzumabGovitecanRule version '1.0.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers include BCCodeConcept version '1.0.0' called CodeConcept include BCReusable version '1.0.0' called Reusable context Patient //============================================ // 申請類型判斷 //============================================ define "初次申請": "申請類型" = '初次使用' define "續用申請": "申請類型" = '續用' define "申請類型未知": "申請類型" = '無法判斷申請類型' define "申請類型": case when Reusable."續用註記為1" then '初次使用' when Reusable."續用註記為2" then '續用' else '無法判斷申請類型' end //============================================ // 主要規定一：初次使用條件 //============================================ /*規則1*/ //1條件1:適用於治療先前已接受兩次以上全身性治療無效(其中一次需為治療晚期疾病) define "條件1=適用於治療先前已接受兩次以上全身性治療無效": exists ( [Claim] C where exists ( C.diagnosis D where exists ( D.type.text T where Matches(T.value, '(?i).*(待諮詢醫師\\+).*') ) ) ) //1條件2:無法切除的局部晚期或轉移性的三陰性乳癌成年病人 define "ICD代碼檢核_布林值": Reusable."ICD-10使用C50" define "醫令類別為1_布林值":Reusable."醫令類別為1" //1條件2-1 define "1條件2-1=無法切除的局部晚期或轉移性的乳癌成年病人": exists ( [Claim] C where C.created is not null and AgeInDaysAt(C.created) >= 18 ) //1條件2-2 define "1條件2-2=病摘應敘明無法切除": exists ( [Claim] C where exists ( C.diagnosis D where exists ( D.type.text T where Matches(T.value, '(?i).*(無法切除\\+).*') ) ) ) //1條件2-3 define "1條件2-3=癌症分期分數或結果為M>=1": exists ( [Observation] O where exists ( O.code.coding Cdg where Cdg.code = '399390009' and Cdg in CodeConcept.SNOMED ) and O.value is not null and O.value is FHIR.string and Matches((O.value as FHIR.string).value, '.*M[^0].*') ) //1條件2-4 define "1條件2-4/2條件1=ER陰性": exists ( [Observation] OBs where exists ( OBs.category C where exists ( C.codi…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCSacituzumabGovitecanRule
  l: BCSacituzumabGovitecanRule
version:
  v: 1.0.0
name:
  v: BCSacituzumabGovitecanRule
title:
  v: Sacituzumab govitecan給付規定-Sacituzumab Govitecan Rule
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2026-03-11
description:
  v: 此 Library 為乳癌患者於申請使用 Sacituzumab Govitecan 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json