ORY42708 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE ;MAR 7,2017 at 15:12
;;3.0;ORDER ENTRY/RESULTS REPORTING;**427**;Dec 17,1997;Build 105
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
; This is a post intall routine and can be deleted after install of patch OR*3*427
S ;
;
D DOT^ORY427ES
;
;
K REMOTE,LOCAL,OPCODE,REF
F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT I $L(TEXT) D Q:QUIT
.S ^TMP("OCXRULE",$J,$O(^TMP("OCXRULE",$J,"A"),-1)+1)=TEXT
;
;
;
Q
;
DATA ;
;
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:2",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE ANC >= 1.0 & < 1.5
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE ANC >= 1.0 & < 1.5
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^CLOZAPINE ANC W/IN 7 RESULT
;;R^"860.3:","860.31:1",2,"E"
;;D^GREATER THAN
;;R^"860.3:","860.31:1",3,"E"
;;D^.999
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^CLOZAPINE ANC W/IN 7 RESULT
;;R^"860.3:","860.31:2",2,"E"
;;D^LESS THAN
;;R^"860.3:","860.31:2",3,"E"
;;D^1.5
;;R^"860.3:","860.31:3",.01,"E"
;;D^3
;;R^"860.3:","860.31:3",1,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:3",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE DRUG SELECTED
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE DRUG SELECTED
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER MODE
;;R^"860.3:","860.31:1",2,"E"
;;D^EQ FREE TEXT
;;R^"860.3:","860.31:1",3,"E"
;;D^SELECT
;;R^"860.3:","860.31:2",.01,"E"
;;D^2
;;R^"860.3:","860.31:2",1,"E"
;;D^FILLER
;;R^"860.3:","860.31:2",2,"E"
;;D^STARTS WITH
;;R^"860.3:","860.31:2",3,"E"
;;D^PS
;;R^"860.3:","860.31:5",.01,"E"
;;D^5
;;R^"860.3:","860.31:5",1,"E"
;;D^CLOZAPINE MED
;;R^"860.3:","860.31:5",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^CLOZAPINE NO ANC W/IN 7 DAYS
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE NO ANC W/IN 7 DAYS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:6",.01,"E"
;;D^6
;;R^"860.3:","860.31:6",1,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"860.3:","860.31:6",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
;;R^"860.3:",.01,"E"
;;D^CLOZAPINE NO WBC W/IN 7 DAYS
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.3:","860.31:4",.01,"E"
;;D^4
;;R^"860.3:","860.31:4",1,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"860.3:","860.31:4",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;EOF^OCXS(860.3)^1
;;SOF^860.2 ORDER CHECK RULE
;;KEY^860.2:^CLOZAPINE
;;R^"860.2:",.01,"E"
;;D^CLOZAPINE
;;R^"860.2:","860.21:1",.01,"E"
;;D^NO WBC W/IN 7 DAYS
;;R^"860.2:","860.21:1",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:1",1,"E"
;;D^CLOZAPINE NO WBC W/IN 7 DAYS
;;R^"860.2:","860.21:1",2,"E"
;;D^CLOZAPINE AND NO WBC W/IN 7 DAYS
;;R^"860.2:","860.21:10",.01,"E"
;;D^1.0 >= ANC < 1.5
;;R^"860.2:","860.21:10",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:10",1,"E"
;;D^CLOZAPINE ANC >= 1.0 & < 1.5
;;R^"860.2:","860.21:4",.01,"E"
;;D^ANC < 1.0
;;R^"860.2:","860.21:4",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:4",1,"E"
;;D^CLOZAPINE ANC < 1.0
;;R^"860.2:","860.21:6",.01,"E"
;;D^NO ANC W/IN 7 DAYS
;;R^"860.2:","860.21:6",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:6",1,"E"
;;D^CLOZAPINE NO ANC W/IN 7 DAYS
;;R^"860.2:","860.21:7",.01,"E"
;;D^CLOZAPINE
;;R^"860.2:","860.21:7",.02,"E"
;;D^SIMPLE DEFINITION
;;R^"860.2:","860.21:7",1,"E"
;;D^CLOZAPINE DRUG SELECTED
;;R^"860.2:","860.22:1",.01,"E"
;;D^1
;;R^"860.2:","860.22:1",1,"E"
;;D^CLOZAPINE AND (NO WBC W/IN 7 DAYS OR NO ANC W/IN 7 DAYS)
;;R^"860.2:","860.22:1",2,"E"
;;D^CLOZAPINE APPROPRIATENESS
;;R^"860.2:","860.22:1",6,"E"
;;D^Clozapine orders require a CBC/Diff within past 7 days. Please order CBC/Diff with WBC and ANC immediately. Most recent results - |CLOZ LAB RSLTS|
;;R^"860.2:","860.22:2",.01,"E"
;;D^2
;;R^"860.2:","860.22:2",1,"E"
;;D^CLOZAPINE AND ANC < 1.0
;;R^"860.2:","860.22:2",2,"E"
;;D^CLOZAPINE APPROPRIATENESS
;;R^"860.2:","860.22:2",6,"E"
;;D^Moderate/Severe Neutropenia - please repeat CBC/Diff including WBC and ANC tests immediately and Daily until ANC stabilizes to greater than or equal to 1000. Most recent results - |CLOZ LAB RSLTS|
;;R^"860.2:","860.22:3",.01,"E"
;;D^3
;;R^"860.2:","860.22:3",1,"E"
;;D^CLOZAPINE AND (1.0 >= ANC < 1.5)
;;R^"860.2:","860.22:3",2,"E"
;;D^CLOZAPINE APPROPRIATENESS
;;R^"860.2:","860.22:3",6,"E"
;;D^Mild Neutropenia - please repeat CBC/Diff including WBC and ANC tests immediately and 3X weekly until ANC stabilizes to greater than or equal to 1500. Most recent results - |CLOZ LAB RSLTS|
;;EOR^
;;EOF^OCXS(860.2)^1
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORY42708 4951 printed Dec 13, 2024@02:42:14 Page 2
ORY42708 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE ;MAR 7,2017 at 15:12
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**427**;Dec 17,1997;Build 105
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
+4 ; This is a post intall routine and can be deleted after install of patch OR*3*427
S ;
+1 ;
+2 DO DOT^ORY427ES
+3 ;
+4 ;
+5 KILL REMOTE,LOCAL,OPCODE,REF
+6 FOR LINE=1:1:500
SET TEXT=$PIECE($TEXT(DATA+LINE),";",2,999)
if TEXT
QUIT
IF $LENGTH(TEXT)
Begin DoDot:1
+7 SET ^TMP("OCXRULE",$JOB,$ORDER(^TMP("OCXRULE",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
if QUIT
QUIT
+8 ;
+9 ;
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+3 ;;R^"860.3:","860.31:2",2,"E"
+4 ;;D^LOGICAL TRUE
+5 ;;EOR^
+6 ;;KEY^860.3:^CLOZAPINE ANC >= 1.0 & < 1.5
+7 ;;R^"860.3:",.01,"E"
+8 ;;D^CLOZAPINE ANC >= 1.0 & < 1.5
+9 ;;R^"860.3:",.02,"E"
+10 ;;D^CPRS ORDER PRESCAN
+11 ;;R^"860.3:","860.31:1",.01,"E"
+12 ;;D^1
+13 ;;R^"860.3:","860.31:1",1,"E"
+14 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+15 ;;R^"860.3:","860.31:1",2,"E"
+16 ;;D^GREATER THAN
+17 ;;R^"860.3:","860.31:1",3,"E"
+18 ;;D^.999
+19 ;;R^"860.3:","860.31:2",.01,"E"
+20 ;;D^2
+21 ;;R^"860.3:","860.31:2",1,"E"
+22 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+23 ;;R^"860.3:","860.31:2",2,"E"
+24 ;;D^LESS THAN
+25 ;;R^"860.3:","860.31:2",3,"E"
+26 ;;D^1.5
+27 ;;R^"860.3:","860.31:3",.01,"E"
+28 ;;D^3
+29 ;;R^"860.3:","860.31:3",1,"E"
+30 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+31 ;;R^"860.3:","860.31:3",2,"E"
+32 ;;D^LOGICAL TRUE
+33 ;;EOR^
+34 ;;KEY^860.3:^CLOZAPINE DRUG SELECTED
+35 ;;R^"860.3:",.01,"E"
+36 ;;D^CLOZAPINE DRUG SELECTED
+37 ;;R^"860.3:",.02,"E"
+38 ;;D^CPRS ORDER PRESCAN
+39 ;;R^"860.3:","860.31:1",.01,"E"
+40 ;;D^1
+41 ;;R^"860.3:","860.31:1",1,"E"
+42 ;;D^ORDER MODE
+43 ;;R^"860.3:","860.31:1",2,"E"
+44 ;;D^EQ FREE TEXT
+45 ;;R^"860.3:","860.31:1",3,"E"
+46 ;;D^SELECT
+47 ;;R^"860.3:","860.31:2",.01,"E"
+48 ;;D^2
+49 ;;R^"860.3:","860.31:2",1,"E"
+50 ;;D^FILLER
+51 ;;R^"860.3:","860.31:2",2,"E"
+52 ;;D^STARTS WITH
+53 ;;R^"860.3:","860.31:2",3,"E"
+54 ;;D^PS
+55 ;;R^"860.3:","860.31:5",.01,"E"
+56 ;;D^5
+57 ;;R^"860.3:","860.31:5",1,"E"
+58 ;;D^CLOZAPINE MED
+59 ;;R^"860.3:","860.31:5",2,"E"
+60 ;;D^LOGICAL TRUE
+61 ;;EOR^
+62 ;;KEY^860.3:^CLOZAPINE NO ANC W/IN 7 DAYS
+63 ;;R^"860.3:",.01,"E"
+64 ;;D^CLOZAPINE NO ANC W/IN 7 DAYS
+65 ;;R^"860.3:",.02,"E"
+66 ;;D^CPRS ORDER PRESCAN
+67 ;;R^"860.3:","860.31:6",.01,"E"
+68 ;;D^6
+69 ;;R^"860.3:","860.31:6",1,"E"
+70 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+71 ;;R^"860.3:","860.31:6",2,"E"
+72 ;;D^LOGICAL FALSE
+73 ;;EOR^
+74 ;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
+75 ;;R^"860.3:",.01,"E"
+76 ;;D^CLOZAPINE NO WBC W/IN 7 DAYS
+77 ;;R^"860.3:",.02,"E"
+78 ;;D^CPRS ORDER PRESCAN
+79 ;;R^"860.3:","860.31:4",.01,"E"
+80 ;;D^4
+81 ;;R^"860.3:","860.31:4",1,"E"
+82 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+83 ;;R^"860.3:","860.31:4",2,"E"
+84 ;;D^LOGICAL FALSE
+85 ;;EOR^
+86 ;;EOF^OCXS(860.3)^1
+87 ;;SOF^860.2 ORDER CHECK RULE
+88 ;;KEY^860.2:^CLOZAPINE
+89 ;;R^"860.2:",.01,"E"
+90 ;;D^CLOZAPINE
+91 ;;R^"860.2:","860.21:1",.01,"E"
+92 ;;D^NO WBC W/IN 7 DAYS
+93 ;;R^"860.2:","860.21:1",.02,"E"
+94 ;;D^SIMPLE DEFINITION
+95 ;;R^"860.2:","860.21:1",1,"E"
+96 ;;D^CLOZAPINE NO WBC W/IN 7 DAYS
+97 ;;R^"860.2:","860.21:1",2,"E"
+98 ;;D^CLOZAPINE AND NO WBC W/IN 7 DAYS
+99 ;;R^"860.2:","860.21:10",.01,"E"
+100 ;;D^1.0 >= ANC < 1.5
+101 ;;R^"860.2:","860.21:10",.02,"E"
+102 ;;D^SIMPLE DEFINITION
+103 ;;R^"860.2:","860.21:10",1,"E"
+104 ;;D^CLOZAPINE ANC >= 1.0 & < 1.5
+105 ;;R^"860.2:","860.21:4",.01,"E"
+106 ;;D^ANC < 1.0
+107 ;;R^"860.2:","860.21:4",.02,"E"
+108 ;;D^SIMPLE DEFINITION
+109 ;;R^"860.2:","860.21:4",1,"E"
+110 ;;D^CLOZAPINE ANC < 1.0
+111 ;;R^"860.2:","860.21:6",.01,"E"
+112 ;;D^NO ANC W/IN 7 DAYS
+113 ;;R^"860.2:","860.21:6",.02,"E"
+114 ;;D^SIMPLE DEFINITION
+115 ;;R^"860.2:","860.21:6",1,"E"
+116 ;;D^CLOZAPINE NO ANC W/IN 7 DAYS
+117 ;;R^"860.2:","860.21:7",.01,"E"
+118 ;;D^CLOZAPINE
+119 ;;R^"860.2:","860.21:7",.02,"E"
+120 ;;D^SIMPLE DEFINITION
+121 ;;R^"860.2:","860.21:7",1,"E"
+122 ;;D^CLOZAPINE DRUG SELECTED
+123 ;;R^"860.2:","860.22:1",.01,"E"
+124 ;;D^1
+125 ;;R^"860.2:","860.22:1",1,"E"
+126 ;;D^CLOZAPINE AND (NO WBC W/IN 7 DAYS OR NO ANC W/IN 7 DAYS)
+127 ;;R^"860.2:","860.22:1",2,"E"
+128 ;;D^CLOZAPINE APPROPRIATENESS
+129 ;;R^"860.2:","860.22:1",6,"E"
+130 ;;D^Clozapine orders require a CBC/Diff within past 7 days. Please order CBC/Diff with WBC and ANC immediately. Most recent results - |CLOZ LAB RSLTS|
+131 ;;R^"860.2:","860.22:2",.01,"E"
+132 ;;D^2
+133 ;;R^"860.2:","860.22:2",1,"E"
+134 ;;D^CLOZAPINE AND ANC < 1.0
+135 ;;R^"860.2:","860.22:2",2,"E"
+136 ;;D^CLOZAPINE APPROPRIATENESS
+137 ;;R^"860.2:","860.22:2",6,"E"
+138 ;;D^Moderate/Severe Neutropenia - please repeat CBC/Diff including WBC and ANC tests immediately and Daily until ANC stabilizes to greater than or equal to 1000. Most recent results - |CLOZ LAB RSLTS|
+139 ;;R^"860.2:","860.22:3",.01,"E"
+140 ;;D^3
+141 ;;R^"860.2:","860.22:3",1,"E"
+142 ;;D^CLOZAPINE AND (1.0 >= ANC < 1.5)
+143 ;;R^"860.2:","860.22:3",2,"E"
+144 ;;D^CLOZAPINE APPROPRIATENESS
+145 ;;R^"860.2:","860.22:3",6,"E"
+146 ;;D^Mild Neutropenia - please repeat CBC/Diff including WBC and ANC tests immediately and 3X weekly until ANC stabilizes to greater than or equal to 1500. Most recent results - |CLOZ LAB RSLTS|
+147 ;;EOR^
+148 ;;EOF^OCXS(860.2)^1
+149 ;1;
+150 ;