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