[613] | 1 | OCXDI026 ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
|
---|
| 2 | ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
|
---|
| 3 | ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
|
---|
| 4 | ;
|
---|
| 5 | S ;
|
---|
| 6 | ;
|
---|
| 7 | D DOT^OCXDIAG
|
---|
| 8 | ;
|
---|
| 9 | ;
|
---|
| 10 | K REMOTE,LOCAL,OPCODE,REF
|
---|
| 11 | F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT I $L(TEXT) D Q:QUIT
|
---|
| 12 | .S ^TMP("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
|
---|
| 13 | ;
|
---|
| 14 | G ^OCXDI027
|
---|
| 15 | ;
|
---|
| 16 | Q
|
---|
| 17 | ;
|
---|
| 18 | DATA ;
|
---|
| 19 | ;
|
---|
| 20 | ;;D^6
|
---|
| 21 | ;;R^"863.3:","863.32:3",.01,"E"
|
---|
| 22 | ;;D^OCXO FILE POINTER
|
---|
| 23 | ;;R^"863.3:","863.32:3",1,"E"
|
---|
| 24 | ;;D^42
|
---|
| 25 | ;;EOR^
|
---|
| 26 | ;;KEY^863.3:^PATIENT.MOVE_SERV_CURR
|
---|
| 27 | ;;R^"863.3:",.01,"E"
|
---|
| 28 | ;;D^PATIENT.MOVE_SERV_CURR
|
---|
| 29 | ;;R^"863.3:",.02,"E"
|
---|
| 30 | ;;D^PATIENT
|
---|
| 31 | ;;R^"863.3:",.04,"E"
|
---|
| 32 | ;;D^DGPM
|
---|
| 33 | ;;R^"863.3:",.05,"E"
|
---|
| 34 | ;;D^SERVICE CATEGORY
|
---|
| 35 | ;;R^"863.3:",.06,"E"
|
---|
| 36 | ;;D^99
|
---|
| 37 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 38 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 39 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 40 | ;;D^WARDSERV(|PMWIENC|)
|
---|
| 41 | ;;EOR^
|
---|
| 42 | ;;KEY^863.3:^PATIENT.MOV_WARD_IEN_CURR
|
---|
| 43 | ;;R^"863.3:",.01,"E"
|
---|
| 44 | ;;D^PATIENT.MOV_WARD_IEN_CURR
|
---|
| 45 | ;;R^"863.3:",.02,"E"
|
---|
| 46 | ;;D^PATIENT
|
---|
| 47 | ;;R^"863.3:",.04,"E"
|
---|
| 48 | ;;D^DGPM
|
---|
| 49 | ;;R^"863.3:",.05,"E"
|
---|
| 50 | ;;D^IEN
|
---|
| 51 | ;;R^"863.3:",.06,"E"
|
---|
| 52 | ;;D^99
|
---|
| 53 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 54 | ;;D^OCXO VARIABLE NAME
|
---|
| 55 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 56 | ;;D^DGPMA
|
---|
| 57 | ;;R^"863.3:","863.32:2",.01,"E"
|
---|
| 58 | ;;D^OCXO UP-ARROW PIECE NUMBER
|
---|
| 59 | ;;R^"863.3:","863.32:2",1,"E"
|
---|
| 60 | ;;D^6
|
---|
| 61 | ;;EOR^
|
---|
| 62 | ;;KEY^863.3:^PATIENT.MOV_WARD_IEN_PREV
|
---|
| 63 | ;;R^"863.3:",.01,"E"
|
---|
| 64 | ;;D^PATIENT.MOV_WARD_IEN_PREV
|
---|
| 65 | ;;R^"863.3:",.02,"E"
|
---|
| 66 | ;;D^PATIENT
|
---|
| 67 | ;;R^"863.3:",.04,"E"
|
---|
| 68 | ;;D^DGPM
|
---|
| 69 | ;;R^"863.3:",.05,"E"
|
---|
| 70 | ;;D^IEN
|
---|
| 71 | ;;R^"863.3:",.06,"E"
|
---|
| 72 | ;;D^99
|
---|
| 73 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 74 | ;;D^OCXO VARIABLE NAME
|
---|
| 75 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 76 | ;;D^DGPM0
|
---|
| 77 | ;;R^"863.3:","863.32:2",.01,"E"
|
---|
| 78 | ;;D^OCXO UP-ARROW PIECE NUMBER
|
---|
| 79 | ;;R^"863.3:","863.32:2",1,"E"
|
---|
| 80 | ;;D^6
|
---|
| 81 | ;;EOR^
|
---|
| 82 | ;;KEY^863.3:^PATIENT.MOVE_SERV_PREV
|
---|
| 83 | ;;R^"863.3:",.01,"E"
|
---|
| 84 | ;;D^PATIENT.MOVE_SERV_PREV
|
---|
| 85 | ;;R^"863.3:",.02,"E"
|
---|
| 86 | ;;D^PATIENT
|
---|
| 87 | ;;R^"863.3:",.04,"E"
|
---|
| 88 | ;;D^DGPM
|
---|
| 89 | ;;R^"863.3:",.05,"E"
|
---|
| 90 | ;;D^SERVICE CATEGORY
|
---|
| 91 | ;;R^"863.3:",.06,"E"
|
---|
| 92 | ;;D^99
|
---|
| 93 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 94 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 95 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 96 | ;;D^WARDSERV(|PMWIENP|)
|
---|
| 97 | ;;EOR^
|
---|
| 98 | ;;KEY^863.3:^PATIENT.MOVE_WARD_PREV
|
---|
| 99 | ;;R^"863.3:",.01,"E"
|
---|
| 100 | ;;D^PATIENT.MOVE_WARD_PREV
|
---|
| 101 | ;;R^"863.3:",.02,"E"
|
---|
| 102 | ;;D^PATIENT
|
---|
| 103 | ;;R^"863.3:",.04,"E"
|
---|
| 104 | ;;D^DGPM
|
---|
| 105 | ;;R^"863.3:",.05,"E"
|
---|
| 106 | ;;D^WARD NAME
|
---|
| 107 | ;;R^"863.3:",.06,"E"
|
---|
| 108 | ;;D^99
|
---|
| 109 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 110 | ;;D^OCXO VARIABLE NAME
|
---|
| 111 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 112 | ;;D^DGPM0
|
---|
| 113 | ;;R^"863.3:","863.32:2",.01,"E"
|
---|
| 114 | ;;D^OCXO UP-ARROW PIECE NUMBER
|
---|
| 115 | ;;R^"863.3:","863.32:2",1,"E"
|
---|
| 116 | ;;D^6
|
---|
| 117 | ;;R^"863.3:","863.32:3",.01,"E"
|
---|
| 118 | ;;D^OCXO FILE POINTER
|
---|
| 119 | ;;R^"863.3:","863.32:3",1,"E"
|
---|
| 120 | ;;D^42
|
---|
| 121 | ;;EOR^
|
---|
| 122 | ;;KEY^863.3:^PATIENT.ORD_ITEM_NAME
|
---|
| 123 | ;;R^"863.3:",.01,"E"
|
---|
| 124 | ;;D^PATIENT.ORD_ITEM_NAME
|
---|
| 125 | ;;R^"863.3:",.02,"E"
|
---|
| 126 | ;;D^PATIENT
|
---|
| 127 | ;;R^"863.3:",.04,"E"
|
---|
| 128 | ;;D^DBL
|
---|
| 129 | ;;R^"863.3:",.05,"E"
|
---|
| 130 | ;;D^ORDERABLE ITEM
|
---|
| 131 | ;;R^"863.3:",.06,"E"
|
---|
| 132 | ;;D^99
|
---|
| 133 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 134 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 135 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 136 | ;;D^ORDITEM(|ORDER NUMBER|)
|
---|
| 137 | ;;EOR^
|
---|
| 138 | ;;KEY^863.3:^PATIENT.NEW_MOVEMENT
|
---|
| 139 | ;;R^"863.3:",.01,"E"
|
---|
| 140 | ;;D^PATIENT.NEW_MOVEMENT
|
---|
| 141 | ;;R^"863.3:",.02,"E"
|
---|
| 142 | ;;D^PATIENT
|
---|
| 143 | ;;R^"863.3:",.05,"E"
|
---|
| 144 | ;;D^NEW MOVEMENT
|
---|
| 145 | ;;R^"863.3:",.06,"E"
|
---|
| 146 | ;;D^9999
|
---|
| 147 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 148 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 149 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 150 | ;;D^('(+$G(DGPMA)=+$G(DGPM0))&'$L(DGPMP))
|
---|
| 151 | ;;EOR^
|
---|
| 152 | ;;KEY^863.3:^PATIENT.ACTIVE MEDS
|
---|
| 153 | ;;R^"863.3:",.01,"E"
|
---|
| 154 | ;;D^PATIENT.ACTIVE MEDS
|
---|
| 155 | ;;R^"863.3:",.02,"E"
|
---|
| 156 | ;;D^PATIENT
|
---|
| 157 | ;;R^"863.3:",.06,"E"
|
---|
| 158 | ;;D^1
|
---|
| 159 | ;;EOR^
|
---|
| 160 | ;;KEY^863.3:^LOCAL GLUCOPHAGE MEDS
|
---|
| 161 | ;;R^"863.3:",.01,"E"
|
---|
| 162 | ;;D^LOCAL GLUCOPHAGE MEDS
|
---|
| 163 | ;;R^"863.3:",.02,"E"
|
---|
| 164 | ;;D^PATIENT
|
---|
| 165 | ;;R^"863.3:",.06,"E"
|
---|
| 166 | ;;D^99
|
---|
| 167 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 168 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 169 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 170 | ;;D^("METFORMIN")
|
---|
| 171 | ;;EOR^
|
---|
| 172 | ;;KEY^863.3:^PATIENT.TAKING_LITHIUM
|
---|
| 173 | ;;R^"863.3:",.01,"E"
|
---|
| 174 | ;;D^PATIENT.TAKING_LITHIUM
|
---|
| 175 | ;;R^"863.3:",.02,"E"
|
---|
| 176 | ;;D^PATIENT
|
---|
| 177 | ;;R^"863.3:",.05,"E"
|
---|
| 178 | ;;D^CURRENT LITHIUM FLAG
|
---|
| 179 | ;;R^"863.3:",.06,"E"
|
---|
| 180 | ;;D^99
|
---|
| 181 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 182 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 183 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 184 | ;;D^TAKEMED^ORKPS(|PATIENT IEN|,"^LITHIUM")
|
---|
| 185 | ;;R^"863.3:","863.32:2",.01,"E"
|
---|
| 186 | ;;D^OCXO UP-ARROW PIECE NUMBER
|
---|
| 187 | ;;R^"863.3:","863.32:2",1,"E"
|
---|
| 188 | ;;D^1
|
---|
| 189 | ;;EOR^
|
---|
| 190 | ;;KEY^863.3:^PATIENT.DATE_LAST_LITHIUM_TEST
|
---|
| 191 | ;;R^"863.3:",.01,"E"
|
---|
| 192 | ;;D^PATIENT.DATE_LAST_LITHIUM_TEST
|
---|
| 193 | ;;R^"863.3:",.02,"E"
|
---|
| 194 | ;;D^PATIENT
|
---|
| 195 | ;;R^"863.3:",.05,"E"
|
---|
| 196 | ;;D^LAB TEST DATE
|
---|
| 197 | ;;R^"863.3:",.06,"E"
|
---|
| 198 | ;;D^99
|
---|
| 199 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 200 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 201 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 202 | ;;D^LOCL^ORQQLR1(|PATIENT IEN|,|LITHIUM LAB TEST NID|,"SERUM SPECIMEN")
|
---|
| 203 | ;;R^"863.3:","863.32:2",.01,"E"
|
---|
| 204 | ;;D^OCXO UP-ARROW PIECE NUMBER
|
---|
| 205 | ;;R^"863.3:","863.32:2",1,"E"
|
---|
| 206 | ;;D^6
|
---|
| 207 | ;;EOR^
|
---|
| 208 | ;;KEY^863.3:^LITHIUM LAB TEST NID
|
---|
| 209 | ;;R^"863.3:",.01,"E"
|
---|
| 210 | ;;D^LITHIUM LAB TEST NID
|
---|
| 211 | ;;R^"863.3:",.05,"E"
|
---|
| 212 | ;;D^NATIONAL LAB ID
|
---|
| 213 | ;;R^"863.3:",.06,"E"
|
---|
| 214 | ;;D^99
|
---|
| 215 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 216 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 217 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 218 | ;;D^(0)
|
---|
| 219 | ;;EOR^
|
---|
| 220 | ;;KEY^863.3:^PATIENT.TAKING_GLUCOPHAGE
|
---|
| 221 | ;;R^"863.3:",.01,"E"
|
---|
| 222 | ;;D^PATIENT.TAKING_GLUCOPHAGE
|
---|
| 223 | ;;R^"863.3:",.02,"E"
|
---|
| 224 | ;;D^PATIENT
|
---|
| 225 | ;;R^"863.3:",.05,"E"
|
---|
| 226 | ;;D^CURRENT GLUCOPHAGE FLAG
|
---|
| 227 | ;;R^"863.3:",.06,"E"
|
---|
| 228 | ;;D^999
|
---|
| 229 | ;;R^"863.3:","863.32:1",.01,"E"
|
---|
| 230 | ;;D^OCXO EXTERNAL FUNCTION CALL
|
---|
| 231 | ;;R^"863.3:","863.32:1",1,"E"
|
---|
| 232 | ;1;
|
---|
| 233 | ;
|
---|