ORY10505 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY105ES
;
;
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
;
G ^ORY10506
;
Q
;
DATA ;
;
;;D^ORDER NUMBER
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXORD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.OERR_ORDER_FLAGGED
;;R^"863.3:",.01,"E"
;;D^PATIENT.OERR_ORDER_FLAGGED
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OERR
;;R^"863.3:",.05,"E"
;;D^ORDER FLAGGED
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXORD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^4
;;R^"863.3:","863.32:4",.01,"E"
;;D^OCXO HL7 SEGMENT ID
;;R^"863.3:","863.32:5",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:6",.01,"E"
;;D^OCXO DATA DRIVE SOURCE
;;R^"863.3:","863.32:6",1,"E"
;;D^ORD
;;EOR^
;;KEY^863.3:^PATIENT.OERR_ORDER_PATIENT
;;R^"863.3:",.01,"E"
;;D^PATIENT.OERR_ORDER_PATIENT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^ORDER PATIENT
;;R^"863.3:",.06,"E"
;;D^5567
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXORD
;;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:^PATIENT.OPS_FILLER
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_FILLER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^FILLER
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.OPS_ORDER NUMBER
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_ORDER NUMBER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^ORDER NUMBER
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^4
;;EOR^
;;KEY^863.3:^PATIENT.OPS_ORD_MODE
;;R^"863.3:",.01,"E"
;;D^PATIENT.OPS_ORD_MODE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^OPS
;;R^"863.3:",.05,"E"
;;D^ORDER MODE
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSM
;;EOR^
;;KEY^863.3:^PATIENT.ORDER_ITEM_IEN
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORDER_ITEM_IEN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM IEN
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^OCXPSD
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO VT-BAR PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^0
;;EOR^
;;KEY^863.3:^PATIENT.ORD_ITEM_NAME
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORD_ITEM_NAME
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DBL
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^ORDITEM(|ORDER NUMBER|)
;;EOR^
;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_FLAG
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_RENAL_ABNORM_FLAG
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^RENAL TEST ABNORMAL 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^ABREN(|PATIENT IEN|)
;;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:^PATIENT.REC_RENAL_ABNORM_RES
;;R^"863.3:",.01,"E"
;;D^PATIENT.REC_RENAL_ABNORM_RES
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BIOCHEMICAL RESULTS
;;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^ABREN(|PATIENT 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
;;EOR^
;;KEY^863.3:^PATIENT.SITE_FLAGGED_ORDER
;;R^"863.3:",.01,"E"
;;D^PATIENT.SITE_FLAGGED_ORDER
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SITE FLAG ORDER
;;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^SITEORD^ORB3F1(|ORDER NUMBER|,|INPT/OUTPT|)
;;EOR^
;;EOF^OCXS(863.3)^1
;;SOF^860.9 ORDER CHECK NATIONAL TERM
;;KEY^860.9:^ANGIOGRAM (PERIPHERAL)
;;R^"860.9:",.01,"E"
;;D^ANGIOGRAM (PERIPHERAL)
;;R^"860.9:",.02,"E"
;;D^101.43
;;EOR^
;;KEY^860.9:^BLOOD SPECIMEN
;;R^"860.9:",.01,"E"
;;D^BLOOD SPECIMEN
;;R^"860.9:",.02,"E"
;;D^61
;;EOR^
;;KEY^860.9:^DANGEROUS MEDS FOR PTS > 64
;;R^"860.9:",.01,"E"
;;D^DANGEROUS MEDS FOR PTS > 64
;;R^"860.9:",.02,"E"
;;D^101.43
;;R^"860.9:",2,"E"
;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
;;EOR^
;;KEY^860.9:^DNR
;;R^"860.9:",.01,"E"
;;D^DNR
;;R^"860.9:",.02,"E"
;;D^101.43
;;EOR^
;;KEY^860.9:^FOOD-DRUG INTERACTION MED
;;R^"860.9:",.01,"E"
;;D^FOOD-DRUG INTERACTION MED
;;R^"860.9:",.02,"E"
;;D^101.43
;;R^"860.9:",2,"E"
;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
;;EOR^
;;KEY^860.9:^NPO
;;R^"860.9:",.01,"E"
;;D^NPO
;;R^"860.9:",.02,"E"
;;D^101.43
;;EOR^
;;KEY^860.9:^ONE TIME MED
;;R^"860.9:",.01,"E"
;;D^ONE TIME MED
;;R^"860.9:",.02,"E"
;;D^51.1
;;R^"860.9:",2,"E"
;;D^I $E($P(^(0),U,4),1,2)="PS"
;;EOR^
;;KEY^860.9:^PARTIAL THROMBOPLASTIN TIME
;;R^"860.9:",.01,"E"
;;D^PARTIAL THROMBOPLASTIN TIME
;;R^"860.9:",.02,"E"
;;D^101.43
;;EOR^
;;KEY^860.9:^PROTHROMBIN TIME
;;R^"860.9:",.01,"E"
;;D^PROTHROMBIN TIME
;;R^"860.9:",.02,"E"
;;D^101.43
;;EOR^
;;KEY^860.9:^SERUM CREATININE
;;R^"860.9:",.01,"E"
;;D^SERUM CREATININE
;;R^"860.9:",.02,"E"
;;D^60
;;EOR^
;;KEY^860.9:^SERUM SPECIMEN
;;R^"860.9:",.01,"E"
;;D^SERUM SPECIMEN
;;R^"860.9:",.02,"E"
;;D^61
;;EOR^
;;KEY^860.9:^SERUM UREA NITROGEN
;;R^"860.9:",.01,"E"
;;D^SERUM UREA NITROGEN
;;R^"860.9:",.02,"E"
;;D^60
;;EOR^
;;KEY^860.9:^WBC
;;R^"860.9:",.01,"E"
;;D^WBC
;;R^"860.9:",.02,"E"
;;D^60
;;EOR^
;;EOF^OCXS(860.9)^1
;;SOF^860.8 ORDER CHECK COMPILER FUNCTIONS
;;KEY^860.8:^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
;;R^"860.8:",.01,"E"
;;D^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
;;R^"860.8:",.02,"E"
;;D^DT2INT
;;R^"860.8:",1,1
;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
;;R^"860.8:",1,2
;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
;;R^"860.8:",1,3
;;D^ ; ; Them into Seconds and then adding them all together into one big integer
;;R^"860.8:",100,1
;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
;;R^"860.8:",100,2
;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
;;R^"860.8:",100,3
;;D^ ; ; Them into Seconds and then adding them all together into one big integer
;1;
;
ORY10505 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY105ES
+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 GOTO ^ORY10506
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;D^ORDER NUMBER
+3 ;;R^"863.3:",.06,"E"
+4 ;;D^99
+5 ;;R^"863.3:","863.32:1",.01,"E"
+6 ;;D^OCXO VARIABLE NAME
+7 ;;R^"863.3:","863.32:1",1,"E"
+8 ;;D^OCXORD
+9 ;;R^"863.3:","863.32:2",.01,"E"
+10 ;;D^OCXO UP-ARROW PIECE NUMBER
+11 ;;R^"863.3:","863.32:2",1,"E"
+12 ;;D^2
+13 ;;EOR^
+14 ;;KEY^863.3:^PATIENT.OERR_ORDER_FLAGGED
+15 ;;R^"863.3:",.01,"E"
+16 ;;D^PATIENT.OERR_ORDER_FLAGGED
+17 ;;R^"863.3:",.02,"E"
+18 ;;D^PATIENT
+19 ;;R^"863.3:",.04,"E"
+20 ;;D^OERR
+21 ;;R^"863.3:",.05,"E"
+22 ;;D^ORDER FLAGGED
+23 ;;R^"863.3:",.06,"E"
+24 ;;D^99
+25 ;;R^"863.3:","863.32:1",.01,"E"
+26 ;;D^OCXO VARIABLE NAME
+27 ;;R^"863.3:","863.32:1",1,"E"
+28 ;;D^OCXORD
+29 ;;R^"863.3:","863.32:2",.01,"E"
+30 ;;D^OCXO VT-BAR PIECE NUMBER
+31 ;;R^"863.3:","863.32:3",.01,"E"
+32 ;;D^OCXO UP-ARROW PIECE NUMBER
+33 ;;R^"863.3:","863.32:3",1,"E"
+34 ;;D^4
+35 ;;R^"863.3:","863.32:4",.01,"E"
+36 ;;D^OCXO HL7 SEGMENT ID
+37 ;;R^"863.3:","863.32:5",.01,"E"
+38 ;;D^OCXO FILE POINTER
+39 ;;R^"863.3:","863.32:6",.01,"E"
+40 ;;D^OCXO DATA DRIVE SOURCE
+41 ;;R^"863.3:","863.32:6",1,"E"
+42 ;;D^ORD
+43 ;;EOR^
+44 ;;KEY^863.3:^PATIENT.OERR_ORDER_PATIENT
+45 ;;R^"863.3:",.01,"E"
+46 ;;D^PATIENT.OERR_ORDER_PATIENT
+47 ;;R^"863.3:",.02,"E"
+48 ;;D^PATIENT
+49 ;;R^"863.3:",.05,"E"
+50 ;;D^ORDER PATIENT
+51 ;;R^"863.3:",.06,"E"
+52 ;;D^5567
+53 ;;R^"863.3:","863.32:1",.01,"E"
+54 ;;D^OCXO VARIABLE NAME
+55 ;;R^"863.3:","863.32:1",1,"E"
+56 ;;D^OCXORD
+57 ;;R^"863.3:","863.32:2",.01,"E"
+58 ;;D^OCXO UP-ARROW PIECE NUMBER
+59 ;;R^"863.3:","863.32:2",1,"E"
+60 ;;D^1
+61 ;;EOR^
+62 ;;KEY^863.3:^PATIENT.OPS_FILLER
+63 ;;R^"863.3:",.01,"E"
+64 ;;D^PATIENT.OPS_FILLER
+65 ;;R^"863.3:",.02,"E"
+66 ;;D^PATIENT
+67 ;;R^"863.3:",.04,"E"
+68 ;;D^OPS
+69 ;;R^"863.3:",.05,"E"
+70 ;;D^FILLER
+71 ;;R^"863.3:",.06,"E"
+72 ;;D^99
+73 ;;R^"863.3:","863.32:1",.01,"E"
+74 ;;D^OCXO VARIABLE NAME
+75 ;;R^"863.3:","863.32:1",1,"E"
+76 ;;D^OCXPSD
+77 ;;R^"863.3:","863.32:2",.01,"E"
+78 ;;D^OCXO VT-BAR PIECE NUMBER
+79 ;;R^"863.3:","863.32:2",1,"E"
+80 ;;D^1
+81 ;;EOR^
+82 ;;KEY^863.3:^PATIENT.OPS_ORDER NUMBER
+83 ;;R^"863.3:",.01,"E"
+84 ;;D^PATIENT.OPS_ORDER NUMBER
+85 ;;R^"863.3:",.02,"E"
+86 ;;D^PATIENT
+87 ;;R^"863.3:",.04,"E"
+88 ;;D^OPS
+89 ;;R^"863.3:",.05,"E"
+90 ;;D^ORDER NUMBER
+91 ;;R^"863.3:",.06,"E"
+92 ;;D^99
+93 ;;R^"863.3:","863.32:1",.01,"E"
+94 ;;D^OCXO VARIABLE NAME
+95 ;;R^"863.3:","863.32:1",1,"E"
+96 ;;D^OCXPSD
+97 ;;R^"863.3:","863.32:2",.01,"E"
+98 ;;D^OCXO VT-BAR PIECE NUMBER
+99 ;;R^"863.3:","863.32:2",1,"E"
+100 ;;D^4
+101 ;;EOR^
+102 ;;KEY^863.3:^PATIENT.OPS_ORD_MODE
+103 ;;R^"863.3:",.01,"E"
+104 ;;D^PATIENT.OPS_ORD_MODE
+105 ;;R^"863.3:",.02,"E"
+106 ;;D^PATIENT
+107 ;;R^"863.3:",.04,"E"
+108 ;;D^OPS
+109 ;;R^"863.3:",.05,"E"
+110 ;;D^ORDER MODE
+111 ;;R^"863.3:",.06,"E"
+112 ;;D^99
+113 ;;R^"863.3:","863.32:1",.01,"E"
+114 ;;D^OCXO VARIABLE NAME
+115 ;;R^"863.3:","863.32:1",1,"E"
+116 ;;D^OCXPSM
+117 ;;EOR^
+118 ;;KEY^863.3:^PATIENT.ORDER_ITEM_IEN
+119 ;;R^"863.3:",.01,"E"
+120 ;;D^PATIENT.ORDER_ITEM_IEN
+121 ;;R^"863.3:",.02,"E"
+122 ;;D^PATIENT
+123 ;;R^"863.3:",.05,"E"
+124 ;;D^ORDERABLE ITEM IEN
+125 ;;R^"863.3:",.06,"E"
+126 ;;D^99
+127 ;;R^"863.3:","863.32:1",.01,"E"
+128 ;;D^OCXO VARIABLE NAME
+129 ;;R^"863.3:","863.32:1",1,"E"
+130 ;;D^OCXPSD
+131 ;;R^"863.3:","863.32:2",.01,"E"
+132 ;;D^OCXO VT-BAR PIECE NUMBER
+133 ;;R^"863.3:","863.32:2",1,"E"
+134 ;;D^0
+135 ;;EOR^
+136 ;;KEY^863.3:^PATIENT.ORD_ITEM_NAME
+137 ;;R^"863.3:",.01,"E"
+138 ;;D^PATIENT.ORD_ITEM_NAME
+139 ;;R^"863.3:",.02,"E"
+140 ;;D^PATIENT
+141 ;;R^"863.3:",.04,"E"
+142 ;;D^DBL
+143 ;;R^"863.3:",.05,"E"
+144 ;;D^ORDERABLE ITEM
+145 ;;R^"863.3:",.06,"E"
+146 ;;D^99
+147 ;;R^"863.3:","863.32:1",.01,"E"
+148 ;;D^OCXO EXTERNAL FUNCTION CALL
+149 ;;R^"863.3:","863.32:1",1,"E"
+150 ;;D^ORDITEM(|ORDER NUMBER|)
+151 ;;EOR^
+152 ;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_FLAG
+153 ;;R^"863.3:",.01,"E"
+154 ;;D^PATIENT.REC_RENAL_ABNORM_FLAG
+155 ;;R^"863.3:",.02,"E"
+156 ;;D^PATIENT
+157 ;;R^"863.3:",.05,"E"
+158 ;;D^RENAL TEST ABNORMAL FLAG
+159 ;;R^"863.3:",.06,"E"
+160 ;;D^999
+161 ;;R^"863.3:","863.32:1",.01,"E"
+162 ;;D^OCXO EXTERNAL FUNCTION CALL
+163 ;;R^"863.3:","863.32:1",1,"E"
+164 ;;D^ABREN(|PATIENT IEN|)
+165 ;;R^"863.3:","863.32:2",.01,"E"
+166 ;;D^OCXO UP-ARROW PIECE NUMBER
+167 ;;R^"863.3:","863.32:2",1,"E"
+168 ;;D^1
+169 ;;EOR^
+170 ;;KEY^863.3:^PATIENT.REC_RENAL_ABNORM_RES
+171 ;;R^"863.3:",.01,"E"
+172 ;;D^PATIENT.REC_RENAL_ABNORM_RES
+173 ;;R^"863.3:",.02,"E"
+174 ;;D^PATIENT
+175 ;;R^"863.3:",.05,"E"
+176 ;;D^BIOCHEMICAL RESULTS
+177 ;;R^"863.3:",.06,"E"
+178 ;;D^999
+179 ;;R^"863.3:","863.32:1",.01,"E"
+180 ;;D^OCXO EXTERNAL FUNCTION CALL
+181 ;;R^"863.3:","863.32:1",1,"E"
+182 ;;D^ABREN(|PATIENT IEN|)
+183 ;;R^"863.3:","863.32:2",.01,"E"
+184 ;;D^OCXO UP-ARROW PIECE NUMBER
+185 ;;R^"863.3:","863.32:2",1,"E"
+186 ;;D^2
+187 ;;EOR^
+188 ;;KEY^863.3:^PATIENT.SITE_FLAGGED_ORDER
+189 ;;R^"863.3:",.01,"E"
+190 ;;D^PATIENT.SITE_FLAGGED_ORDER
+191 ;;R^"863.3:",.02,"E"
+192 ;;D^PATIENT
+193 ;;R^"863.3:",.05,"E"
+194 ;;D^SITE FLAG ORDER
+195 ;;R^"863.3:",.06,"E"
+196 ;;D^999
+197 ;;R^"863.3:","863.32:1",.01,"E"
+198 ;;D^OCXO EXTERNAL FUNCTION CALL
+199 ;;R^"863.3:","863.32:1",1,"E"
+200 ;;D^SITEORD^ORB3F1(|ORDER NUMBER|,|INPT/OUTPT|)
+201 ;;EOR^
+202 ;;EOF^OCXS(863.3)^1
+203 ;;SOF^860.9 ORDER CHECK NATIONAL TERM
+204 ;;KEY^860.9:^ANGIOGRAM (PERIPHERAL)
+205 ;;R^"860.9:",.01,"E"
+206 ;;D^ANGIOGRAM (PERIPHERAL)
+207 ;;R^"860.9:",.02,"E"
+208 ;;D^101.43
+209 ;;EOR^
+210 ;;KEY^860.9:^BLOOD SPECIMEN
+211 ;;R^"860.9:",.01,"E"
+212 ;;D^BLOOD SPECIMEN
+213 ;;R^"860.9:",.02,"E"
+214 ;;D^61
+215 ;;EOR^
+216 ;;KEY^860.9:^DANGEROUS MEDS FOR PTS > 64
+217 ;;R^"860.9:",.01,"E"
+218 ;;D^DANGEROUS MEDS FOR PTS > 64
+219 ;;R^"860.9:",.02,"E"
+220 ;;D^101.43
+221 ;;R^"860.9:",2,"E"
+222 ;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
+223 ;;EOR^
+224 ;;KEY^860.9:^DNR
+225 ;;R^"860.9:",.01,"E"
+226 ;;D^DNR
+227 ;;R^"860.9:",.02,"E"
+228 ;;D^101.43
+229 ;;EOR^
+230 ;;KEY^860.9:^FOOD-DRUG INTERACTION MED
+231 ;;R^"860.9:",.01,"E"
+232 ;;D^FOOD-DRUG INTERACTION MED
+233 ;;R^"860.9:",.02,"E"
+234 ;;D^101.43
+235 ;;R^"860.9:",2,"E"
+236 ;;D^I $P($G(^ORD(100.98,$P($G(^ORD(101.43,+Y,0)),U,5),0)),U)="PHARMACY"
+237 ;;EOR^
+238 ;;KEY^860.9:^NPO
+239 ;;R^"860.9:",.01,"E"
+240 ;;D^NPO
+241 ;;R^"860.9:",.02,"E"
+242 ;;D^101.43
+243 ;;EOR^
+244 ;;KEY^860.9:^ONE TIME MED
+245 ;;R^"860.9:",.01,"E"
+246 ;;D^ONE TIME MED
+247 ;;R^"860.9:",.02,"E"
+248 ;;D^51.1
+249 ;;R^"860.9:",2,"E"
+250 ;;D^I $E($P(^(0),U,4),1,2)="PS"
+251 ;;EOR^
+252 ;;KEY^860.9:^PARTIAL THROMBOPLASTIN TIME
+253 ;;R^"860.9:",.01,"E"
+254 ;;D^PARTIAL THROMBOPLASTIN TIME
+255 ;;R^"860.9:",.02,"E"
+256 ;;D^101.43
+257 ;;EOR^
+258 ;;KEY^860.9:^PROTHROMBIN TIME
+259 ;;R^"860.9:",.01,"E"
+260 ;;D^PROTHROMBIN TIME
+261 ;;R^"860.9:",.02,"E"
+262 ;;D^101.43
+263 ;;EOR^
+264 ;;KEY^860.9:^SERUM CREATININE
+265 ;;R^"860.9:",.01,"E"
+266 ;;D^SERUM CREATININE
+267 ;;R^"860.9:",.02,"E"
+268 ;;D^60
+269 ;;EOR^
+270 ;;KEY^860.9:^SERUM SPECIMEN
+271 ;;R^"860.9:",.01,"E"
+272 ;;D^SERUM SPECIMEN
+273 ;;R^"860.9:",.02,"E"
+274 ;;D^61
+275 ;;EOR^
+276 ;;KEY^860.9:^SERUM UREA NITROGEN
+277 ;;R^"860.9:",.01,"E"
+278 ;;D^SERUM UREA NITROGEN
+279 ;;R^"860.9:",.02,"E"
+280 ;;D^60
+281 ;;EOR^
+282 ;;KEY^860.9:^WBC
+283 ;;R^"860.9:",.01,"E"
+284 ;;D^WBC
+285 ;;R^"860.9:",.02,"E"
+286 ;;D^60
+287 ;;EOR^
+288 ;;EOF^OCXS(860.9)^1
+289 ;;SOF^860.8 ORDER CHECK COMPILER FUNCTIONS
+290 ;;KEY^860.8:^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
+291 ;;R^"860.8:",.01,"E"
+292 ;;D^CONVERT DATE FROM FILEMAN FORMAT TO OCX FORMAT
+293 ;;R^"860.8:",.02,"E"
+294 ;;D^DT2INT
+295 ;;R^"860.8:",1,1
+296 ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
+297 ;;R^"860.8:",1,2
+298 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
+299 ;;R^"860.8:",1,3
+300 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
+301 ;;R^"860.8:",100,1
+302 ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
+303 ;;R^"860.8:",100,2
+304 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
+305 ;;R^"860.8:",100,3
+306 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
+307 ;1;
+308 ;