BCLarotrectinibRule1
type: Library
node role: treeRoot
id:
  v: BCLarotrectinibRule1
text:
  status:
    v: extensions
  div:
    v: Metadata Title Larotrectinib給付規定-Larotrectinib Rule1 Version 1.0.0 Status Draft Description 此 Library 為乳癌患者於申請使用 Larotrectinib 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //乳癌_Larotrectinib給付規定 library BCLarotrectinibRule1 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條件1:NTRK 基因融合且無已知的後天阻抗性突變 define "1條件1=NTRK基因融合且無已知的後天阻抗性突變": exists ( [Observation] RasO where RasO.status = 'final' and exists ( RasO.code.coding ObsCodeCoding where ObsCodeCoding.code = '69548-6' and ObsCodeCoding in CodeConcept.LOINC ) and exists ( RasO.component ComponentRecord where exists ( ComponentRecord.code.coding ComponentCodeCoding where ComponentCodeCoding.code in CodeConcept.LarotrectinibGeneTest ) ) and RasO.value is not null and RasO.value is FHIR.string and Matches((RasO.value as FHIR.string).value, '(?i).*fusion且無後天阻抗性突變.*') ) //1條件2:轉移性實體腫瘤 define "ICD代碼檢核_布林值": Reusable."ICD-10使用C50" define "醫令類別為1_布林值": Reusable."醫令類別為1" define "三個月內有影像檢查報告": Reusable."HasRecentImageReport"("本次申請起始日期", 90) define "癌症分期分數或結果為M≠0": Reusable."癌症分期分數或結果為M≠0" define "三個月內有檢查報告": exists ( [DiagnosticReport] O2 where exists ( O2.code.coding Cdg where Cdg in CodeConcept.LOINC and Cdg.code in CodeConcept.DiagnosticReport ) and O2.effective is not null and FHIRHelpers.ToDateTime(O2.effective) >= "本次申請起始日期" - 90 days and FHIRHelpers.ToDateTime(O2.effective) <= "本次申請起始日期" ) define "1條件2=轉移性實體腫瘤": Reusable."ICD-10使用C50" and Reusable."醫令類別為1" and "癌症分期分數或結果為M≠0" and ( ("三個月內有影像檢查報告" and "三個月內有檢查報告") or not ("三個月內有影像檢查報告" and "三個月內有檢查報告") ) //1條件3:手術切除極可能造成嚴重病症 define "1條件3=病摘說明手術切除會造成嚴重病症": exists ( [Claim] C where exists ( C.d…
url:
  v: https://nhicore.nhi.gov.tw/cql/Library/BCLarotrectinibRule1
  l: BCLarotrectinibRule1
version:
  v: 1.0.0
name:
  v: BCLarotrectinibRule1
title:
  v: Larotrectinib給付規定-Larotrectinib 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 為乳癌患者於申請使用 Larotrectinib 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json