BCPembrolizumabRule
type: Library
node role: treeRoot
id:
  v: BCPembrolizumabRule
text:
  status:
    v: extensions
  div:
    v: Metadata Title Pembrolizumab給付規定(早期三陰性乳癌)-Pembrolizumab Rule Version 1.0.0 Status Draft Description 此 Library 為乳癌(早期三陰性乳癌)患者於申請使用 Pembrolizumab 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //早期三陰性乳癌_Pembrolizumab給付規定 library BCPembrolizumabRule 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 //============================================ // 主要規定一：初次使用條件 //============================================ /*規則1*/ //本類藥品得於藥品許可證登載之適應症及藥品仿單內，併用其他藥品於下列患者： //(7)早期三陰性乳癌：非轉移性、第II期至第IIIb期（cT1c N1-2 或 T2-4 N0-2）成年病人(114/6/1) define "本次申請紀錄": Reusable."LatestMedicationPlan"(CodeConcept.L01FF02) //1條件1:早期三陰性乳癌 define "ICD代碼檢核_布林值": Reusable."ICD-10使用C50" define "用藥線別檢核_布林值": Reusable."用藥線別=1" define "病摘早期三陰性乳癌": exists ( [Claim] C where exists ( C.diagnosis D where exists ( D.type.text T where Matches(T.value, '(?i).*(早期三陰性乳癌).*') ) ) ) define "給付適應症條件P131": exists ( [Claim] C where exists ( C.item I where exists ( I.programCode PC where exists ( PC.coding Cdg where Cdg in CodeConcept.NHIApplyReason and Cdg.code = 'P131' ) ) ) ) define "1條件1=早期三陰性乳癌": Reusable."ICD-10使用C50" and "病摘早期三陰性乳癌" and "給付適應症條件P131" and Reusable."ICD-10使用C50" and Reusable."用藥線別=1" and "本次申請紀錄" is not null //1條件2:非轉移性、第II期至第IIIb期（cT1c N1-2 或 T2-4 N0-2） //M=0 (pT4aN2bM1a) and if cT1c then N1-2 else T2-4 then N0-2 define "1條件2=非轉移性、第II期至第IIIb期（cT1c N1-2 或 T2-4 N0-2）": 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, '.*M0.*') or Matches((O.value as FHIR.string).value, '.*pT4aN2bM1a.*') ) and ( if Matches((O.value as FHIR.string).value, '.*cT1c.*') then Matches((O.value as FHIR.string).…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCPembrolizumabRule
  l: BCPembrolizumabRule
version:
  v: 1.0.0
name:
  v: BCPembrolizumabRule
title:
  v: Pembrolizumab給付規定(早期三陰性乳癌)-Pembrolizumab 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-04-12
description:
  v: 此 Library 為乳癌(早期三陰性乳癌)患者於申請使用 Pembrolizumab 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json