ORY01106 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1011) ;APR 8,2013 at 18:46
;;3.0;ORDER ENTRY/RESULTS REPORTING;**1011**;Dec 17,1997;Build 242
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY011ES
;
;
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 ^ORY01107
;
Q
;
DATA ;
;
;;R^"860.8:",1,2
;;D^ ; ; of record D0 in file OCXFILE
;;R^"860.8:",100,1
;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
;;R^"860.8:",100,2
;;D^ ; ; of record D0 in file OCXFILE
;;R^"860.8:",100,3
;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," FILE: ",$G(OCXFILE)," D0: ",$G(D0)
;;R^"860.8:",100,4
;;D^ ; Q:'$G(D0) "" Q:'$L($G(OCXFILE)) ""
;;R^"860.8:",100,5
;;D^ ; N GLREF
;;R^"860.8:",100,6
;;D^ ; I '(OCXFILE=(+OCXFILE)) S GLREF=U_OCXFILE
;;R^"860.8:",100,7
;;D^ ; E S GLREF=$$FILE^OCXBDTD(+OCXFILE,"GLOBAL NAME") Q:'$L(GLREF) ""
;;R^"860.8:",100,8
;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," GLREF: ",GLREF," RESOLVES TO: ",$P($G(@(GLREF_(+D0)_",0)")),U,1)
;;R^"860.8:",100,9
;;D^ ; Q $P($G(@(GLREF_(+D0)_",0)")),U,1)
;;R^"860.8:",100,10
;;D^ ; ;
;;EOR^
;;KEY^860.8:^SS REFILL REQUEST
;;R^"860.8:",.01,"E"
;;D^SS REFILL REQUEST
;;R^"860.8:",.02,"E"
;;D^REFILL
;;R^"860.8:",1,1
;;D^This function checks to see if an order was a refill request. If yes, a 1 is returned. Othewise a zero is returned.
;;R^"860.8:",100,1
;;D^ ;REFILL(ORIEN) ; determine if order is a refill request.
;;R^"860.8:",100,2
;;D^ ; ; rtn 1 if a refill request, 0 otherwise
;;R^"860.8:",100,3
;;D^ ; N RR
;;R^"860.8:",100,4
;;D^ ; S RR=$$VALUE^ORCSAVE2(ORIEN,"SSRREQIEN")
;;R^"860.8:",100,5
;;D^ ; Q:+RR 1
;;R^"860.8:",100,6
;;D^ ; Q 0
;;R^"860.8:",100,7
;;D^ ; ;
;;EOR^
;;KEY^860.8:^STRING CONTAINS ONE OF A LIST OF VALUES
;;R^"860.8:",.01,"E"
;;D^STRING CONTAINS ONE OF A LIST OF VALUES
;;R^"860.8:",.02,"E"
;;D^CLIST
;;R^"860.8:",100,1
;;D^ ;CLIST(DATA,LIST) ; DOES THE DATA FIELD CONTAIN AN ELEMENT IN THE LIST
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^T+; W:$G(OCXTRACE) !!,"$$CLIST(",DATA,",""",LIST,""")"
;;R^"860.8:",100,4
;;D^ ; N PC F PC=1:1:$L(LIST,","),0 I PC,$L($P(LIST,",",PC)),(DATA[$P(LIST,",",PC)) Q
;;R^"860.8:",100,5
;;D^ ; Q ''PC
;;EOR^
;;EOF^OCXS(860.8)^1
;;SOF^860.6 ORDER CHECK DATA CONTEXT
;;KEY^860.6:^CPRS ORDER PRESCAN
;;R^"860.6:",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.6:",.02,"E"
;;D^OEPS
;;R^"860.6:",1,"E"
;;D^DATA DRIVEN
;;EOR^
;;KEY^860.6:^CPRS ORDER PROTOCOL
;;R^"860.6:",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.6:",.02,"E"
;;D^OERR
;;R^"860.6:",1,"E"
;;D^DATA DRIVEN
;;EOR^
;;KEY^860.6:^DATABASE LOOKUP
;;R^"860.6:",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.6:",.02,"E"
;;D^DL
;;R^"860.6:",1,"E"
;;D^PACKAGE LOOKUP
;;EOR^
;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
;;R^"860.6:",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.6:",.02,"E"
;;D^HL7
;;R^"860.6:",1,"E"
;;D^DATA DRIVEN
;;EOR^
;;EOF^OCXS(860.6)^1
;;SOF^860.5 ORDER CHECK DATA SOURCE
;;KEY^860.5:^DATABASE LOOKUP
;;R^"860.5:",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.5:",.02,"E"
;;D^DATABASE LOOKUP
;;EOR^
;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
;;R^"860.5:",.01,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.5:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.5:^HL7 PATIENT ID SEGMENT
;;R^"860.5:",.01,"E"
;;D^HL7 PATIENT ID SEGMENT
;;R^"860.5:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.5:",.01,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.5:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;EOR^
;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
;;R^"860.5:",.01,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.5:",.02,"E"
;;D^CPRS ORDER PRESCAN
;;EOR^
;;EOF^OCXS(860.5)^1
;;SOF^860.4 ORDER CHECK DATA FIELD
;;KEY^860.4:^ORDER NUMBER
;;R^"860.4:",.01,"E"
;;D^ORDER NUMBER
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
;;D^CPRS ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
;;D^ORDER ENTRY ORDER PRESCAN
;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
;;D^PATIENT.OPS_ORDER NUMBER
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
;;D^PATIENT.OERR ORDER NUMBER
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
;;D^HL7 COMMON ORDER SEGMENT
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
;;D^PATIENT.HL7 ORDER NUMBER
;;EOR^
;;KEY^860.4:^ORDER REQ. ELEC. SIG.
;;R^"860.4:",.01,"E"
;;D^ORDER REQ. ELEC. SIG.
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
;;D^PATIENT.ORD_REQ_ELEC_SIG
;;EOR^
;;KEY^860.4:^PATIENT IEN
;;R^"860.4:",.01,"E"
;;D^PATIENT IEN
;;R^"860.4:",101,"E"
;;D^NUMERIC
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
;;D^PATIENT.OERR_ORDER_PATIENT
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
;;D^DATABASE LOOKUP
;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
;;D^PATIENT.IEN
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
;;D^HL7 PATIENT ID SEGMENT
;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
;;D^PATIENT.HL7_PATIENT_ID
;;EOR^
;;KEY^860.4:^SS REFILL REQUEST
;;R^"860.4:",.01,"E"
;;D^SS REFILL REQUEST
;;R^"860.4:",101,"E"
;;D^BOOLEAN
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
;;D^OERR ORDER EVENT FLAG PROTOCOL
;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
;;D^PATIENT.SS.REFILL.REQUEST
;;EOR^
;;EOF^OCXS(860.4)^1
;;SOF^860.3 ORDER CHECK ELEMENT
;;KEY^860.3:^NO SS REFILL REQUEST
;;R^"860.3:",.01,"E"
;;D^NO SS REFILL REQUEST
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^SS REFILL REQUEST
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL FALSE
;;EOR^
;;KEY^860.3:^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.3:",.01,"E"
;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^ORDER REQ. ELEC. SIG.
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;;EOR^
;;KEY^860.3:^SS REFILL REQUEST
;;R^"860.3:",.01,"E"
;;D^SS REFILL REQUEST
;;R^"860.3:",.02,"E"
;;D^CPRS ORDER PROTOCOL
;;R^"860.3:","860.31:1",.01,"E"
;;D^1
;;R^"860.3:","860.31:1",1,"E"
;;D^SS REFILL REQUEST
;;R^"860.3:","860.31:1",2,"E"
;;D^LOGICAL TRUE
;1;
;
ORY01106 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*1011) ;APR 8,2013 at 18:46
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**1011**;Dec 17,1997;Build 242
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY011ES
+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 ^ORY01107
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.8:",1,2
+3 ;;D^ ; ; of record D0 in file OCXFILE
+4 ;;R^"860.8:",100,1
+5 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
+6 ;;R^"860.8:",100,2
+7 ;;D^ ; ; of record D0 in file OCXFILE
+8 ;;R^"860.8:",100,3
+9 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," FILE: ",$G(OCXFILE)," D0: ",$G(D0)
+10 ;;R^"860.8:",100,4
+11 ;;D^ ; Q:'$G(D0) "" Q:'$L($G(OCXFILE)) ""
+12 ;;R^"860.8:",100,5
+13 ;;D^ ; N GLREF
+14 ;;R^"860.8:",100,6
+15 ;;D^ ; I '(OCXFILE=(+OCXFILE)) S GLREF=U_OCXFILE
+16 ;;R^"860.8:",100,7
+17 ;;D^ ; E S GLREF=$$FILE^OCXBDTD(+OCXFILE,"GLOBAL NAME") Q:'$L(GLREF) ""
+18 ;;R^"860.8:",100,8
+19 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," GLREF: ",GLREF," RESOLVES TO: ",$P($G(@(GLREF_(+D0)_",0)")),U,1)
+20 ;;R^"860.8:",100,9
+21 ;;D^ ; Q $P($G(@(GLREF_(+D0)_",0)")),U,1)
+22 ;;R^"860.8:",100,10
+23 ;;D^ ; ;
+24 ;;EOR^
+25 ;;KEY^860.8:^SS REFILL REQUEST
+26 ;;R^"860.8:",.01,"E"
+27 ;;D^SS REFILL REQUEST
+28 ;;R^"860.8:",.02,"E"
+29 ;;D^REFILL
+30 ;;R^"860.8:",1,1
+31 ;;D^This function checks to see if an order was a refill request. If yes, a 1 is returned. Othewise a zero is returned.
+32 ;;R^"860.8:",100,1
+33 ;;D^ ;REFILL(ORIEN) ; determine if order is a refill request.
+34 ;;R^"860.8:",100,2
+35 ;;D^ ; ; rtn 1 if a refill request, 0 otherwise
+36 ;;R^"860.8:",100,3
+37 ;;D^ ; N RR
+38 ;;R^"860.8:",100,4
+39 ;;D^ ; S RR=$$VALUE^ORCSAVE2(ORIEN,"SSRREQIEN")
+40 ;;R^"860.8:",100,5
+41 ;;D^ ; Q:+RR 1
+42 ;;R^"860.8:",100,6
+43 ;;D^ ; Q 0
+44 ;;R^"860.8:",100,7
+45 ;;D^ ; ;
+46 ;;EOR^
+47 ;;KEY^860.8:^STRING CONTAINS ONE OF A LIST OF VALUES
+48 ;;R^"860.8:",.01,"E"
+49 ;;D^STRING CONTAINS ONE OF A LIST OF VALUES
+50 ;;R^"860.8:",.02,"E"
+51 ;;D^CLIST
+52 ;;R^"860.8:",100,1
+53 ;;D^ ;CLIST(DATA,LIST) ; DOES THE DATA FIELD CONTAIN AN ELEMENT IN THE LIST
+54 ;;R^"860.8:",100,2
+55 ;;D^ ; ;
+56 ;;R^"860.8:",100,3
+57 ;;D^T+; W:$G(OCXTRACE) !!,"$$CLIST(",DATA,",""",LIST,""")"
+58 ;;R^"860.8:",100,4
+59 ;;D^ ; N PC F PC=1:1:$L(LIST,","),0 I PC,$L($P(LIST,",",PC)),(DATA[$P(LIST,",",PC)) Q
+60 ;;R^"860.8:",100,5
+61 ;;D^ ; Q ''PC
+62 ;;EOR^
+63 ;;EOF^OCXS(860.8)^1
+64 ;;SOF^860.6 ORDER CHECK DATA CONTEXT
+65 ;;KEY^860.6:^CPRS ORDER PRESCAN
+66 ;;R^"860.6:",.01,"E"
+67 ;;D^CPRS ORDER PRESCAN
+68 ;;R^"860.6:",.02,"E"
+69 ;;D^OEPS
+70 ;;R^"860.6:",1,"E"
+71 ;;D^DATA DRIVEN
+72 ;;EOR^
+73 ;;KEY^860.6:^CPRS ORDER PROTOCOL
+74 ;;R^"860.6:",.01,"E"
+75 ;;D^CPRS ORDER PROTOCOL
+76 ;;R^"860.6:",.02,"E"
+77 ;;D^OERR
+78 ;;R^"860.6:",1,"E"
+79 ;;D^DATA DRIVEN
+80 ;;EOR^
+81 ;;KEY^860.6:^DATABASE LOOKUP
+82 ;;R^"860.6:",.01,"E"
+83 ;;D^DATABASE LOOKUP
+84 ;;R^"860.6:",.02,"E"
+85 ;;D^DL
+86 ;;R^"860.6:",1,"E"
+87 ;;D^PACKAGE LOOKUP
+88 ;;EOR^
+89 ;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
+90 ;;R^"860.6:",.01,"E"
+91 ;;D^GENERIC HL7 MESSAGE ARRAY
+92 ;;R^"860.6:",.02,"E"
+93 ;;D^HL7
+94 ;;R^"860.6:",1,"E"
+95 ;;D^DATA DRIVEN
+96 ;;EOR^
+97 ;;EOF^OCXS(860.6)^1
+98 ;;SOF^860.5 ORDER CHECK DATA SOURCE
+99 ;;KEY^860.5:^DATABASE LOOKUP
+100 ;;R^"860.5:",.01,"E"
+101 ;;D^DATABASE LOOKUP
+102 ;;R^"860.5:",.02,"E"
+103 ;;D^DATABASE LOOKUP
+104 ;;EOR^
+105 ;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
+106 ;;R^"860.5:",.01,"E"
+107 ;;D^HL7 COMMON ORDER SEGMENT
+108 ;;R^"860.5:",.02,"E"
+109 ;;D^GENERIC HL7 MESSAGE ARRAY
+110 ;;EOR^
+111 ;;KEY^860.5:^HL7 PATIENT ID SEGMENT
+112 ;;R^"860.5:",.01,"E"
+113 ;;D^HL7 PATIENT ID SEGMENT
+114 ;;R^"860.5:",.02,"E"
+115 ;;D^GENERIC HL7 MESSAGE ARRAY
+116 ;;EOR^
+117 ;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
+118 ;;R^"860.5:",.01,"E"
+119 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+120 ;;R^"860.5:",.02,"E"
+121 ;;D^CPRS ORDER PROTOCOL
+122 ;;EOR^
+123 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
+124 ;;R^"860.5:",.01,"E"
+125 ;;D^ORDER ENTRY ORDER PRESCAN
+126 ;;R^"860.5:",.02,"E"
+127 ;;D^CPRS ORDER PRESCAN
+128 ;;EOR^
+129 ;;EOF^OCXS(860.5)^1
+130 ;;SOF^860.4 ORDER CHECK DATA FIELD
+131 ;;KEY^860.4:^ORDER NUMBER
+132 ;;R^"860.4:",.01,"E"
+133 ;;D^ORDER NUMBER
+134 ;;R^"860.4:",101,"E"
+135 ;;D^NUMERIC
+136 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.01,"E"
+137 ;;D^CPRS ORDER PRESCAN
+138 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",.02,"E"
+139 ;;D^ORDER ENTRY ORDER PRESCAN
+140 ;;R^"860.4:","860.41:CPRS ORDER PRESCAN^860.6",1,"E"
+141 ;;D^PATIENT.OPS_ORDER NUMBER
+142 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+143 ;;D^CPRS ORDER PROTOCOL
+144 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+145 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+146 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+147 ;;D^PATIENT.OERR ORDER NUMBER
+148 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+149 ;;D^GENERIC HL7 MESSAGE ARRAY
+150 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+151 ;;D^HL7 COMMON ORDER SEGMENT
+152 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+153 ;;D^PATIENT.HL7 ORDER NUMBER
+154 ;;EOR^
+155 ;;KEY^860.4:^ORDER REQ. ELEC. SIG.
+156 ;;R^"860.4:",.01,"E"
+157 ;;D^ORDER REQ. ELEC. SIG.
+158 ;;R^"860.4:",101,"E"
+159 ;;D^BOOLEAN
+160 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+161 ;;D^CPRS ORDER PROTOCOL
+162 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+163 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+164 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+165 ;;D^PATIENT.ORD_REQ_ELEC_SIG
+166 ;;EOR^
+167 ;;KEY^860.4:^PATIENT IEN
+168 ;;R^"860.4:",.01,"E"
+169 ;;D^PATIENT IEN
+170 ;;R^"860.4:",101,"E"
+171 ;;D^NUMERIC
+172 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+173 ;;D^CPRS ORDER PROTOCOL
+174 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+175 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+176 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+177 ;;D^PATIENT.OERR_ORDER_PATIENT
+178 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.01,"E"
+179 ;;D^DATABASE LOOKUP
+180 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",.02,"E"
+181 ;;D^DATABASE LOOKUP
+182 ;;R^"860.4:","860.41:DATABASE LOOKUP^860.6",1,"E"
+183 ;;D^PATIENT.IEN
+184 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.01,"E"
+185 ;;D^GENERIC HL7 MESSAGE ARRAY
+186 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",.02,"E"
+187 ;;D^HL7 PATIENT ID SEGMENT
+188 ;;R^"860.4:","860.41:GENERIC HL7 MESSAGE ARRAY^860.6",1,"E"
+189 ;;D^PATIENT.HL7_PATIENT_ID
+190 ;;EOR^
+191 ;;KEY^860.4:^SS REFILL REQUEST
+192 ;;R^"860.4:",.01,"E"
+193 ;;D^SS REFILL REQUEST
+194 ;;R^"860.4:",101,"E"
+195 ;;D^BOOLEAN
+196 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.01,"E"
+197 ;;D^CPRS ORDER PROTOCOL
+198 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",.02,"E"
+199 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+200 ;;R^"860.4:","860.41:CPRS ORDER PROTOCOL^860.6",1,"E"
+201 ;;D^PATIENT.SS.REFILL.REQUEST
+202 ;;EOR^
+203 ;;EOF^OCXS(860.4)^1
+204 ;;SOF^860.3 ORDER CHECK ELEMENT
+205 ;;KEY^860.3:^NO SS REFILL REQUEST
+206 ;;R^"860.3:",.01,"E"
+207 ;;D^NO SS REFILL REQUEST
+208 ;;R^"860.3:",.02,"E"
+209 ;;D^CPRS ORDER PROTOCOL
+210 ;;R^"860.3:","860.31:1",.01,"E"
+211 ;;D^1
+212 ;;R^"860.3:","860.31:1",1,"E"
+213 ;;D^SS REFILL REQUEST
+214 ;;R^"860.3:","860.31:1",2,"E"
+215 ;;D^LOGICAL FALSE
+216 ;;EOR^
+217 ;;KEY^860.3:^ORDER REQUIRES ELECTRONIC SIGNATURE
+218 ;;R^"860.3:",.01,"E"
+219 ;;D^ORDER REQUIRES ELECTRONIC SIGNATURE
+220 ;;R^"860.3:",.02,"E"
+221 ;;D^CPRS ORDER PROTOCOL
+222 ;;R^"860.3:","860.31:1",.01,"E"
+223 ;;D^1
+224 ;;R^"860.3:","860.31:1",1,"E"
+225 ;;D^ORDER REQ. ELEC. SIG.
+226 ;;R^"860.3:","860.31:1",2,"E"
+227 ;;D^LOGICAL TRUE
+228 ;;EOR^
+229 ;;KEY^860.3:^SS REFILL REQUEST
+230 ;;R^"860.3:",.01,"E"
+231 ;;D^SS REFILL REQUEST
+232 ;;R^"860.3:",.02,"E"
+233 ;;D^CPRS ORDER PROTOCOL
+234 ;;R^"860.3:","860.31:1",.01,"E"
+235 ;;D^1
+236 ;;R^"860.3:","860.31:1",1,"E"
+237 ;;D^SS REFILL REQUEST
+238 ;;R^"860.3:","860.31:1",2,"E"
+239 ;;D^LOGICAL TRUE
+240 ;1;
+241 ;