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