OCXDI01V ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
S ;
;
D DOT^OCXDIAG
;
;
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("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
;
G ^OCXDI01W
;
Q
;
DATA ;
;
;;R^"863.2:",.01,"E"
;;D^VISIT
;;R^"863.2:","863.21:1",.01,"E"
;;D^FILE
;;R^"863.2:","863.21:1",1,"E"
;;D^9000010
;;EOR^
;;KEY^863.2:^PHYSICIANS
;;R^"863.2:",.01,"E"
;;D^PHYSICIANS
;;R^"863.2:","863.21:1",.01,"E"
;;D^FILE
;;R^"863.2:","863.21:1",1,"E"
;;D^200
;;EOR^
;;EOF^OCXS(863.2)^1
;;SOF^863.1 OCX MDD APPLICATION
;;KEY^863.1:^CLINICAL QUERIES
;;R^"863.1:",.01,"E"
;;D^CLINICAL QUERIES
;;EOR^
;;EOF^OCXS(863.1)^1
;;SOF^863.3 OCX MDD LINK
;;KEY^863.3:^PATIENT.NAME
;;R^"863.3:",.01,"E"
;;D^PATIENT.NAME
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^NAME OF PATIENT
;;R^"863.3:",3.1,"E"
;;D^NAME
;;R^"863.3:",3.3,"E"
;;D^1
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.01
;;EOR^
;;KEY^863.3:^PATIENT.DEMOGRAPHIC
;;R^"863.3:",.01,"E"
;;D^PATIENT.DEMOGRAPHIC
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",3.1,"E"
;;D^DEMOGRAPHIC
;;R^"863.3:",3.3,"E"
;;D^2
;;EOR^
;;KEY^863.3:^PATIENT.SEX
;;R^"863.3:",.01,"E"
;;D^PATIENT.SEX
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DEMOGRAPHIC
;;R^"863.3:",.05,"E"
;;D^SEX OF PATIENT
;;R^"863.3:",3.1,"E"
;;D^SEX
;;R^"863.3:",3.3,"E"
;;D^3
;;R^"863.3:","863.31:1",.01,"E"
;;D^GENDER
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.02
;;EOR^
;;KEY^863.3:^PATIENT.DOB
;;R^"863.3:",.01,"E"
;;D^PATIENT.DOB
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DEMOGRAPHIC
;;R^"863.3:",.05,"E"
;;D^DATE OF BIRTH
;;R^"863.3:",3.3,"E"
;;D^4
;;R^"863.3:","863.31:1",.01,"E"
;;D^DATE OF BIRTH
;;R^"863.3:","863.31:2",.01,"E"
;;D^BIRTHDATE
;;R^"863.3:","863.31:3",.01,"E"
;;D^DOB
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^DOB
;;EOR^
;;KEY^863.3:^PATIENT.BLOOD TYPE
;;R^"863.3:",.01,"E"
;;D^PATIENT.BLOOD TYPE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^BLOOD TYPE
;;R^"863.3:",3.3,"E"
;;D^5
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^IHS PATIENT:BLOOD TYPE
;;EOR^
;;KEY^863.3:^PATIENT.VISIT
;;R^"863.3:",.01,"E"
;;D^PATIENT.VISIT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.03,"E"
;;D^VISIT
;;R^"863.3:",.05,"E"
;;D^RECENT CHOLE FLAG
;;R^"863.3:",3.3,"E"
;;D^6
;;R^"863.3:","863.31:1",.01,"E"
;;D^ENCOUNTER
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^IHS PATIENT:,VISIT:
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:2",1,"E"
;;D^RECCH(|PATIENT IEN|,7)
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:3",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^VISIT.DATE
;;R^"863.3:",.01,"E"
;;D^VISIT.DATE
;;R^"863.3:",.02,"E"
;;D^VISIT
;;R^"863.3:",.05,"E"
;;D^DATE OF VISIT
;;R^"863.3:",3.1,"E"
;;D^DATE
;;R^"863.3:",3.3,"E"
;;D^1
;;R^"863.3:","863.31:1",.01,"E"
;;D^VISIT DATE
;;R^"863.3:","863.31:2",.01,"E"
;;D^DATE OF VISIT
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.01
;;EOR^
;;KEY^863.3:^VISIT.TYPE
;;R^"863.3:",.01,"E"
;;D^VISIT.TYPE
;;R^"863.3:",.02,"E"
;;D^VISIT
;;R^"863.3:",.05,"E"
;;D^TYPE OF VISIT
;;R^"863.3:",3.1,"E"
;;D^TYPE
;;R^"863.3:",3.3,"E"
;;D^2
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.03
;;EOR^
;;KEY^863.3:^VISIT.SERVICE CATAGORY
;;R^"863.3:",.01,"E"
;;D^VISIT.SERVICE CATAGORY
;;R^"863.3:",.02,"E"
;;D^VISIT
;;R^"863.3:",.05,"E"
;;D^SERVICE CATEGORY
;;R^"863.3:",3.1,"E"
;;D^SERVICE CATEGORY
;;R^"863.3:",3.3,"E"
;;D^3
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.07
;;EOR^
;;KEY^863.3:^PATIENT.SSN
;;R^"863.3:",.01,"E"
;;D^PATIENT.SSN
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^SOCIAL SECURITY NUMBER
;;R^"863.3:",3.3,"E"
;;D^4
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.09
;;EOR^
;;KEY^863.3:^PATIENT.CITY
;;R^"863.3:",.01,"E"
;;D^PATIENT.CITY
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CITY
;;R^"863.3:",3.3,"E"
;;D^11
;;R^"863.3:","863.32:1",.01,"E"
;;D^FM NAVIGATION CODE
;;R^"863.3:","863.32:1",1,"E"
;;D^.114
;;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"
;1;
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXDI01V 5634 printed Nov 22, 2024@17:33:35 Page 2
OCXDI01V ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
S ;
+1 ;
+2 DO DOT^OCXDIAG
+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("OCXDIAG",$JOB,$ORDER(^TMP("OCXDIAG",$JOB,"A"),-1)+1)=TEXT
End DoDot:1
if QUIT
QUIT
+8 ;
+9 GOTO ^OCXDI01W
+10 ;
+11 QUIT
+12 ;
DATA ;
+1 ;
+2 ;;R^"863.2:",.01,"E"
+3 ;;D^VISIT
+4 ;;R^"863.2:","863.21:1",.01,"E"
+5 ;;D^FILE
+6 ;;R^"863.2:","863.21:1",1,"E"
+7 ;;D^9000010
+8 ;;EOR^
+9 ;;KEY^863.2:^PHYSICIANS
+10 ;;R^"863.2:",.01,"E"
+11 ;;D^PHYSICIANS
+12 ;;R^"863.2:","863.21:1",.01,"E"
+13 ;;D^FILE
+14 ;;R^"863.2:","863.21:1",1,"E"
+15 ;;D^200
+16 ;;EOR^
+17 ;;EOF^OCXS(863.2)^1
+18 ;;SOF^863.1 OCX MDD APPLICATION
+19 ;;KEY^863.1:^CLINICAL QUERIES
+20 ;;R^"863.1:",.01,"E"
+21 ;;D^CLINICAL QUERIES
+22 ;;EOR^
+23 ;;EOF^OCXS(863.1)^1
+24 ;;SOF^863.3 OCX MDD LINK
+25 ;;KEY^863.3:^PATIENT.NAME
+26 ;;R^"863.3:",.01,"E"
+27 ;;D^PATIENT.NAME
+28 ;;R^"863.3:",.02,"E"
+29 ;;D^PATIENT
+30 ;;R^"863.3:",.05,"E"
+31 ;;D^NAME OF PATIENT
+32 ;;R^"863.3:",3.1,"E"
+33 ;;D^NAME
+34 ;;R^"863.3:",3.3,"E"
+35 ;;D^1
+36 ;;R^"863.3:","863.32:1",.01,"E"
+37 ;;D^FM NAVIGATION CODE
+38 ;;R^"863.3:","863.32:1",1,"E"
+39 ;;D^.01
+40 ;;EOR^
+41 ;;KEY^863.3:^PATIENT.DEMOGRAPHIC
+42 ;;R^"863.3:",.01,"E"
+43 ;;D^PATIENT.DEMOGRAPHIC
+44 ;;R^"863.3:",.02,"E"
+45 ;;D^PATIENT
+46 ;;R^"863.3:",3.1,"E"
+47 ;;D^DEMOGRAPHIC
+48 ;;R^"863.3:",3.3,"E"
+49 ;;D^2
+50 ;;EOR^
+51 ;;KEY^863.3:^PATIENT.SEX
+52 ;;R^"863.3:",.01,"E"
+53 ;;D^PATIENT.SEX
+54 ;;R^"863.3:",.02,"E"
+55 ;;D^PATIENT
+56 ;;R^"863.3:",.04,"E"
+57 ;;D^DEMOGRAPHIC
+58 ;;R^"863.3:",.05,"E"
+59 ;;D^SEX OF PATIENT
+60 ;;R^"863.3:",3.1,"E"
+61 ;;D^SEX
+62 ;;R^"863.3:",3.3,"E"
+63 ;;D^3
+64 ;;R^"863.3:","863.31:1",.01,"E"
+65 ;;D^GENDER
+66 ;;R^"863.3:","863.32:1",.01,"E"
+67 ;;D^FM NAVIGATION CODE
+68 ;;R^"863.3:","863.32:1",1,"E"
+69 ;;D^.02
+70 ;;EOR^
+71 ;;KEY^863.3:^PATIENT.DOB
+72 ;;R^"863.3:",.01,"E"
+73 ;;D^PATIENT.DOB
+74 ;;R^"863.3:",.02,"E"
+75 ;;D^PATIENT
+76 ;;R^"863.3:",.04,"E"
+77 ;;D^DEMOGRAPHIC
+78 ;;R^"863.3:",.05,"E"
+79 ;;D^DATE OF BIRTH
+80 ;;R^"863.3:",3.3,"E"
+81 ;;D^4
+82 ;;R^"863.3:","863.31:1",.01,"E"
+83 ;;D^DATE OF BIRTH
+84 ;;R^"863.3:","863.31:2",.01,"E"
+85 ;;D^BIRTHDATE
+86 ;;R^"863.3:","863.31:3",.01,"E"
+87 ;;D^DOB
+88 ;;R^"863.3:","863.32:1",.01,"E"
+89 ;;D^FM NAVIGATION CODE
+90 ;;R^"863.3:","863.32:1",1,"E"
+91 ;;D^DOB
+92 ;;EOR^
+93 ;;KEY^863.3:^PATIENT.BLOOD TYPE
+94 ;;R^"863.3:",.01,"E"
+95 ;;D^PATIENT.BLOOD TYPE
+96 ;;R^"863.3:",.02,"E"
+97 ;;D^PATIENT
+98 ;;R^"863.3:",.05,"E"
+99 ;;D^BLOOD TYPE
+100 ;;R^"863.3:",3.3,"E"
+101 ;;D^5
+102 ;;R^"863.3:","863.32:1",.01,"E"
+103 ;;D^FM NAVIGATION CODE
+104 ;;R^"863.3:","863.32:1",1,"E"
+105 ;;D^IHS PATIENT:BLOOD TYPE
+106 ;;EOR^
+107 ;;KEY^863.3:^PATIENT.VISIT
+108 ;;R^"863.3:",.01,"E"
+109 ;;D^PATIENT.VISIT
+110 ;;R^"863.3:",.02,"E"
+111 ;;D^PATIENT
+112 ;;R^"863.3:",.03,"E"
+113 ;;D^VISIT
+114 ;;R^"863.3:",.05,"E"
+115 ;;D^RECENT CHOLE FLAG
+116 ;;R^"863.3:",3.3,"E"
+117 ;;D^6
+118 ;;R^"863.3:","863.31:1",.01,"E"
+119 ;;D^ENCOUNTER
+120 ;;R^"863.3:","863.32:1",.01,"E"
+121 ;;D^FM NAVIGATION CODE
+122 ;;R^"863.3:","863.32:1",1,"E"
+123 ;;D^IHS PATIENT:,VISIT:
+124 ;;R^"863.3:","863.32:2",.01,"E"
+125 ;;D^OCXO EXTERNAL FUNCTION CALL
+126 ;;R^"863.3:","863.32:2",1,"E"
+127 ;;D^RECCH(|PATIENT IEN|,7)
+128 ;;R^"863.3:","863.32:3",.01,"E"
+129 ;;D^OCXO UP-ARROW PIECE NUMBER
+130 ;;R^"863.3:","863.32:3",1,"E"
+131 ;;D^1
+132 ;;EOR^
+133 ;;KEY^863.3:^VISIT.DATE
+134 ;;R^"863.3:",.01,"E"
+135 ;;D^VISIT.DATE
+136 ;;R^"863.3:",.02,"E"
+137 ;;D^VISIT
+138 ;;R^"863.3:",.05,"E"
+139 ;;D^DATE OF VISIT
+140 ;;R^"863.3:",3.1,"E"
+141 ;;D^DATE
+142 ;;R^"863.3:",3.3,"E"
+143 ;;D^1
+144 ;;R^"863.3:","863.31:1",.01,"E"
+145 ;;D^VISIT DATE
+146 ;;R^"863.3:","863.31:2",.01,"E"
+147 ;;D^DATE OF VISIT
+148 ;;R^"863.3:","863.32:1",.01,"E"
+149 ;;D^FM NAVIGATION CODE
+150 ;;R^"863.3:","863.32:1",1,"E"
+151 ;;D^.01
+152 ;;EOR^
+153 ;;KEY^863.3:^VISIT.TYPE
+154 ;;R^"863.3:",.01,"E"
+155 ;;D^VISIT.TYPE
+156 ;;R^"863.3:",.02,"E"
+157 ;;D^VISIT
+158 ;;R^"863.3:",.05,"E"
+159 ;;D^TYPE OF VISIT
+160 ;;R^"863.3:",3.1,"E"
+161 ;;D^TYPE
+162 ;;R^"863.3:",3.3,"E"
+163 ;;D^2
+164 ;;R^"863.3:","863.32:1",.01,"E"
+165 ;;D^FM NAVIGATION CODE
+166 ;;R^"863.3:","863.32:1",1,"E"
+167 ;;D^.03
+168 ;;EOR^
+169 ;;KEY^863.3:^VISIT.SERVICE CATAGORY
+170 ;;R^"863.3:",.01,"E"
+171 ;;D^VISIT.SERVICE CATAGORY
+172 ;;R^"863.3:",.02,"E"
+173 ;;D^VISIT
+174 ;;R^"863.3:",.05,"E"
+175 ;;D^SERVICE CATEGORY
+176 ;;R^"863.3:",3.1,"E"
+177 ;;D^SERVICE CATEGORY
+178 ;;R^"863.3:",3.3,"E"
+179 ;;D^3
+180 ;;R^"863.3:","863.32:1",.01,"E"
+181 ;;D^FM NAVIGATION CODE
+182 ;;R^"863.3:","863.32:1",1,"E"
+183 ;;D^.07
+184 ;;EOR^
+185 ;;KEY^863.3:^PATIENT.SSN
+186 ;;R^"863.3:",.01,"E"
+187 ;;D^PATIENT.SSN
+188 ;;R^"863.3:",.02,"E"
+189 ;;D^PATIENT
+190 ;;R^"863.3:",.05,"E"
+191 ;;D^SOCIAL SECURITY NUMBER
+192 ;;R^"863.3:",3.3,"E"
+193 ;;D^4
+194 ;;R^"863.3:","863.32:1",.01,"E"
+195 ;;D^FM NAVIGATION CODE
+196 ;;R^"863.3:","863.32:1",1,"E"
+197 ;;D^.09
+198 ;;EOR^
+199 ;;KEY^863.3:^PATIENT.CITY
+200 ;;R^"863.3:",.01,"E"
+201 ;;D^PATIENT.CITY
+202 ;;R^"863.3:",.02,"E"
+203 ;;D^PATIENT
+204 ;;R^"863.3:",.05,"E"
+205 ;;D^CITY
+206 ;;R^"863.3:",3.3,"E"
+207 ;;D^11
+208 ;;R^"863.3:","863.32:1",.01,"E"
+209 ;;D^FM NAVIGATION CODE
+210 ;;R^"863.3:","863.32:1",1,"E"
+211 ;;D^.114
+212 ;;EOR^
+213 ;;KEY^863.3:^PATIENT.HL7_FILLER
+214 ;;R^"863.3:",.01,"E"
+215 ;;D^PATIENT.HL7_FILLER
+216 ;;R^"863.3:",.02,"E"
+217 ;;D^PATIENT
+218 ;;R^"863.3:",.04,"E"
+219 ;;D^HL7
+220 ;;R^"863.3:",.05,"E"
+221 ;;D^HL7 FILLER
+222 ;;R^"863.3:","863.32:1",.01,"E"
+223 ;;D^OCXO VT-BAR PIECE NUMBER
+224 ;;R^"863.3:","863.32:2",.01,"E"
+225 ;;D^OCXO UP-ARROW PIECE NUMBER
+226 ;;R^"863.3:","863.32:2",1,"E"
+227 ;;D^2
+228 ;;R^"863.3:","863.32:3",.01,"E"
+229 ;;D^OCXO VARIABLE NAME
+230 ;;R^"863.3:","863.32:3",1,"E"
+231 ;;D^OCXODATA("ORC",3)
+232 ;;R^"863.3:","863.32:4",.01,"E"
+233 ;;D^OCXO HL7 SEGMENT ID
+234 ;;R^"863.3:","863.32:5",.01,"E"
+235 ;;D^OCXO DATA DRIVE SOURCE
+236 ;;R^"863.3:","863.32:5",1,"E"
+237 ;1;
+238 ;