BCPertuzumabRule1
type: Library
node role: treeRoot
id:
  v: BCPertuzumabRule1
text:
  status:
    v: extensions
  div:
    v: Metadata Title Pertuzumab給付規定(早期乳癌)-Pertuzumab Rule1 Version 1.0.0 Status Draft Description 此 Library 為乳癌(早期乳癌)患者於申請使用 Pertuzumab 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //早期乳癌_Pertuzumab給付規定 library BCPertuzumabRule1 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*/ define "ICD代碼檢核_布林值": Reusable."ICD-10使用C50" define "醫令類別為1_布林值":Reusable."醫令類別為1" define "Pertuzumab申請": exists ( [MedicationRequest] MRPlan where MRPlan.intent = 'plan' and exists ( MRPlan.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01FD02 ) ) //條件1-1:具腋下淋巴結轉移但無遠處臟器轉移之早期乳癌(M=0) //條件1-1-1 define "條件1-1-1=3個月內影像報告": Reusable."HasRecentImageReport"("本次申請起始日期", 90) //條件1-1-2 define "條件1-1-2=癌症分期分數或結果為N≠0且M=0": 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].*') and Matches((O.value as FHIR.string).value, '.*N[1-9][a-zA-Z]?.*') ) //條件1-1-3/條件1-2-3(檢查報告) define "條件1-1-3/條件1-2-3=3個月內有檢查報告": Reusable."HasRecentMolecularReport"("本次申請起始日期", 90) define "條件1-1=具腋下淋巴結轉移但無遠處臟器轉移之早期乳癌(M=0)": "ICD代碼檢核_布林值" and "醫令類別為1_布林值" and "Pertuzumab申請" and "條件1-1-2=癌症分期分數或結果為N≠0且M=0" or ("條件1-1-1=3個月內影像報告" and "條件1-1-3/條件1-2-3=3個月內有檢查報告") //條件1-2:具腋下淋巴結轉移但無遠處臟器轉移之早期乳癌(M=1但為骨轉移) //條件1-2-1 define "條件1-2-1=3個月內影像報告(為骨轉移)": exists ( [DiagnosticReport] O where exists ( O.code.coding Cdg where ( Cdg in CodeConcept.ICD10PCS2023Image or Cdg in CodeConcept.ICD10PCS2014Image ) and Cdg.code in CodeConcept.ImageCodes ) and O.effective is not n…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCPertuzumabRule1
  l: BCPertuzumabRule1
version:
  v: 1.0.0
name:
  v: BCPertuzumabRule1
title:
  v: Pertuzumab給付規定(早期乳癌)-Pertuzumab Rule1
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 為乳癌(早期乳癌)患者於申請使用 Pertuzumab 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json