ORY10509 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^ORY105ES
;
;
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 ^ORY1050A
;
Q
;
DATA ;
;
;;R^"860.8:",100,71
;;D^ ; ;
;;R^"860.8:",100,72
;;D^ ; Q
;;R^"860.8:",100,73
;;D^ ; ;
;;R^"860.8:",100,74
;;D^ ; ;
;;EOR^
;;KEY^860.8:^PATIENT LOCATION
;;R^"860.8:",.01,"E"
;;D^PATIENT LOCATION
;;R^"860.8:",.02,"E"
;;D^PATLOC
;;R^"860.8:",1,1
;;D^Returns the Inpatient or Outpatient location for the patient.
;;R^"860.8:",1,2
;;D^
;;R^"860.8:",1,3
;;D^ Input: DFN
;;R^"860.8:",1,4
;;D^ Output: Patient Status (I/O) Inpatient/Outpatient
;;R^"860.8:",1,5
;;D^ Patient Location (Free text name)
;;R^"860.8:",100,1
;;D^ ;PATLOC(DFN) ;
;;R^"860.8:",100,2
;;D^ ; ;
;;R^"860.8:",100,3
;;D^ ; N OCXP1,OCXP2
;;R^"860.8:",100,4
;;D^ ; S OCXP1=$G(^TMP("OCXSWAP",$J,"OCXODATA","PV1",2))
;;R^"860.8:",100,5
;;D^ ; S OCXP2=$P($G(^TMP("OCXSWAP",$J,"OCXODATA","PV1",3)),"^",1)
;;R^"860.8:",100,6
;;D^T+; W:$G(OCXTRACE) !,"OCXP2: ",$G(OCXP1)
;;R^"860.8:",100,7
;;D^T+; W:$G(OCXTRACE) !,"OCXP2: ",$G(OCXP2)
;;R^"860.8:",100,8
;;D^ ; I OCXP2 D
;;R^"860.8:",100,9
;;D^ ; .S OCXP2=$P($G(^SC(+OCXP2,0)),"^",1,2)
;;R^"860.8:",100,10
;;D^ ; .I $L($P(OCXP2,"^",2)) S OCXP2=$P(OCXP2,"^",2)
;;R^"860.8:",100,11
;;D^ ; .E S OCXP2=$P(OCXP2,"^",1)
;;R^"860.8:",100,12
;;D^ ; .S:'$L(OCXP2) OCXP2="NO LOC"
;;R^"860.8:",100,13
;;D^ ; I $L(OCXP1),$L(OCXP2) Q OCXP1_"^"_OCXP2
;;R^"860.8:",100,14
;;D^ ; ;
;;R^"860.8:",100,15
;;D^ ; S OCXP2=$G(^DPT(+$G(DFN),.1))
;;R^"860.8:",100,16
;;D^ ; I $L(OCXP2) Q "I^"_OCXP2
;;R^"860.8:",100,17
;;D^ ; Q "O^OUTPT"
;;R^"860.8:",100,18
;;D^ ; ;
;;EOR^
;;KEY^860.8:^RECENT CREATININE LAB PROCEDURE
;;R^"860.8:",.01,"E"
;;D^RECENT CREATININE LAB PROCEDURE
;;R^"860.8:",.02,"E"
;;D^RECCREAT
;;R^"860.8:",100,1
;;D^ ;RECCREAT(ORDFN,ORDAYS) ;extrinsic function to return most recent
;;R^"860.8:",100,2
;;D^ ; ;SERUM CREATININE within <ORDAYS> in format:
;;R^"860.8:",100,3
;;D^ ; ; test id^result units flag ref range collection d/t
;;R^"860.8:",100,4
;;D^ ; N BDT,CDT,ORY,ORX,ORZ,X,TEST,ORI,ORJ,CREARSLT,LABFILE,SPECFILE
;;R^"860.8:",100,5
;;D^ ; Q:'$L($G(ORDFN)) "0^"
;;R^"860.8:",100,6
;;D^ ; Q:'$L($G(ORDAYS)) "0^"
;;R^"860.8:",100,7
;;D^ ; D NOW^%DTC
;;R^"860.8:",100,8
;;D^ ; S BDT=$$FMADD^XLFDT(%,"-"_ORDAYS,"","","")
;;R^"860.8:",100,9
;;D^ ; K %
;;R^"860.8:",100,10
;;D^ ; Q:'$L($G(BDT)) "0^"
;;R^"860.8:",100,11
;;D^ ; S LABFILE=$$TERMLKUP("SERUM CREATININE",.ORY)
;;R^"860.8:",100,12
;;D^ ; Q:$G(LABFILE)'=60 "0^"
;;R^"860.8:",100,13
;;D^ ; Q:+$G(ORY)<1 "0^"
;;R^"860.8:",100,14
;;D^ ; S SPECFILE=$$TERMLKUP("SERUM SPECIMEN",.ORX)
;;R^"860.8:",100,15
;;D^ ; Q:$G(SPECFILE)'=61 "0^"
;;R^"860.8:",100,16
;;D^ ; Q:+$G(ORX)<1 "0^"
;;R^"860.8:",100,17
;;D^ ; F ORI=1:1:ORY I +$G(CREARSLT)<1 D
;;R^"860.8:",100,18
;;D^ ; .S TEST=$P(ORY(ORI),U)
;;R^"860.8:",100,19
;;D^ ; .Q:+$G(TEST)<1
;;R^"860.8:",100,20
;;D^ ; .F ORJ=1:1:ORX I +$G(CREARSLT)<1 D
;;R^"860.8:",100,21
;;D^ ; ..S SPECIMEN=$P(ORX(ORJ),U)
;;R^"860.8:",100,22
;;D^ ; ..Q:+$G(SPECIMEN)<1
;;R^"860.8:",100,23
;;D^ ; ..S ORZ=$$LOCL^ORQQLR1(ORDFN,TEST,SPECIMEN)
;;R^"860.8:",100,24
;;D^ ; ..Q:'$L($G(ORZ))
;;R^"860.8:",100,25
;;D^ ; ..S CDT=$P(ORZ,U,7)
;;R^"860.8:",100,26
;;D^ ; ..I CDT'<BDT S CREARSLT=1
;;R^"860.8:",100,27
;;D^ ; Q:+$G(CREARSLT)<1 "0^"
;;R^"860.8:",100,28
;;D^ ; Q $P(ORZ,U)_U_$P(ORZ,U,3)_" "_$P(ORZ,U,4)_" "_$P(ORZ,U,5)_" ("_$P(ORZ,U,6)_") "_$$FMTE^XLFDT(CDT,"2P")_U_$P(ORZ,U,3)
;;EOR^
;;KEY^860.8:^RETURN POINTED TO VALUE
;;R^"860.8:",.01,"E"
;;D^RETURN POINTED TO VALUE
;;R^"860.8:",.02,"E"
;;D^POINTER
;;R^"860.8:",1,1
;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
;;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:^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 OBSERVATION REQUEST SEGMENT
;;R^"860.5:",.01,"E"
;;D^HL7 OBSERVATION REQUEST SEGMENT
;;R^"860.5:",.02,"E"
;;D^GENERIC HL7 MESSAGE ARRAY
;;EOR^
;;KEY^860.5:^HL7 OBSERVATION/RESULT SEGMENT
;;R^"860.5:",.01,"E"
;;D^HL7 OBSERVATION/RESULT 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:^ABNORMAL RENAL BIOCHEM RESULTS
;;R^"860.4:",.01,"E"
;1;
;
ORY10509 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*105) ;OCT 16,2001 at 15:39
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**105**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^ORY105ES
+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 ^ORY1050A
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"860.8:",100,71
+3 ;;D^ ; ;
+4 ;;R^"860.8:",100,72
+5 ;;D^ ; Q
+6 ;;R^"860.8:",100,73
+7 ;;D^ ; ;
+8 ;;R^"860.8:",100,74
+9 ;;D^ ; ;
+10 ;;EOR^
+11 ;;KEY^860.8:^PATIENT LOCATION
+12 ;;R^"860.8:",.01,"E"
+13 ;;D^PATIENT LOCATION
+14 ;;R^"860.8:",.02,"E"
+15 ;;D^PATLOC
+16 ;;R^"860.8:",1,1
+17 ;;D^Returns the Inpatient or Outpatient location for the patient.
+18 ;;R^"860.8:",1,2
+19 ;;D^
+20 ;;R^"860.8:",1,3
+21 ;;D^ Input: DFN
+22 ;;R^"860.8:",1,4
+23 ;;D^ Output: Patient Status (I/O) Inpatient/Outpatient
+24 ;;R^"860.8:",1,5
+25 ;;D^ Patient Location (Free text name)
+26 ;;R^"860.8:",100,1
+27 ;;D^ ;PATLOC(DFN) ;
+28 ;;R^"860.8:",100,2
+29 ;;D^ ; ;
+30 ;;R^"860.8:",100,3
+31 ;;D^ ; N OCXP1,OCXP2
+32 ;;R^"860.8:",100,4
+33 ;;D^ ; S OCXP1=$G(^TMP("OCXSWAP",$J,"OCXODATA","PV1",2))
+34 ;;R^"860.8:",100,5
+35 ;;D^ ; S OCXP2=$P($G(^TMP("OCXSWAP",$J,"OCXODATA","PV1",3)),"^",1)
+36 ;;R^"860.8:",100,6
+37 ;;D^T+; W:$G(OCXTRACE) !,"OCXP2: ",$G(OCXP1)
+38 ;;R^"860.8:",100,7
+39 ;;D^T+; W:$G(OCXTRACE) !,"OCXP2: ",$G(OCXP2)
+40 ;;R^"860.8:",100,8
+41 ;;D^ ; I OCXP2 D
+42 ;;R^"860.8:",100,9
+43 ;;D^ ; .S OCXP2=$P($G(^SC(+OCXP2,0)),"^",1,2)
+44 ;;R^"860.8:",100,10
+45 ;;D^ ; .I $L($P(OCXP2,"^",2)) S OCXP2=$P(OCXP2,"^",2)
+46 ;;R^"860.8:",100,11
+47 ;;D^ ; .E S OCXP2=$P(OCXP2,"^",1)
+48 ;;R^"860.8:",100,12
+49 ;;D^ ; .S:'$L(OCXP2) OCXP2="NO LOC"
+50 ;;R^"860.8:",100,13
+51 ;;D^ ; I $L(OCXP1),$L(OCXP2) Q OCXP1_"^"_OCXP2
+52 ;;R^"860.8:",100,14
+53 ;;D^ ; ;
+54 ;;R^"860.8:",100,15
+55 ;;D^ ; S OCXP2=$G(^DPT(+$G(DFN),.1))
+56 ;;R^"860.8:",100,16
+57 ;;D^ ; I $L(OCXP2) Q "I^"_OCXP2
+58 ;;R^"860.8:",100,17
+59 ;;D^ ; Q "O^OUTPT"
+60 ;;R^"860.8:",100,18
+61 ;;D^ ; ;
+62 ;;EOR^
+63 ;;KEY^860.8:^RECENT CREATININE LAB PROCEDURE
+64 ;;R^"860.8:",.01,"E"
+65 ;;D^RECENT CREATININE LAB PROCEDURE
+66 ;;R^"860.8:",.02,"E"
+67 ;;D^RECCREAT
+68 ;;R^"860.8:",100,1
+69 ;;D^ ;RECCREAT(ORDFN,ORDAYS) ;extrinsic function to return most recent
+70 ;;R^"860.8:",100,2
+71 ;;D^ ; ;SERUM CREATININE within <ORDAYS> in format:
+72 ;;R^"860.8:",100,3
+73 ;;D^ ; ; test id^result units flag ref range collection d/t
+74 ;;R^"860.8:",100,4
+75 ;;D^ ; N BDT,CDT,ORY,ORX,ORZ,X,TEST,ORI,ORJ,CREARSLT,LABFILE,SPECFILE
+76 ;;R^"860.8:",100,5
+77 ;;D^ ; Q:'$L($G(ORDFN)) "0^"
+78 ;;R^"860.8:",100,6
+79 ;;D^ ; Q:'$L($G(ORDAYS)) "0^"
+80 ;;R^"860.8:",100,7
+81 ;;D^ ; D NOW^%DTC
+82 ;;R^"860.8:",100,8
+83 ;;D^ ; S BDT=$$FMADD^XLFDT(%,"-"_ORDAYS,"","","")
+84 ;;R^"860.8:",100,9
+85 ;;D^ ; K %
+86 ;;R^"860.8:",100,10
+87 ;;D^ ; Q:'$L($G(BDT)) "0^"
+88 ;;R^"860.8:",100,11
+89 ;;D^ ; S LABFILE=$$TERMLKUP("SERUM CREATININE",.ORY)
+90 ;;R^"860.8:",100,12
+91 ;;D^ ; Q:$G(LABFILE)'=60 "0^"
+92 ;;R^"860.8:",100,13
+93 ;;D^ ; Q:+$G(ORY)<1 "0^"
+94 ;;R^"860.8:",100,14
+95 ;;D^ ; S SPECFILE=$$TERMLKUP("SERUM SPECIMEN",.ORX)
+96 ;;R^"860.8:",100,15
+97 ;;D^ ; Q:$G(SPECFILE)'=61 "0^"
+98 ;;R^"860.8:",100,16
+99 ;;D^ ; Q:+$G(ORX)<1 "0^"
+100 ;;R^"860.8:",100,17
+101 ;;D^ ; F ORI=1:1:ORY I +$G(CREARSLT)<1 D
+102 ;;R^"860.8:",100,18
+103 ;;D^ ; .S TEST=$P(ORY(ORI),U)
+104 ;;R^"860.8:",100,19
+105 ;;D^ ; .Q:+$G(TEST)<1
+106 ;;R^"860.8:",100,20
+107 ;;D^ ; .F ORJ=1:1:ORX I +$G(CREARSLT)<1 D
+108 ;;R^"860.8:",100,21
+109 ;;D^ ; ..S SPECIMEN=$P(ORX(ORJ),U)
+110 ;;R^"860.8:",100,22
+111 ;;D^ ; ..Q:+$G(SPECIMEN)<1
+112 ;;R^"860.8:",100,23
+113 ;;D^ ; ..S ORZ=$$LOCL^ORQQLR1(ORDFN,TEST,SPECIMEN)
+114 ;;R^"860.8:",100,24
+115 ;;D^ ; ..Q:'$L($G(ORZ))
+116 ;;R^"860.8:",100,25
+117 ;;D^ ; ..S CDT=$P(ORZ,U,7)
+118 ;;R^"860.8:",100,26
+119 ;;D^ ; ..I CDT'<BDT S CREARSLT=1
+120 ;;R^"860.8:",100,27
+121 ;;D^ ; Q:+$G(CREARSLT)<1 "0^"
+122 ;;R^"860.8:",100,28
+123 ;;D^ ; Q $P(ORZ,U)_U_$P(ORZ,U,3)_" "_$P(ORZ,U,4)_" "_$P(ORZ,U,5)_" ("_$P(ORZ,U,6)_") "_$$FMTE^XLFDT(CDT,"2P")_U_$P(ORZ,U,3)
+124 ;;EOR^
+125 ;;KEY^860.8:^RETURN POINTED TO VALUE
+126 ;;R^"860.8:",.01,"E"
+127 ;;D^RETURN POINTED TO VALUE
+128 ;;R^"860.8:",.02,"E"
+129 ;;D^POINTER
+130 ;;R^"860.8:",1,1
+131 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
+132 ;;R^"860.8:",1,2
+133 ;;D^ ; ; of record D0 in file OCXFILE
+134 ;;R^"860.8:",100,1
+135 ;;D^ ;POINTER(OCXFILE,D0) ; This Local Extrinsic Function gets the value of the name field
+136 ;;R^"860.8:",100,2
+137 ;;D^ ; ; of record D0 in file OCXFILE
+138 ;;R^"860.8:",100,3
+139 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," FILE: ",$G(OCXFILE)," D0: ",$G(D0)
+140 ;;R^"860.8:",100,4
+141 ;;D^ ; Q:'$G(D0) "" Q:'$L($G(OCXFILE)) ""
+142 ;;R^"860.8:",100,5
+143 ;;D^ ; N GLREF
+144 ;;R^"860.8:",100,6
+145 ;;D^ ; I '(OCXFILE=(+OCXFILE)) S GLREF=U_OCXFILE
+146 ;;R^"860.8:",100,7
+147 ;;D^ ; E S GLREF=$$FILE^OCXBDTD(+OCXFILE,"GLOBAL NAME") Q:'$L(GLREF) ""
+148 ;;R^"860.8:",100,8
+149 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," GLREF: ",GLREF," RESOLVES TO: ",$P($G(@(GLREF_(+D0)_",0)")),U,1)
+150 ;;R^"860.8:",100,9
+151 ;;D^ ; Q $P($G(@(GLREF_(+D0)_",0)")),U,1)
+152 ;;R^"860.8:",100,10
+153 ;;D^ ; ;
+154 ;;EOR^
+155 ;;KEY^860.8:^STRING CONTAINS ONE OF A LIST OF VALUES
+156 ;;R^"860.8:",.01,"E"
+157 ;;D^STRING CONTAINS ONE OF A LIST OF VALUES
+158 ;;R^"860.8:",.02,"E"
+159 ;;D^CLIST
+160 ;;R^"860.8:",100,1
+161 ;;D^ ;CLIST(DATA,LIST) ; DOES THE DATA FIELD CONTAIN AN ELEMENT IN THE LIST
+162 ;;R^"860.8:",100,2
+163 ;;D^ ; ;
+164 ;;R^"860.8:",100,3
+165 ;;D^T+; W:$G(OCXTRACE) !!,"$$CLIST(",DATA,",""",LIST,""")"
+166 ;;R^"860.8:",100,4
+167 ;;D^ ; N PC F PC=1:1:$L(LIST,","),0 I PC,$L($P(LIST,",",PC)),(DATA[$P(LIST,",",PC)) Q
+168 ;;R^"860.8:",100,5
+169 ;;D^ ; Q ''PC
+170 ;;EOR^
+171 ;;EOF^OCXS(860.8)^1
+172 ;;SOF^860.6 ORDER CHECK DATA CONTEXT
+173 ;;KEY^860.6:^CPRS ORDER PRESCAN
+174 ;;R^"860.6:",.01,"E"
+175 ;;D^CPRS ORDER PRESCAN
+176 ;;R^"860.6:",.02,"E"
+177 ;;D^OEPS
+178 ;;R^"860.6:",1,"E"
+179 ;;D^DATA DRIVEN
+180 ;;EOR^
+181 ;;KEY^860.6:^CPRS ORDER PROTOCOL
+182 ;;R^"860.6:",.01,"E"
+183 ;;D^CPRS ORDER PROTOCOL
+184 ;;R^"860.6:",.02,"E"
+185 ;;D^OERR
+186 ;;R^"860.6:",1,"E"
+187 ;;D^DATA DRIVEN
+188 ;;EOR^
+189 ;;KEY^860.6:^DATABASE LOOKUP
+190 ;;R^"860.6:",.01,"E"
+191 ;;D^DATABASE LOOKUP
+192 ;;R^"860.6:",.02,"E"
+193 ;;D^DL
+194 ;;R^"860.6:",1,"E"
+195 ;;D^PACKAGE LOOKUP
+196 ;;EOR^
+197 ;;KEY^860.6:^GENERIC HL7 MESSAGE ARRAY
+198 ;;R^"860.6:",.01,"E"
+199 ;;D^GENERIC HL7 MESSAGE ARRAY
+200 ;;R^"860.6:",.02,"E"
+201 ;;D^HL7
+202 ;;R^"860.6:",1,"E"
+203 ;;D^DATA DRIVEN
+204 ;;EOR^
+205 ;;EOF^OCXS(860.6)^1
+206 ;;SOF^860.5 ORDER CHECK DATA SOURCE
+207 ;;KEY^860.5:^DATABASE LOOKUP
+208 ;;R^"860.5:",.01,"E"
+209 ;;D^DATABASE LOOKUP
+210 ;;R^"860.5:",.02,"E"
+211 ;;D^DATABASE LOOKUP
+212 ;;EOR^
+213 ;;KEY^860.5:^HL7 COMMON ORDER SEGMENT
+214 ;;R^"860.5:",.01,"E"
+215 ;;D^HL7 COMMON ORDER SEGMENT
+216 ;;R^"860.5:",.02,"E"
+217 ;;D^GENERIC HL7 MESSAGE ARRAY
+218 ;;EOR^
+219 ;;KEY^860.5:^HL7 OBSERVATION REQUEST SEGMENT
+220 ;;R^"860.5:",.01,"E"
+221 ;;D^HL7 OBSERVATION REQUEST SEGMENT
+222 ;;R^"860.5:",.02,"E"
+223 ;;D^GENERIC HL7 MESSAGE ARRAY
+224 ;;EOR^
+225 ;;KEY^860.5:^HL7 OBSERVATION/RESULT SEGMENT
+226 ;;R^"860.5:",.01,"E"
+227 ;;D^HL7 OBSERVATION/RESULT SEGMENT
+228 ;;R^"860.5:",.02,"E"
+229 ;;D^GENERIC HL7 MESSAGE ARRAY
+230 ;;EOR^
+231 ;;KEY^860.5:^HL7 PATIENT ID SEGMENT
+232 ;;R^"860.5:",.01,"E"
+233 ;;D^HL7 PATIENT ID SEGMENT
+234 ;;R^"860.5:",.02,"E"
+235 ;;D^GENERIC HL7 MESSAGE ARRAY
+236 ;;EOR^
+237 ;;KEY^860.5:^OERR ORDER EVENT FLAG PROTOCOL
+238 ;;R^"860.5:",.01,"E"
+239 ;;D^OERR ORDER EVENT FLAG PROTOCOL
+240 ;;R^"860.5:",.02,"E"
+241 ;;D^CPRS ORDER PROTOCOL
+242 ;;EOR^
+243 ;;KEY^860.5:^ORDER ENTRY ORDER PRESCAN
+244 ;;R^"860.5:",.01,"E"
+245 ;;D^ORDER ENTRY ORDER PRESCAN
+246 ;;R^"860.5:",.02,"E"
+247 ;;D^CPRS ORDER PRESCAN
+248 ;;EOR^
+249 ;;EOF^OCXS(860.5)^1
+250 ;;SOF^860.4 ORDER CHECK DATA FIELD
+251 ;;KEY^860.4:^ABNORMAL RENAL BIOCHEM RESULTS
+252 ;;R^"860.4:",.01,"E"
+253 ;1;
+254 ;