BCPertuzumabRule2
type: Library
node role: treeRoot
id:
  v: BCPertuzumabRule2
text:
  status:
    v: extensions
  div:
    v: Metadata Title Pertuzumab給付規定(移轉性乳癌)-Pertuzumab Rule2 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 BCPertuzumabRule2 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-1 define "條件1-1=3個月內影像報告": Reusable."HasRecentImageReport"("本次申請起始日期", 90) //條件1-2 define "條件1-2=癌症分期分數或結果為M≠0": Reusable."癌症分期分數或結果為M≠0" //條件1-3(檢查報告) define "條件1-3=3個月內有檢查報告": Reusable."HasRecentMolecularReport"("本次申請起始日期", 90) define "條件1=轉移性乳癌": "ICD代碼檢核_布林值" and "醫令類別為1_布林值" and "Pertuzumab申請" and "條件1-2=癌症分期分數或結果為M≠0" and ("條件1-1=3個月內影像報告" or "條件1-3=3個月內有檢查報告") //條件2:HER2過度表現(IHC3+或FISH+) define "條件2=檢驗檢查-具HER2過度表現": Reusable."HasHER2OverexpressionTest" define "條件2=基因檢測-具HER2過度表現": Reusable."HasHER2OverexpressionGene" define "條件2=具HER2過度表現": "條件2=檢驗檢查-具HER2過度表現" or "條件2=基因檢測-具HER2過度表現" //條件3-1:轉移後未曾以抗HER2治療 define "本次Pertuzumab申請起始日": FHIRHelpers.ToDateTime( (First( [MedicationRequest] MR where MR.intent = 'plan' and exists ( MR.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01FD02 ) and MR.dosageInstruction[0].timing.repeat.bounds is Period sort by FHIRHelpers.ToDateTime((dosageInstruction[0].timing.repeat.bounds as Period).start) ).dosageInstruction[0].timing.repeat…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCPertuzumabRule2
  l: BCPertuzumabRule2
version:
  v: 1.0.0
name:
  v: BCPertuzumabRule2
title:
  v: Pertuzumab給付規定(移轉性乳癌)-Pertuzumab Rule2
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