PSJCLOZ ; DAL/RJS - INPATIENT CLOZAPINE ORDER CHECK ;12 June 2019 11:36:51
Source file <PSJCLOZ.m>
Package | Total | Call Graph |
---|---|---|
VA FileMan | 6 | (C,NOW)^%DTC ($$FIND1,FIND,LIST)^DIC FILE^DICN ^DIE $$GET1^DIQ ^DIR |
Kernel | 3 | ($$FMTE,$$NOW)^XLFDT $$SETUP1^XQALERT $$DEA^XUSER |
Inpatient Medications | 1 | ($$ENDD,$$ENDTC)^PSGMI |
List Manager | 1 | (INSTR,PAUSE)^VALM1 |
Outpatient Pharmacy | 1 | $$CLKEYWRN^PSOCLUTL |
Uncategorized | 1 | ^@( |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
CLOZ(DFN,DRUG) | ;
; DFN is patient IEN, DRUG is drug file (#50) IEN |
|
PROVCHK(PROV) | ;
|
|
BEFQUIT | ;
|
|
OVERRIDE | ;
|
|
PSJFILE(DFN) | ;
|
|
PSJFILE1 | ;
|
|
ALERT | ; send an alert to the TWO approving team members
|
|
READ | ;
|
|
TDD | ; TOTAL DAILY DOSE INPUT
|
|
ORD | ;
|
|
END | ;
|
|
CMPLX | ;COMPLEX THEN ORDER LOGIC
|
|
CMPLX2 | ;SECOND COMPLEX THEN ORDER LOGIC
|
|
CMPLX3 | ;SECOND COMPLEX THEN ORDER LOGIC
|
|
CLOZPAT | ;VERIFY PATIENT IS A CLOZAPINE PATIENT
|
|
ANDTHEN | ;COMPLEX AND/THEN ORDER
|
|
DISPCMP(PSGORD,PSSD) | ;COMPLEX ORDER CHECK
|
|
EXTDT | ;VERIFY EXTERNAL DATE
|
|
MSG1 | ;
|
|
MSG2 | ;
|
|
MSG3 | ;
|
|
MSG4 | ;
|
|
MSG5 | ;
|
|
MSG6 | ; MSG 6 added for new critically low ANC levels clozapine override requirements
|
|
MSG9 | ;
|
|
MSG10 | ;
|
|
COMPLEX | ; Display Complex Order stop date warning message <<RJS
|
|
COMPLEX1 | ; Display Complex Order stop date warning message <<RJS
|
|
LASTCHLD(DFN,ON) | ; Last child of Complex order or not
|
|
ISCLOZ(PSGORD,ORPSOI,DFN,PSGORDNM,PSGDRG) | ; Define a clozapine order and associated drug
; PSGORD - Pending Order number (file 53.1) ; ORPSOI - ID containing Pharmacy Orderable Item number (file 50.7) ; DFN - Patient ID (file 2) ; PSGORDNM - Pharmacy order number (file 55) ; PSGDRG - Drug Code ; OROI - Orderable Item number (file 101.43) |
|
CLOZPSOI(ORPSOI) | ; Define a clozapine order based on Pharmacy Orderable item
|
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Routine Call |
|
Routine Call |
|
Routine Call |
|
Routine Call |
|
FileNo | Call Tags |
---|---|
100.002 | LIST^DIC |
100.045 | FIND1^DIC, GET1^DIQ |
^ORD(101.41 - [#101.41] | FIND1^DIC |
101.416 | FIND1^DIC, GET1^DIQ |
^DPT - [#2] | GET1^DIQ |
200.051 | FIND1^DIC |
^PSDRUG - [#50] | FIND^DIC, GET1^DIQ |
^PS(53.1 - [#53.1] | GET1^DIQ |
53.11 | GET1^DIQ |
^PS(53.8 - [#53.8] | Classic Fileman Calls |
^PS(55 - [#55] | GET1^DIQ |
55.01 | GET1^DIQ |
55.06 | GET1^DIQ |
55.07 | GET1^DIQ |
^YSCL(603.01 - [#603.01] | FIND1^DIC, GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DD("DD" | MSG6+5 |
^PS(53.8 - [#53.8] | PSJFILE1+2 |
^TMP("PSGCPLX" | CMPLX+5*, CMPLX2+5, CMPLX2+6, CMPLX2+8 |
^TMP("PSJCOM" | PSJFILE+3, PSJFILE+5, PSJFILE+6, PSJFILE+7 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | PSJFILE1+2, PSJFILE1+13! |
ANQDATA | PSJFILE+6*, PSJFILE1+1, PSJFILE1+3, PSJFILE1+4, PSJFILE1+13! |
ANQREM | PSJFILE1+13! |
>> ANQX | CLOZ+2*, CLOZ+3, PROVCHK+3*, PROVCHK+6*, PROVCHK+10*, TDD+2*, ORD+2, MSG1+9*, MSG2+8*, MSG4+7* , MSG6+5* |
ARR | CLOZPSOI+1~ |
ARR("DILIST" | CLOZPSOI+2 |
CLOZFLG | CLOZPSOI+1~ |
CLOZNUM | CLOZPAT+4~, CLOZPAT+5*, CLOZPAT+6 |
CLOZPAT | READ+1*, READ+2, CMPLX2+10, CMPLX3+6, CLOZPAT+1!, CLOZPAT+3*, CLOZPAT+7*, CLOZPAT+8*, COMPLEX+5, COMPLEX1+4 , COMPLEX1+5 |
CLOZUID | CLOZPAT+4~, CLOZPAT+6*, CLOZPAT+7 |
DA | PSJFILE1+9!, PSJFILE1+10*, PSJFILE1+11! |
DD | PSJFILE1+8!, PSJFILE1+9! |
DFN | CLOZ~, CLOZ+2, PSJFILE~, PSJFILE+1, CMPLX+5, CMPLX2+5, CMPLX2+6, CMPLX2+8, CLOZPAT+2, CLOZPAT+3 , CLOZPAT+5, LASTCHLD~, LASTCHLD+3, LASTCHLD+9, ISCLOZ~, ISCLOZ+15, ISCLOZ+16, ISCLOZ+18 |
DIC | PSJFILE1+8*, PSJFILE1+9! |
DIC(0 | PSJFILE1+8* |
DIE | PSJFILE1+10*, PSJFILE1+11! |
DIR | OVERRIDE+4!, READ+2!, TDD+2!, END+1! |
DIR("A" | OVERRIDE+4*, READ+2*, TDD+2* |
DIR("B" | READ+2* |
DIR(0 | OVERRIDE+4*, READ+2*, TDD+2* |
DIROUT | END+1! |
DIRUT | READ+2, TDD+2, END+1! |
DLAYGO | PSJFILE1+8*, PSJFILE1+9! |
DO | PSJFILE1+8!, PSJFILE1+9! |
DR | PSJFILE1+9!, PSJFILE1+10*, PSJFILE1+11! |
DRUG | CLOZ~, CLOZ+2, CLOZ+5 |
FL | LASTCHLD+1~ |
I | LASTCHLD+6*, LASTCHLD+7, LASTCHLD+12*, LASTCHLD+13, CLOZPSOI+2~* |
IOF | OVERRIDE+4 |
ISCLOZ | ISCLOZ+7~*, ISCLOZ+8, ISCLOZ+11*, ISCLOZ+14, ISCLOZ+15, ISCLOZ+17*, ISCLOZ+21*, ISCLOZ+22, CLOZPSOI+2, CLOZPSOI+3* |
LN | COMPLEX1+15~* |
MAX | LASTCHLD+5~*, LASTCHLD+7, LASTCHLD+11~*, LASTCHLD+13 |
MSG | COMPLEX1+3~, COMPLEX1+7*, COMPLEX1+8*, COMPLEX1+9*, COMPLEX1+10*, COMPLEX1+11*, COMPLEX1+12*, COMPLEX1+13*, COMPLEX1+14* |
>> NOW | PSJFILE1+2*, PSJFILE1+8 |
ON | LASTCHLD~, LASTCHLD+1, LASTCHLD+2, LASTCHLD+3, LASTCHLD+8, LASTCHLD+9 |
ORARR | LASTCHLD+5~, LASTCHLD+11~ |
ORARR("DILIST" | LASTCHLD+5, LASTCHLD+6, LASTCHLD+11, LASTCHLD+12 |
>> ORCLOZ | BEFQUIT+14, BEFQUIT+15 |
ORCLPAT | BEFQUIT+2~, BEFQUIT+10*, BEFQUIT+11 |
ORMAX | BEFQUIT+2~, BEFQUIT+11*, BEFQUIT+12, BEFQUIT+16 |
>> ORO | PSJFILE1+5, PSJFILE1+6 |
ORPSOI | ISCLOZ~, ISCLOZ+12~*, ISCLOZ+13, ISCLOZ+14, ISCLOZ+18~*, ISCLOZ+19, CLOZPSOI~, CLOZPSOI+1 |
>> ORX | BEFQUIT+4, BEFQUIT+5, BEFQUIT+7, BEFQUIT+8 |
ORY | BEFQUIT+13!, BEFQUIT+14* |
>> ORYS | BEFQUIT+10 |
PROV | PROVCHK~, PROVCHK+4, PROVCHK+5, PROVCHK+9, OVERRIDE+1 |
PS538 | PSJFILE1+10~* |
>> PSCDATE | ALERT+5*, ALERT+6 |
>> PSCLPAT | ALERT+2, ALERT+3, ALERT+6, ALERT+7 |
PSGCOMP | CMPLX+5*, COMPLEX+11!, COMPLEX1+16! |
>> PSGCOPY | TDD+4, CMPLX+2, CMPLX2+2, ANDTHEN+2 |
>> PSGCTDD | TDD+4* |
PSGDRG | ORD+1*, ORD+2, ISCLOZ~, ISCLOZ+10*, ISCLOZ+11, ISCLOZ+16*, ISCLOZ+17, ISCLOZ+21, CLOZPSOI+1~, CLOZPSOI+2* , CLOZPSOI+3 |
>> PSGETDD | TDD+3* |
>> PSGFD | CMPLX2+11*, CMPLX3+2, CMPLX3+3*, CMPLX3+7* |
>> PSGFDN | CMPLX2+11*, CMPLX3+3*, CMPLX3+7* |
PSGFDT | COMPLEX+3~, COMPLEX+6*, COMPLEX+10, COMPLEX1+3~, COMPLEX1+6*, COMPLEX1+13 |
>> PSGFLG | COMPLEX+1, COMPLEX+11*, COMPLEX1+1, COMPLEX1+16* |
PSGID | ANDTHEN+3~, ANDTHEN+4*, ANDTHEN+5 |
>> PSGODA | PSJFILE+3 |
PSGORD | CMPLX+1, CMPLX+5, CMPLX2+1, CMPLX2+7, CMPLX3+1, CMPLX3+2, ANDTHEN+1, ANDTHEN+3, DISPCMP~, DISPCMP+1 , DISPCMP+2, COMPLEX+2, COMPLEX1+2, ISCLOZ~, ISCLOZ+8, ISCLOZ+9, ISCLOZ+10, ISCLOZ+12 |
PSGORDNM | ISCLOZ~, ISCLOZ+15, ISCLOZ+16, ISCLOZ+18 |
>> PSGORQF | TDD+2*, ORD+2* |
>> PSGP | ORD+2 |
>> PSGPR | CLOZ+3 |
>> PSGRDTX | CMPLX2+8*, CMPLX2+9, CMPLX2+10, CMPLX3+6 |
>> PSGRDTX( | CMPLX2+9 |
>> PSGSD | CMPLX+5, COMPLEX+5, COMPLEX1+5 |
>> PSGSTAT | CMPLX3+2 |
PSGTMP | CMPLX2+6*, CMPLX2+7, CMPLX2+8, ANDTHEN+3~*, ANDTHEN+4, ANDTHEN+5 |
>> PSGTYP | CMPLX+4, CMPLX+5, CMPLX2+4, CMPLX3+5, ANDTHEN+3*, ANDTHEN+5* |
>> PSJ1PH | PSJFILE1+3* |
>> PSJ2PH | PSJFILE1+3*, PSJFILE1+12, ALERT+5 |
>> PSJCLPAT | PSJFILE+1* |
>> PSJCOM | PSJFILE+2 |
>> PSJDD | ORD+1 |
>> PSJEDITO | TDD+3 |
>> PSJORD | CMPLX2+9 |
PSJORD1 | PSJFILE+4~*, PSJFILE+5*, PSJFILE+6, PSJFILE+7 |
PSJORDER | PSJFILE+2~ |
PSJORDER("PSJORN" | PSJFILE1+7* |
PSJORN | PSJFILE+2~, PSJFILE+7*, PSJFILE1+6*, PSJFILE1+7 |
>> PSJPROV | PSJFILE1+3*, PSJFILE1+5*, PSJFILE1+12, ALERT+5 |
PSJQUIT | PROVCHK+1~, PROVCHK+3*, PROVCHK+6*, PROVCHK+8, PROVCHK+10* |
>> PSJREASN | PSJFILE1+4* |
>> PSJREMRK | PSJFILE1+4* |
>> PSOLAST4 | ALERT+3*, ALERT+6 |
PSORD1 | LASTCHLD+1~, LASTCHLD+2, LASTCHLD+3*, LASTCHLD+4, LASTCHLD+6, LASTCHLD+7*, LASTCHLD+8, LASTCHLD+9*, LASTCHLD+10, LASTCHLD+12 , LASTCHLD+13* |
PSORDA | LASTCHLD+1~, LASTCHLD+2, LASTCHLD+3*, LASTCHLD+4, LASTCHLD+5, LASTCHLD+8, LASTCHLD+9*, LASTCHLD+10, LASTCHLD+11 |
>> PSOSAND | TDD+5* |
>> PSOYS | MSG6+5, MSG6+6 |
PSSD | CMPLX3+3!, DISPCMP~, DISPCMP+2* |
>> QOAA | BEFQUIT+1 |
QODS | BEFQUIT+2~, BEFQUIT+3*, BEFQUIT+4*, BEFQUIT+5*, BEFQUIT+12 |
QORF | BEFQUIT+2~, BEFQUIT+6*, BEFQUIT+7*, BEFQUIT+8*, BEFQUIT+9*, BEFQUIT+12 |
RSLT | ALERT+1~, ALERT+8* |
RTN | CLOZ+4~, CLOZ+5*, CLOZ+6 |
U | BEFQUIT+10, BEFQUIT+14, BEFQUIT+15, CMPLX2+8, ISCLOZ+11, ISCLOZ+17, ISCLOZ+21, CLOZPSOI+3 |
X | PSJFILE1+8*, PSJFILE1+13!, TDD+3, TDD+4, TDD+5, CMPLX2+10~, CMPLX2+11, CMPLX3+6~, CMPLX3+7, COMPLEX+6 , COMPLEX1+6 |
X1 | CMPLX2+10~*, CMPLX3+6~*, COMPLEX+5*, COMPLEX1+5* |
X2 | CMPLX2+10~*, CMPLX3+6~*, COMPLEX+5*, COMPLEX1+5* |
>> XMY( | PSJFILE1+12* |
>> XQA( | ALERT+5* |
>> XQAARCH | ALERT+4* |
>> XQADATA | ALERT+2* |
>> XQAFLG | ALERT+4* |
>> XQAID | ALERT+7* |
>> XQAMSG | ALERT+6* |
>> XQX | READ+1 |
Y | OVERRIDE+2~, PSJFILE1+10, PSJFILE1+13!, READ+2, MSG6+5* |