OCXDI02A ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXDIAG
;
;
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("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
;
G ^OCXDI02B
;
Q
;
DATA ;
;
;;R^"863.3:",.01,"E"
;;D^PATIENT.WBC_W/IN_7_DAYS_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^WBC W/IN 7 DAYS
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^RECWBC(|PATIENT IEN|,7)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^QUERY.DATA
;;R^"863.3:",.01,"E"
;;D^QUERY.DATA
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^QUERY DATA
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXGND
;;EOR^
;;KEY^863.3:^PATIENT.CLOZ_ANC_W/IN_7_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.CLOZ_ANC_W/IN_7_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CLOZAPINE ANC W/IN 7 FLAG
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^3
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.CLOZ_ANC_W/IN_7_RSLT
;;R^"863.3:",.01,"E"
;;D^PATIENT.CLOZ_ANC_W/IN_7_RSLT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CLOZAPINE ANC W/IN 7 RESULT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^3
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.CLOZ_WBC_W/IN_7_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.CLOZ_WBC_W/IN_7_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CLOZAPINE WBC W/IN 7 FLAG
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.CLOZ_WBC_W/IN_7_RSLT
;;R^"863.3:",.01,"E"
;;D^PATIENT.CLOZ_WBC_W/IN_7_RSLT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CLOZAPINE WBC W/IN 7 RESULT
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO SEMI-COLON PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^2
;;EOR^
;;EOF^OCXS(863.3)^1
;;SOF^863 OCX MDD CLASS
;;KEY^863:^APPLICATION
;;R^"863:",.01,"E"
;;D^APPLICATION
;;R^"863:",.02,"E"
;;D^863.1
;;R^"863:",2,1
;;D^The "application" determines what subjects are available to the end user.
;;R^"863:","863.01:1",.01,"E"
;;D^ADD CALL
;;R^"863:","863.01:1",1,"E"
;;D^ADD^OCXMGRU
;;R^"863:","863.01:2",.01,"E"
;;D^DEL CALL
;;R^"863:","863.01:2",1,"E"
;;D^DEL^OCXMGRU
;;R^"863:","863.01:3",.01,"E"
;;D^EDIT CALL
;;R^"863:","863.01:3",1,"E"
;;D^EDIT^OCXMGRU
;;R^"863:","863.01:4",.01,"E"
;;D^VIEW CALL
;;R^"863:","863.01:4",1,"E"
;;D^VIEW^OCXMGRU
;;EOR^
;;KEY^863:^SUBJECT
;;R^"863:",.01,"E"
;;D^SUBJECT
;;R^"863:",.02,"E"
;;D^863.2
;;R^"863:",2,1
;;D^The view. What you are looking for; e.g., patients , providers, etc.
;;R^"863:","863.01:1",.01,"E"
;;D^ADD CALL
;;R^"863:","863.01:1",1,"E"
;;D^ADD^OCXMGRU
;;R^"863:","863.01:2",.01,"E"
;;D^DEL CALL
;;R^"863:","863.01:2",1,"E"
;;D^DEL^OCXMGRU
;;R^"863:","863.01:3",.01,"E"
;;D^EDIT CALL
;;R^"863:","863.01:3",1,"E"
;;D^EDIT^OCXMGRU
;;R^"863:","863.01:4",.01,"E"
;;D^VIEW CALL
;;R^"863:","863.01:4",1,"E"
;;D^VIEW^OCXMGRU
;;EOR^
;;KEY^863:^LINK
;;R^"863:",.01,"E"
;;D^LINK
;;R^"863:",.02,"E"
;;D^863.3
;;R^"863:",2,1
;;D^The pathway between a subject and atrribute.
;;R^"863:","863.01:1",.01,"E"
;;D^ADD CALL
;;R^"863:","863.01:1",1,"E"
;;D^ADD^OCXMGRU
;;R^"863:","863.01:2",.01,"E"
;;D^DEL CALL
;;R^"863:","863.01:2",1,"E"
;;D^DEL^OCXMGRU
;;R^"863:","863.01:3",.01,"E"
;;D^EDIT CALL
;;R^"863:","863.01:3",1,"E"
;;D^EDIT^OCXMGRU
;;R^"863:","863.01:4",.01,"E"
;;D^VIEW CALL
;;R^"863:","863.01:4",1,"E"
;;D^VIEW^OCXMGRU
;;EOR^
;;KEY^863:^ATTRIBUTE
;;R^"863:",.01,"E"
;;D^ATTRIBUTE
;;R^"863:",.02,"E"
;;D^863.4
;;R^"863:",2,1
;;D^Some destinguishing characteristic of the subject; e.g., sex, DOB, etc.
;;R^"863:","863.01:1",.01,"E"
;1;
;
OCXDI02A ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXDIAG
+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("OCXDIAG",$JOB,$ORDER(^TMP("OCXDIAG",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
IF QUIT
QUIT
+8 ;
+9 GOTO ^OCXDI02B
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.3:",.01,"E"
+3 ;;D^PATIENT.WBC_W/IN_7_DAYS_FLAG
+4 ;;R^"863.3:",.02,"E"
+5 ;;D^PATIENT
+6 ;;R^"863.3:",.05,"E"
+7 ;;D^WBC W/IN 7 DAYS
+8 ;;R^"863.3:",.06,"E"
+9 ;;D^999
+10 ;;R^"863.3:","863.32:1",.01,"E"
+11 ;;D^OCXO EXTERNAL FUNCTION CALL
+12 ;;R^"863.3:","863.32:1",1,"E"
+13 ;;D^RECWBC(|PATIENT IEN|,7)
+14 ;;R^"863.3:","863.32:2",.01,"E"
+15 ;;D^OCXO UP-ARROW PIECE NUMBER
+16 ;;R^"863.3:","863.32:2",1,"E"
+17 ;;D^1
+18 ;;EOR^
+19 ;;KEY^863.3:^QUERY.DATA
+20 ;;R^"863.3:",.01,"E"
+21 ;;D^QUERY.DATA
+22 ;;R^"863.3:",.02,"E"
+23 ;;D^PATIENT
+24 ;;R^"863.3:",.05,"E"
+25 ;;D^QUERY DATA
+26 ;;R^"863.3:","863.32:1",.01,"E"
+27 ;;D^OCXO VARIABLE NAME
+28 ;;R^"863.3:","863.32:1",1,"E"
+29 ;;D^OCXGND
+30 ;;EOR^
+31 ;;KEY^863.3:^PATIENT.CLOZ_ANC_W/IN_7_FLAG
+32 ;;R^"863.3:",.01,"E"
+33 ;;D^PATIENT.CLOZ_ANC_W/IN_7_FLAG
+34 ;;R^"863.3:",.02,"E"
+35 ;;D^PATIENT
+36 ;;R^"863.3:",.05,"E"
+37 ;;D^CLOZAPINE ANC W/IN 7 FLAG
+38 ;;R^"863.3:","863.32:1",.01,"E"
+39 ;;D^OCXO EXTERNAL FUNCTION CALL
+40 ;;R^"863.3:","863.32:1",1,"E"
+41 ;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
+42 ;;R^"863.3:","863.32:2",.01,"E"
+43 ;;D^OCXO UP-ARROW PIECE NUMBER
+44 ;;R^"863.3:","863.32:2",1,"E"
+45 ;;D^3
+46 ;;R^"863.3:","863.32:3",.01,"E"
+47 ;;D^OCXO SEMI-COLON PIECE NUMBER
+48 ;;R^"863.3:","863.32:3",1,"E"
+49 ;;D^1
+50 ;;EOR^
+51 ;;KEY^863.3:^PATIENT.CLOZ_ANC_W/IN_7_RSLT
+52 ;;R^"863.3:",.01,"E"
+53 ;;D^PATIENT.CLOZ_ANC_W/IN_7_RSLT
+54 ;;R^"863.3:",.02,"E"
+55 ;;D^PATIENT
+56 ;;R^"863.3:",.05,"E"
+57 ;;D^CLOZAPINE ANC W/IN 7 RESULT
+58 ;;R^"863.3:","863.32:1",.01,"E"
+59 ;;D^OCXO EXTERNAL FUNCTION CALL
+60 ;;R^"863.3:","863.32:1",1,"E"
+61 ;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
+62 ;;R^"863.3:","863.32:2",.01,"E"
+63 ;;D^OCXO UP-ARROW PIECE NUMBER
+64 ;;R^"863.3:","863.32:2",1,"E"
+65 ;;D^3
+66 ;;R^"863.3:","863.32:3",.01,"E"
+67 ;;D^OCXO SEMI-COLON PIECE NUMBER
+68 ;;R^"863.3:","863.32:3",1,"E"
+69 ;;D^2
+70 ;;EOR^
+71 ;;KEY^863.3:^PATIENT.CLOZ_WBC_W/IN_7_FLAG
+72 ;;R^"863.3:",.01,"E"
+73 ;;D^PATIENT.CLOZ_WBC_W/IN_7_FLAG
+74 ;;R^"863.3:",.02,"E"
+75 ;;D^PATIENT
+76 ;;R^"863.3:",.05,"E"
+77 ;;D^CLOZAPINE WBC W/IN 7 FLAG
+78 ;;R^"863.3:",.06,"E"
+79 ;;D^999
+80 ;;R^"863.3:","863.32:1",.01,"E"
+81 ;;D^OCXO EXTERNAL FUNCTION CALL
+82 ;;R^"863.3:","863.32:1",1,"E"
+83 ;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
+84 ;;R^"863.3:","863.32:2",.01,"E"
+85 ;;D^OCXO UP-ARROW PIECE NUMBER
+86 ;;R^"863.3:","863.32:2",1,"E"
+87 ;;D^2
+88 ;;R^"863.3:","863.32:3",.01,"E"
+89 ;;D^OCXO SEMI-COLON PIECE NUMBER
+90 ;;R^"863.3:","863.32:3",1,"E"
+91 ;;D^1
+92 ;;EOR^
+93 ;;KEY^863.3:^PATIENT.CLOZ_WBC_W/IN_7_RSLT
+94 ;;R^"863.3:",.01,"E"
+95 ;;D^PATIENT.CLOZ_WBC_W/IN_7_RSLT
+96 ;;R^"863.3:",.02,"E"
+97 ;;D^PATIENT
+98 ;;R^"863.3:",.05,"E"
+99 ;;D^CLOZAPINE WBC W/IN 7 RESULT
+100 ;;R^"863.3:","863.32:1",.01,"E"
+101 ;;D^OCXO EXTERNAL FUNCTION CALL
+102 ;;R^"863.3:","863.32:1",1,"E"
+103 ;;D^CLOZLABS^ORKLR(|PATIENT IEN|,7,|DISP DRUG IEN|)
+104 ;;R^"863.3:","863.32:2",.01,"E"
+105 ;;D^OCXO UP-ARROW PIECE NUMBER
+106 ;;R^"863.3:","863.32:2",1,"E"
+107 ;;D^2
+108 ;;R^"863.3:","863.32:3",.01,"E"
+109 ;;D^OCXO SEMI-COLON PIECE NUMBER
+110 ;;R^"863.3:","863.32:3",1,"E"
+111 ;;D^2
+112 ;;EOR^
+113 ;;EOF^OCXS(863.3)^1
+114 ;;SOF^863 OCX MDD CLASS
+115 ;;KEY^863:^APPLICATION
+116 ;;R^"863:",.01,"E"
+117 ;;D^APPLICATION
+118 ;;R^"863:",.02,"E"
+119 ;;D^863.1
+120 ;;R^"863:",2,1
+121 ;;D^The "application" determines what subjects are available to the end user.
+122 ;;R^"863:","863.01:1",.01,"E"
+123 ;;D^ADD CALL
+124 ;;R^"863:","863.01:1",1,"E"
+125 ;;D^ADD^OCXMGRU
+126 ;;R^"863:","863.01:2",.01,"E"
+127 ;;D^DEL CALL
+128 ;;R^"863:","863.01:2",1,"E"
+129 ;;D^DEL^OCXMGRU
+130 ;;R^"863:","863.01:3",.01,"E"
+131 ;;D^EDIT CALL
+132 ;;R^"863:","863.01:3",1,"E"
+133 ;;D^EDIT^OCXMGRU
+134 ;;R^"863:","863.01:4",.01,"E"
+135 ;;D^VIEW CALL
+136 ;;R^"863:","863.01:4",1,"E"
+137 ;;D^VIEW^OCXMGRU
+138 ;;EOR^
+139 ;;KEY^863:^SUBJECT
+140 ;;R^"863:",.01,"E"
+141 ;;D^SUBJECT
+142 ;;R^"863:",.02,"E"
+143 ;;D^863.2
+144 ;;R^"863:",2,1
+145 ;;D^The view. What you are looking for; e.g., patients , providers, etc.
+146 ;;R^"863:","863.01:1",.01,"E"
+147 ;;D^ADD CALL
+148 ;;R^"863:","863.01:1",1,"E"
+149 ;;D^ADD^OCXMGRU
+150 ;;R^"863:","863.01:2",.01,"E"
+151 ;;D^DEL CALL
+152 ;;R^"863:","863.01:2",1,"E"
+153 ;;D^DEL^OCXMGRU
+154 ;;R^"863:","863.01:3",.01,"E"
+155 ;;D^EDIT CALL
+156 ;;R^"863:","863.01:3",1,"E"
+157 ;;D^EDIT^OCXMGRU
+158 ;;R^"863:","863.01:4",.01,"E"
+159 ;;D^VIEW CALL
+160 ;;R^"863:","863.01:4",1,"E"
+161 ;;D^VIEW^OCXMGRU
+162 ;;EOR^
+163 ;;KEY^863:^LINK
+164 ;;R^"863:",.01,"E"
+165 ;;D^LINK
+166 ;;R^"863:",.02,"E"
+167 ;;D^863.3
+168 ;;R^"863:",2,1
+169 ;;D^The pathway between a subject and atrribute.
+170 ;;R^"863:","863.01:1",.01,"E"
+171 ;;D^ADD CALL
+172 ;;R^"863:","863.01:1",1,"E"
+173 ;;D^ADD^OCXMGRU
+174 ;;R^"863:","863.01:2",.01,"E"
+175 ;;D^DEL CALL
+176 ;;R^"863:","863.01:2",1,"E"
+177 ;;D^DEL^OCXMGRU
+178 ;;R^"863:","863.01:3",.01,"E"
+179 ;;D^EDIT CALL
+180 ;;R^"863:","863.01:3",1,"E"
+181 ;;D^EDIT^OCXMGRU
+182 ;;R^"863:","863.01:4",.01,"E"
+183 ;;D^VIEW CALL
+184 ;;R^"863:","863.01:4",1,"E"
+185 ;;D^VIEW^OCXMGRU
+186 ;;EOR^
+187 ;;KEY^863:^ATTRIBUTE
+188 ;;R^"863:",.01,"E"
+189 ;;D^ATTRIBUTE
+190 ;;R^"863:",.02,"E"
+191 ;;D^863.4
+192 ;;R^"863:",2,1
+193 ;;D^Some destinguishing characteristic of the subject; e.g., sex, DOB, etc.
+194 ;;R^"863:","863.01:1",.01,"E"
+195 ;1;
+196 ;