AQAQCHK ; GENERATED FROM 'AQAQCHKLST' PRINT TEMPLATE (#410) ; 03/01/90 ; (FILE 9002155, MARGIN=80)
G BEGIN
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
Q
DT I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1
I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(410,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
D N:$X>2 Q:'DN W ?2 W "STAFF CREDENTIALS CHECKLIST"
D N:$X>2 Q:'DN W ?2 W "---------------------------"
S X=$S($D(^AQAQ(D0,0)):^(0),1:"") D T Q:'DN D N D N W ?0 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^DIC(6,Y,0))#2:$P(^(0),U,1),1:Y) S Y=$S(Y="":Y,$D(^DIC(16,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,30)
W ?32 S Y=$P(X,U,2) W:Y]"" $S($D(DXS(16,Y)):DXS(16,Y),1:Y)
W ?32 W "APPLIED: "
S Y=$P(X,U,3) D DT
D N:$X>32 Q:'DN W ?32 X DXS(1,9.2) S X=$S('$D(^DIC(7,+$P(DIP(101),U,4),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) K DIP,Y W X
D N:$X>54 Q:'DN W ?54 X DXS(2,9.2) S DIP(101)=$S($D(^DIC(6,D0,9999999)):^(9999999),1:"") S X=$P($P(DIP(102),$C(59)_$P(DIP(101),U,1)_":",2),$C(59),1) S D0=I(0,0) K DIP,Y W X
D T Q:'DN D N D N W ?0 W "INITIAL APPLICATION:"
D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "HEALTH STATUS STATEMENT ON FILE:"
D N:$X>39 Q:'DN W ?39 X DXS(3,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,1)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "INTERNSHIP CERTIFICATE ON FILE: "
D N:$X>39 Q:'DN W ?39 X DXS(4,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,5)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "RESIDENCY CERTIFICATE ON FILE: "
D N:$X>39 Q:'DN W ?39 X DXS(5,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,4)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "PROFESSIONAL DEGREE ON FILE:"
D N:$X>39 Q:'DN W ?39 X DXS(6,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,6)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "PROFESSIONAL DEGREE VERIFIED:"
D N:$X>39 Q:'DN W ?39 X DXS(7,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,14)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "BYLAWS AGREEMENT SIGNED:"
D N:$X>39 Q:'DN W ?39 X DXS(8,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,9)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "INFORMATION RELEASE SIGNED:"
D N:$X>39 Q:'DN W ?39 X DXS(9,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,10)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "CURRICULUM VITAE ON FILE:"
D N:$X>39 Q:'DN W ?39 X DXS(10,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,11)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "DEA REGISTRATION NUMBER:"
D N:$X>39 Q:'DN W ?39 X DXS(11,9) K DIP,Y W X
D N:$X>2 Q:'DN W ?2 W "3 LETTERS OF REFERENCE ON FILE:"
D N:$X>39 Q:'DN W ?39 X DXS(12,9.3) S X=$P($P(DIP(6),$C(59)_$P(DIP(1),U,13)_":",2),$C(59),1),X=$S(DIP(3):DIP(4),DIP(5):X) K DIP,Y W X
D N:$X>4 Q:'DN W ?4 W ""
D N:$X>3 Q:'DN W ?3 W ""
D N:$X>0 Q:'DN W ?0 W "RECURRING ITEMS:"
D T Q:'DN D N D N:$X>2 Q:'DN W ?2 W "BOARD CERTIFICATION:"
D N:$X>2 Q:'DN W ?2 W "BOARD CERTIFIED VERIFIED"
D N:$X>3 Q:'DN W ?3 W ""
S I(1)=1,J(1)=9002155.013 F D1=0:0 Q:$N(^AQAQ(D0,1,D1))'>0 X:$D(DSC(9002155.013)) DSC(9002155.013) S D1=$N(^(D1)) Q:D1'>0 D:$X>5 T Q:'DN D A1
G A1R
A1 ;
S X=$S($D(^AQAQ(D0,1,D1,0)):^(0),1:"") D N:$X>2 Q:'DN W ?2 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^AQAQBD(Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,21)
W ?25 S Y=$P(X,U,1) D DT
W ?40 S Y=$P(X,U,3) D DT
Q
A1R ;
D N:$X>3 Q:'DN W ?3 W ""
D N:$X>2 Q:'DN W ?2 W "HEALTH STATUS VERIFICATION:"
S I(1)=6,J(1)=9002155.018 F D1=0:0 Q:$N(^AQAQ(D0,6,D1))'>0 X:$D(DSC(9002155.018)) DSC(9002155.018) S D1=$N(^(D1)) Q:D1'>0 D:$X>31 T Q:'DN D B1
G B1R
B1 ;
S X=$S($D(^AQAQ(D0,6,D1,0)):^(0),1:"") D N:$X>31 Q:'DN W ?31 S Y=$P(X,U,1) D DT
Q
B1R ;
D N:$X>2 Q:'DN W ?2 W "MEDICAL LICENSE EXP. DATE:"
D N:$X>31 Q:'DN W ?31 X DXS(13,9) S Y=X K DIP,Y S Y=X D DT
D N:$X>2 Q:'DN W ?2 W "MEDICAL LICENSE VERIFIED:"
G ^AQAQCHK1
AQAQCHK ; GENERATED FROM 'AQAQCHKLST' PRINT TEMPLATE (#410) ; 03/01/90 ; (FILE 9002155, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T IF $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 QUIT
DT IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
IF Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
IF Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+1 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
+2 IF $DATA(DXS)<9
FOR X=0:0
SET X=$ORDER(^DIPT(410,"DXS",X))
IF 'X
QUIT
SET Y=$ORDER(^(X,""))
FOR X=X:0
IF Y=""
QUIT
SET DXS(X,Y)=^(Y)
SET Y=$ORDER(^(Y))
+3 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "STAFF CREDENTIALS CHECKLIST"
+4 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "---------------------------"
+5 SET X=$SELECT($DATA(^AQAQ(D0,0)):^(0),1:"")
DO T
IF 'DN
QUIT
DO N
DO N
WRITE ?0
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(6,Y,0))#2:$PIECE(^(0),U,1),1:Y)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(16,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,30)
+6 WRITE ?32
SET Y=$PIECE(X,U,2)
IF Y]""
WRITE $SELECT($DATA(DXS(16,Y)):DXS(16,Y),1:Y)
+7 WRITE ?32
WRITE "APPLIED: "
+8 SET Y=$PIECE(X,U,3)
DO DT
+9 IF $X>32
DO N
IF 'DN
QUIT
WRITE ?32
XECUTE DXS(1,9.2)
SET X=$SELECT('$DATA(^DIC(7,+$PIECE(DIP(101),U,4),0)):"",1:$PIECE(^(0),U,1))
SET D0=I(0,0)
KILL DIP,Y
WRITE X
+10 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
XECUTE DXS(2,9.2)
SET DIP(101)=$SELECT($DATA(^DIC(6,D0,9999999)):^(9999999),1:"")
SET X=$PIECE($PIECE(DIP(102),$CHAR(59)_$PIECE(DIP(101),U,1)_":",2),$CHAR(59),1)
SET D0=I(0,0)
KILL DIP,Y
WRITE X
+11 DO T
IF 'DN
QUIT
DO N
DO N
WRITE ?0
WRITE "INITIAL APPLICATION:"
+12 DO T
IF 'DN
QUIT
DO N
IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "HEALTH STATUS STATEMENT ON FILE:"
+13 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(3,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,1)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+14 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "INTERNSHIP CERTIFICATE ON FILE: "
+15 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(4,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,5)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+16 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "RESIDENCY CERTIFICATE ON FILE: "
+17 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(5,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,4)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+18 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "PROFESSIONAL DEGREE ON FILE:"
+19 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(6,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,6)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+20 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "PROFESSIONAL DEGREE VERIFIED:"
+21 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(7,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,14)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+22 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "BYLAWS AGREEMENT SIGNED:"
+23 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(8,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,9)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+24 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "INFORMATION RELEASE SIGNED:"
+25 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(9,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,10)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+26 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "CURRICULUM VITAE ON FILE:"
+27 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(10,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,11)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+28 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "DEA REGISTRATION NUMBER:"
+29 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(11,9)
KILL DIP,Y
WRITE X
+30 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "3 LETTERS OF REFERENCE ON FILE:"
+31 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(12,9.3)
SET X=$PIECE($PIECE(DIP(6),$CHAR(59)_$PIECE(DIP(1),U,13)_":",2),$CHAR(59),1)
SET X=$SELECT(DIP(3):DIP(4),DIP(5):X)
KILL DIP,Y
WRITE X
+32 IF $X>4
DO N
IF 'DN
QUIT
WRITE ?4
WRITE ""
+33 IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
WRITE ""
+34 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "RECURRING ITEMS:"
+35 DO T
IF 'DN
QUIT
DO N
IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "BOARD CERTIFICATION:"
+36 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "BOARD CERTIFIED VERIFIED"
+37 IF $X>3
DO N
IF 'DN
QUIT
WRITE ?3
WRITE ""
+38 SET I(1)=1
SET J(1)=9002155.013
FOR D1=0:0