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