OCXOZ0C ;SLC/RJS,CLA - Order Check Scan ;OCT 30,2024 at 12:49
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,221,243**;Dec 17,1997;Build 242
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
;
; ***************************************************************
; ** Warning: This routine is automatically generated by the **
; ** Rule Compiler (^OCXOCMP) and ANY changes to this routine **
; ** will be lost the next time the rule compiler executes. **
; ***************************************************************
;
Q
;
CHK343 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK197+9^OCXOZ09.
;
Q:$G(OCXOERR)
;
; Local CHK343 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(43) ---> Data Field: OI NATIONAL ID (FREE TEXT)
; OCXDF(74) ---> Data Field: VA DRUG CLASS (FREE TEXT)
; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
; OCXDF(132) --> Data Field: CLOZAPINE MED (BOOLEAN)
;
; Local Extrinsic Functions
;
S OCXDF(131)=$P($P($G(OCXPSD),"|",3),"^",4) I $L(OCXDF(131)) S OCXDF(37)=$G(DFN) I $L(OCXDF(37)) S OCXDF(132)=$P($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",1) D CHK348
S OCXDF(43)=$P($P($G(OCXPSD),"|",3),"^",1) I $L(OCXDF(43)) S OCXDF(74)=$P($$ENVAC^PSJORUT2(OCXDF(43)),"^",2) I $L(OCXDF(74)) D CHK468^OCXOZ0F
Q
;
CHK348 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK343+14.
;
Q:$G(OCXOERR)
;
; Local CHK348 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
; OCXDF(132) --> Data Field: CLOZAPINE MED (BOOLEAN)
;
; Local Extrinsic Functions
; FILE(DFN,116, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE DRUG SELECTED)
;
I $L(OCXDF(132)),(OCXDF(132)) S OCXDF(130)=$P($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4),OCXOERR=$$FILE(DFN,116,"130") Q:OCXOERR
Q
;
CHK355 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK58+20^OCXOZ05.
;
Q:$G(OCXOERR)
;
; Local CHK355 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
; OCXDF(136) --> Data Field: CLOZAPINE ANC W/IN 7 FLAG (BOOLEAN)
; OCXDF(137) --> Data Field: CLOZAPINE ANC W/IN 7 RESULT (NUMERIC)
; OCXDF(139) --> Data Field: CLOZAPINE WBC W/IN 7 FLAG (BOOLEAN)
;
; Local Extrinsic Functions
;
S OCXDF(136)=$P($P($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",3),";",1) I $L(OCXDF(136)),'(OCXDF(136)) D CHK358
S OCXDF(139)=$P($P($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",2),";",1) I $L(OCXDF(139)),'(OCXDF(139)) D CHK362
S OCXDF(137)=$P($P($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",3),";",2) I $L(OCXDF(137)) D CHK484^OCXOZ0F
Q
;
CHK358 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK355+14.
;
Q:$G(OCXOERR)
;
; Local CHK358 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
;
; Local Extrinsic Functions
; FILE(DFN,117, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE NO ANC W/IN 7 DAYS)
;
S OCXDF(130)=$P($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4),OCXOERR=$$FILE(DFN,117,"130") Q:OCXOERR
Q
;
CHK362 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK355+15.
;
Q:$G(OCXOERR)
;
; Local CHK362 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
;
; Local Extrinsic Functions
; FILE(DFN,118, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE NO WBC W/IN 7 DAYS)
;
S OCXDF(130)=$P($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4),OCXOERR=$$FILE(DFN,118,"130") Q:OCXOERR
Q
;
CHK367 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK58+21^OCXOZ05.
;
Q:$G(OCXOERR)
;
; Local CHK367 Variables
; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
; OCXDF(62) ---> Data Field: PATIENT AGE (NUMERIC)
; OCXDF(141) --> Data Field: AMITRIPTYLINE TEXT (FREE TEXT)
; OCXDF(143) --> Data Field: DANGEROUS MEDS FOR PT > 64 NAME (FREE TEXT)
;
; Local Extrinsic Functions
; MSGTEXT( ---------> MESSAGE TEXT
;
I (OCXDF(143)["AMITRIPTYLINE") S OCXDF(37)=$G(DFN) I $L(OCXDF(37)) S OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37)),OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE") D CHK372
I (OCXDF(143)["CHLORPROPAMIDE") S OCXDF(37)=$G(DFN) I $L(OCXDF(37)) S OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37)),OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE") D CHK379
I (OCXDF(143)["DIPYRIDAMOLE") S OCXDF(37)=$G(DFN) I $L(OCXDF(37)) S OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37)),OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE") D CHK386
Q
;
CHK372 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK367+14.
;
Q:$G(OCXOERR)
;
; Local CHK372 Variables
; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
;
; Local Extrinsic Functions
; FILE(DFN,122, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: AMITRIPTYLINE ORDER)
; MSGTEXT( ---------> MESSAGE TEXT
;
S OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE"),OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE"),OCXOERR=$$FILE(DFN,122,"62,141,142,144") Q:OCXOERR
Q
;
CHK379 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK367+15.
;
Q:$G(OCXOERR)
;
; Local CHK379 Variables
; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
;
; Local Extrinsic Functions
; FILE(DFN,123, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CHLORPROPAMIDE ORDER)
; MSGTEXT( ---------> MESSAGE TEXT
;
S OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE"),OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE"),OCXOERR=$$FILE(DFN,123,"62,141,142,144") Q:OCXOERR
Q
;
CHK386 ; Look through the current environment for valid Event/Elements for this patient.
; Called from CHK367+16.
;
Q:$G(OCXOERR)
;
; Local CHK386 Variables
; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
;
; Local Extrinsic Functions
; FILE(DFN,124, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: DIPYRIDAMOLE ORDER)
; MSGTEXT( ---------> MESSAGE TEXT
;
S OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE"),OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE"),OCXOERR=$$FILE(DFN,124,"62,141,142,144") Q:OCXOERR
Q
;
FILE(DFN,OCXELE,OCXDFL) ; This Local Extrinsic Function logs a validated event/element.
;
N OCXTIMN,OCXTIML,OCXTIMT1,OCXTIMT2,OCXDATA,OCXPC,OCXPC,OCXVAL,OCXSUB,OCXDFI
S DFN=+$G(DFN),OCXELE=+$G(OCXELE)
;
Q:'DFN 1 Q:'OCXELE 1 K OCXDATA
;
S OCXDATA(DFN,OCXELE)=1
F OCXPC=1:1:$L(OCXDFL,",") S OCXDFI=$P(OCXDFL,",",OCXPC) I OCXDFI D
.S OCXVAL=$G(OCXDF(+OCXDFI)),OCXDATA(DFN,OCXELE,+OCXDFI)=OCXVAL
;
M ^TMP("OCXCHK",$J,DFN)=OCXDATA(DFN)
;
Q 0
;
MSGTEXT(ID) ; Compiler Function: MESSAGE TEXT
;
N MSG
S MSG=""
;
I ID="AMITRIPTYLINE" D
.S MSG="Amitriptyline can cause cognitive impairment and loss of"
.S MSG=MSG_" balance in older patients. Consider other antidepressant"
.S MSG=MSG_" medications on formulary."
;
I ID="CHLORPROPAMIDE" D
.S MSG="Older patients may experience hypoglycemia with"
.S MSG=MSG_" Chlorpropamide due to its long duration and variable"
.S MSG=MSG_" renal secretion. They may also be at increased risk for"
.S MSG=MSG_" Chlorpropamide-induced SIADH."
;
I ID="DIPYRIDAMOLE" D
.S MSG="Older patients can experience adverse reactions at high doses"
.S MSG=MSG_" of Dipyridamole (e.g., headache, dizziness, syncope, GI"
.S MSG=MSG_" intolerance.) There is also questionable efficacy at"
.S MSG=MSG_" lower doses."
;
I ID="CLOZWBC30_35" D
.S MSG="WBC between 3.0 and 3.5 with no ANC - pharmacy cannot fill"
.S MSG=MSG_" clozapine order. Please order CBC/Diff with WBC and ANC"
.S MSG=MSG_" immediately."
;
Q MSG
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOCXOZ0C 8548 printed Dec 13, 2024@02:25:58 Page 2
OCXOZ0C ;SLC/RJS,CLA - Order Check Scan ;OCT 30,2024 at 12:49
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32,221,243**;Dec 17,1997;Build 242
+2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
+3 ;
+4 ; ***************************************************************
+5 ; ** Warning: This routine is automatically generated by the **
+6 ; ** Rule Compiler (^OCXOCMP) and ANY changes to this routine **
+7 ; ** will be lost the next time the rule compiler executes. **
+8 ; ***************************************************************
+9 ;
+10 QUIT
+11 ;
CHK343 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK197+9^OCXOZ09.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK343 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(43) ---> Data Field: OI NATIONAL ID (FREE TEXT)
+8 ; OCXDF(74) ---> Data Field: VA DRUG CLASS (FREE TEXT)
+9 ; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
+10 ; OCXDF(132) --> Data Field: CLOZAPINE MED (BOOLEAN)
+11 ;
+12 ; Local Extrinsic Functions
+13 ;
+14 SET OCXDF(131)=$PIECE($PIECE($GET(OCXPSD),"|",3),"^",4)
IF $LENGTH(OCXDF(131))
SET OCXDF(37)=$GET(DFN)
IF $LENGTH(OCXDF(37))
SET OCXDF(132)=$PIECE($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",1)
DO CHK348
+15 SET OCXDF(43)=$PIECE($PIECE($GET(OCXPSD),"|",3),"^",1)
IF $LENGTH(OCXDF(43))
SET OCXDF(74)=$PIECE($$ENVAC^PSJORUT2(OCXDF(43)),"^",2)
IF $LENGTH(OCXDF(74))
DO CHK468^OCXOZ0F
+16 QUIT
+17 ;
CHK348 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK343+14.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK348 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
+8 ; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
+9 ; OCXDF(132) --> Data Field: CLOZAPINE MED (BOOLEAN)
+10 ;
+11 ; Local Extrinsic Functions
+12 ; FILE(DFN,116, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE DRUG SELECTED)
+13 ;
+14 IF $LENGTH(OCXDF(132))
IF (OCXDF(132))
SET OCXDF(130)=$PIECE($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4)
SET OCXOERR=$$FILE(DFN,116,"130")
if OCXOERR
QUIT
+15 QUIT
+16 ;
CHK355 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK58+20^OCXOZ05.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK355 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
+8 ; OCXDF(136) --> Data Field: CLOZAPINE ANC W/IN 7 FLAG (BOOLEAN)
+9 ; OCXDF(137) --> Data Field: CLOZAPINE ANC W/IN 7 RESULT (NUMERIC)
+10 ; OCXDF(139) --> Data Field: CLOZAPINE WBC W/IN 7 FLAG (BOOLEAN)
+11 ;
+12 ; Local Extrinsic Functions
+13 ;
+14 SET OCXDF(136)=$PIECE($PIECE($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",3),";",1)
IF $LENGTH(OCXDF(136))
IF '(OCXDF(136))
DO CHK358
+15 SET OCXDF(139)=$PIECE($PIECE($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",2),";",1)
IF $LENGTH(OCXDF(139))
IF '(OCXDF(139))
DO CHK362
+16 SET OCXDF(137)=$PIECE($PIECE($$CLOZLABS^ORKLR(OCXDF(37),7,OCXDF(131)),"^",3),";",2)
IF $LENGTH(OCXDF(137))
DO CHK484^OCXOZ0F
+17 QUIT
+18 ;
CHK358 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK355+14.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK358 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
+8 ; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
+9 ;
+10 ; Local Extrinsic Functions
+11 ; FILE(DFN,117, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE NO ANC W/IN 7 DAYS)
+12 ;
+13 SET OCXDF(130)=$PIECE($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4)
SET OCXOERR=$$FILE(DFN,117,"130")
if OCXOERR
QUIT
+14 QUIT
+15 ;
CHK362 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK355+15.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK362 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(130) --> Data Field: CLOZAPINE LAB RESULTS (FREE TEXT)
+8 ; OCXDF(131) --> Data Field: PHARMACY LOCAL ID (FREE TEXT)
+9 ;
+10 ; Local Extrinsic Functions
+11 ; FILE(DFN,118, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CLOZAPINE NO WBC W/IN 7 DAYS)
+12 ;
+13 SET OCXDF(130)=$PIECE($$CLOZLABS^ORKLR(OCXDF(37),"",OCXDF(131)),"^",4)
SET OCXOERR=$$FILE(DFN,118,"130")
if OCXOERR
QUIT
+14 QUIT
+15 ;
CHK367 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK58+21^OCXOZ05.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK367 Variables
+6 ; OCXDF(37) ---> Data Field: PATIENT IEN (NUMERIC)
+7 ; OCXDF(62) ---> Data Field: PATIENT AGE (NUMERIC)
+8 ; OCXDF(141) --> Data Field: AMITRIPTYLINE TEXT (FREE TEXT)
+9 ; OCXDF(143) --> Data Field: DANGEROUS MEDS FOR PT > 64 NAME (FREE TEXT)
+10 ;
+11 ; Local Extrinsic Functions
+12 ; MSGTEXT( ---------> MESSAGE TEXT
+13 ;
+14 IF (OCXDF(143)["AMITRIPTYLINE")
SET OCXDF(37)=$GET(DFN)
IF $LENGTH(OCXDF(37))
SET OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37))
SET OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE")
DO CHK372
+15 IF (OCXDF(143)["CHLORPROPAMIDE")
SET OCXDF(37)=$GET(DFN)
IF $LENGTH(OCXDF(37))
SET OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37))
SET OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE")
DO CHK379
+16 IF (OCXDF(143)["DIPYRIDAMOLE")
SET OCXDF(37)=$GET(DFN)
IF $LENGTH(OCXDF(37))
SET OCXDF(62)=$$AGE^ORQPTQ4(OCXDF(37))
SET OCXDF(141)=$$MSGTEXT("AMITRIPTYLINE")
DO CHK386
+17 QUIT
+18 ;
CHK372 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK367+14.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK372 Variables
+6 ; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
+7 ; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
+8 ;
+9 ; Local Extrinsic Functions
+10 ; FILE(DFN,122, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: AMITRIPTYLINE ORDER)
+11 ; MSGTEXT( ---------> MESSAGE TEXT
+12 ;
+13 SET OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE")
SET OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE")
SET OCXOERR=$$FILE(DFN,122,"62,141,142,144")
if OCXOERR
QUIT
+14 QUIT
+15 ;
CHK379 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK367+15.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK379 Variables
+6 ; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
+7 ; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
+8 ;
+9 ; Local Extrinsic Functions
+10 ; FILE(DFN,123, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: CHLORPROPAMIDE ORDER)
+11 ; MSGTEXT( ---------> MESSAGE TEXT
+12 ;
+13 SET OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE")
SET OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE")
SET OCXOERR=$$FILE(DFN,123,"62,141,142,144")
if OCXOERR
QUIT
+14 QUIT
+15 ;
CHK386 ; Look through the current environment for valid Event/Elements for this patient.
+1 ; Called from CHK367+16.
+2 ;
+3 if $GET(OCXOERR)
QUIT
+4 ;
+5 ; Local CHK386 Variables
+6 ; OCXDF(142) --> Data Field: CHLORPROPAMIDE TEXT (FREE TEXT)
+7 ; OCXDF(144) --> Data Field: DIPYRIDAMOLE TEXT (FREE TEXT)
+8 ;
+9 ; Local Extrinsic Functions
+10 ; FILE(DFN,124, ----> FILE DATA IN PATIENT ACTIVE DATA FILE (Event/Element: DIPYRIDAMOLE ORDER)
+11 ; MSGTEXT( ---------> MESSAGE TEXT
+12 ;
+13 SET OCXDF(142)=$$MSGTEXT("CHLORPROPAMIDE")
SET OCXDF(144)=$$MSGTEXT("DIPYRIDAMOLE")
SET OCXOERR=$$FILE(DFN,124,"62,141,142,144")
if OCXOERR
QUIT
+14 QUIT
+15 ;
FILE(DFN,OCXELE,OCXDFL) ; This Local Extrinsic Function logs a validated event/element.
+1 ;
+2 NEW OCXTIMN,OCXTIML,OCXTIMT1,OCXTIMT2,OCXDATA,OCXPC,OCXPC,OCXVAL,OCXSUB,OCXDFI
+3 SET DFN=+$GET(DFN)
SET OCXELE=+$GET(OCXELE)
+4 ;
+5 if 'DFN
QUIT 1
if 'OCXELE
QUIT 1
KILL OCXDATA
+6 ;
+7 SET OCXDATA(DFN,OCXELE)=1
+8 FOR OCXPC=1:1:$LENGTH(OCXDFL,",")
SET OCXDFI=$PIECE(OCXDFL,",",OCXPC)
IF OCXDFI
Begin DoDot:1
+9 SET OCXVAL=$GET(OCXDF(+OCXDFI))
SET OCXDATA(DFN,OCXELE,+OCXDFI)=OCXVAL
End DoDot:1
+10 ;
+11 MERGE ^TMP("OCXCHK",$JOB,DFN)=OCXDATA(DFN)
+12 ;
+13 QUIT 0
+14 ;
MSGTEXT(ID) ; Compiler Function: MESSAGE TEXT
+1 ;
+2 NEW MSG
+3 SET MSG=""
+4 ;
+5 IF ID="AMITRIPTYLINE"
Begin DoDot:1
+6 SET MSG="Amitriptyline can cause cognitive impairment and loss of"
+7 SET MSG=MSG_" balance in older patients. Consider other antidepressant"
+8 SET MSG=MSG_" medications on formulary."
End DoDot:1
+9 ;
+10 IF ID="CHLORPROPAMIDE"
Begin DoDot:1
+11 SET MSG="Older patients may experience hypoglycemia with"
+12 SET MSG=MSG_" Chlorpropamide due to its long duration and variable"
+13 SET MSG=MSG_" renal secretion. They may also be at increased risk for"
+14 SET MSG=MSG_" Chlorpropamide-induced SIADH."
End DoDot:1
+15 ;
+16 IF ID="DIPYRIDAMOLE"
Begin DoDot:1
+17 SET MSG="Older patients can experience adverse reactions at high doses"
+18 SET MSG=MSG_" of Dipyridamole (e.g., headache, dizziness, syncope, GI"
+19 SET MSG=MSG_" intolerance.) There is also questionable efficacy at"
+20 SET MSG=MSG_" lower doses."
End DoDot:1
+21 ;
+22 IF ID="CLOZWBC30_35"
Begin DoDot:1
+23 SET MSG="WBC between 3.0 and 3.5 with no ANC - pharmacy cannot fill"
+24 SET MSG=MSG_" clozapine order. Please order CBC/Diff with WBC and ANC"
+25 SET MSG=MSG_" immediately."
End DoDot:1
+26 ;
+27 QUIT MSG
+28 ;