BCOlaparibRule2
type: Library
node role: treeRoot
id:
  v: BCOlaparibRule2
text:
  status:
    v: extensions
  div:
    v: Metadata Title Olaparib給付規定(高復發風險早期乳癌)-Olaparib Rule2 Version 1.0.0 Status Draft Description 此 Library 為乳癌(高復發風險早期乳癌)患者於申請使用 Olaparib 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //高復發風險乳癌_Olaparib給付規定 library BCOlaparibRule2 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*/ //條件1:早期乳癌 define "ICD代碼檢核_布林值": Reusable."ICD-10使用C50" define "醫令類別為1_布林值":Reusable."醫令類別為1" //條件1:轉移性乳癌 //條件1-1 define "規則1-1-1=3個月內影像報告": Reusable."HasRecentImageReport"("本次申請起始日期", 90) //條件1-3 define "規則1-1-3=癌症分期分數或結果為M=0": Reusable."癌症分期分數或結果為M=0" //條件1-4(檢查報告) define "規則1-1-4=3個月內有檢查報告": Reusable."HasRecentMolecularReport"("本次申請起始日期", 90) //條件1-5 define "規則1-1-5=Olaparib申請": Reusable."醫令類別為1" and exists ( [MedicationRequest] MRPlan where MRPlan.intent = 'plan' and exists ( MRPlan.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01XK01 ) ) define "規則1-1=早期乳癌": "ICD代碼檢核_布林值" and "醫令類別為1_布林值" and "規則1-1-5=Olaparib申請" and "規則1-1-3=癌症分期分數或結果為M=0" and ("規則1-1-1=3個月內影像報告" or "規則1-1-4=3個月內有檢查報告") //條件2:成年 define "規則1-2=成年": exists ( [Claim] C where C.created is not null and AgeInDaysAt(C.created) >= 18 ) //條件3:遺傳性 BRCA1/2(germline BRCA1/2)突變 define "規則1-3=遺傳性 BRCA1/2(germline BRCA1/2)突變": exists ( [Observation] OBs where exists ( OBs.category C where exists ( C.coding Cdg where Cdg in CodeConcept.NHIPASSupportingInfoType and Cdg.code = 'tests' ) ) and exists ( OBs.code.coding Cdg where Cdg in CodeConcept.LOINC and Cdg.code in CodeConcept.BRCA1or2 ) and OBs.value is string and Matches(OBs.value as string, '(?i).*(Positive|Pathogenic|Likely Pathogenic).*') ) //條件4:HER2陰性 define "規則1…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCOlaparibRule2
  l: BCOlaparibRule2
version:
  v: 1.0.0
name:
  v: BCOlaparibRule2
title:
  v: Olaparib給付規定(高復發風險早期乳癌)-Olaparib 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 為乳癌(高復發風險早期乳癌)患者於申請使用 Olaparib 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json