CRCPanitumumabRule1
type: Library
node role: treeRoot
id:
  v: CRCPanitumumabRule1
text:
  status:
    v: extensions
  div:
    v: Metadata Title 大腸直腸癌_Panitumumab給付規定 Version 1.0.0 Status Draft Description 此 Library 為轉移性大腸或直腸癌病人申請使用 Panitumumab 之給付檢核條件。 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Parameters Parameter None Library Content CQL Content //大腸直腸_Panitumumab給付規定 library CRCPanitumumabRule1 version '1.0.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' called FHIRHelpers include CRCCodeConcept version '1.0.0' called CodeConcept include Reusable version '1.0.0' called Reusable context Patient //============================================ // 申請類型判斷 //============================================ define "初次申請": "申請類型" = '初次使用' define "續用申請": "申請類型" = '續用' define "申請類型未知": "申請類型" = '無法判斷申請類型' define "申請類型": case when Reusable."續用註記為1" then '初次使用' when Reusable."續用註記為2" then '續用' else '無法判斷申請類型' end //============================================ // 主要規定一：初次使用條件 //============================================ /*規則1*/ //條件1 define "規則1-1=初次使用Panitumumab需與FOLFOX(folinicacid/5-fluorouracil/oxaliplatin)合併使用": ( // 存在 Fluorouracil 處方 exists ( [MedicationRequest] MROrder1 where MROrder1.intent = 'order' and exists ( MROrder1.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01BC02 ) and Reusable."HasValidTiming"(MROrder1) ) and // 存在 Oxaliplatin 處方 exists ( [MedicationRequest] MROrder2 where MROrder2.intent = 'order' and exists ( MROrder2.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01XA03 ) and Reusable."HasValidTiming"(MROrder2) ) and // Panitumumab 申請 exists ( [MedicationRequest] MRPlan where MRPlan.intent = 'plan' and exists ( MRPlan.medication.coding Cdg where Cdg in CodeConcept.NHIMedication and Cdg.code in CodeConcept.L01FE02 ) ) ) and Reusable."醫令類別為1" //條件2 define "規則1-2=初次使用Panitumumab與FOLFIRI(folinic acid/ 5-fluorouracil/irinotecan)合併使用": ( // 存在 Fluorouracil 處方 exists ( [MedicationRequest] MROrder1 where MROrder1.intent = 'order' and exists ( MROrder1.medi…
version:
  v: 1.0.0
name:
  v: CRCPanitumumabRule1
title:
  v: 大腸直腸癌_Panitumumab給付規定
status:
  v: draft
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
date:
  v: 2025-12-09
description:
  v: 此 Library 為轉移性大腸或直腸癌病人申請使用 Panitumumab 之給付檢核條件。
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json