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