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