XUCT01 ; GENERATED FROM 'XUSERINQ' PRINT TEMPLATE (#1086) ; 04/18/11 ; (FILE 200, 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)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
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 S DISTP=$G(DISTP),DILCT=$G(DILCT)
I $D(DXS)<9 M DXS=^DIPT(1086,"DXS")
S I(0)="^VA(200,",J(0)=200
D N:$X>0 Q:'DN W ?0 X DXS(1,9.2) S %=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "Service/Section: "
S X=$G(^VA(200,D0,5)) W ?19 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^DIC(49,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
X DXS(2,9.2) S X1=DIP(3) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?51 W:$L($P(^VA(200,D0,0),U,11)) !,$C(7),?5,"Terminated: ",DIPA("TD") K DIP K:DN Y
X DXS(3,9.2) S X1=DIP(3) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?62 W:DIPA("DIS")["Y" !,?8,"Disuser: ",DIPA("DIS") K DIP K:DN Y
D T Q:'DN W ?2 D INQ^XUS9 S X="" K DIP K:DN Y
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 S X="ATTRIBUTES",%=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Creator"
W ?11 X DXS(4,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 S X="Date entered" K DIP K:DN Y W X
W ?53 X DXS(5,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Mult Sign-on"
W ?16 X DXS(6,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Fileman codes"
W ?57 X DXS(7,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Time-out"
W ?12 X DXS(8,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Type-ahead"
W ?54 X DXS(9,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Title"
W ?9 X DXS(10,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Office Phone"
W ?56 X DXS(11,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Auto-Menu"
W ?13 X DXS(12,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Voice Pager"
W ?55 X DXS(13,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Last Sign-on"
W ?16 X DXS(14,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Digital Pager"
W ?57 X DXS(15,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Has a E-SIG"
S DIPA("ESIG")=$S($L($P($G(^VA(200,D0,20)),U,4)):"Yes",1:"No") K DIP K:DN Y
W ?15 X DXS(16,9.2) S X1=DIP(1) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Write Med's"
W ?55 X DXS(17,9.2) S X1=DIP(3) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W " "
D N:$X>2 Q:'DN W ?2 W "NPI"
W ?7 X DXS(18,9.2) S X1=DIP(2) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>42 Q:'DN W ?42 W "Taxonomy"
S DIPA("TAX")=$P($$TAXINQ^XUSTAX(D0),"^") K DIP K:DN Y
W ?52 X DXS(19,9.2) S X1=DIP(1) S %=$X,%1=$S(X>%:X-%,1:0),%="",$P(%,".",%1)="." W %,X1 K %,%1 S (X,X1)="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Person Class: "
W ?18 D SHPC^XUSER1(D0) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W " "
X DXS(20,9.2) S X1=DIP(2) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?3 W:$G(DIPA("POS"))'="" !,"Clinical Trainee Data" K DIP K:DN Y
W ?14 W:$G(DIPA("POS"))'="" !,"---------------------" K DIP K:DN Y
X DXS(21,9.2) S X1=DIP(2) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?25 W:$G(DIPA("POS"))'="" !,?2,"Current Degree Level: ",DIPA("F12.1") K DIP K:DN Y
W ?36 X DXS(22,9.2) S X1=DIP(2) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?47 W:$G(DIPA("POS"))'="" !,?2,"Program of Study: ",DIPA("F12.2") K DIP K:DN Y
W ?58 X DXS(23,9.3) S X1=DIP(2) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?69 W:$G(DIPA("POS"))'="" !,?2,"Last Training Year: ",DIPA("F12.3") K DIP K:DN Y
D T Q:'DN W ?2 X DXS(24,9.2) S X1=DIP(2) S:X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)") DIPA($E(X,1,30))=X1 S X="" K DIP K:DN Y W X
W ?13 W:$G(DIPA("POS"))'="" !,?2,"VHA Training Facility: ",DIPA("F12.4") K DIP K:DN Y
W ?24 W:$G(DIPA("POS"))'="" !," " K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 S DIP(1)=$S($D(^VA(200,D0,201)):^(201),1:"") S X="Primary Menu: "_$P($G(^DIC(19,+$P(DIP(1),U,1),0)),U) K DIP K:DN Y W X
D N:$X>39 Q:'DN W ?39 X DXS(25,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 S X="Secondary Menu(s)",%=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
S I(1)=203,J(1)=200.03 F D1=0:0 Q:$O(^VA(200,D0,203,D1))'>0 X:$D(DSC(200.03)) DSC(200.03) S D1=$O(^(D1)) Q:D1'>0 D:$X>11 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^VA(200,D0,203,D1,0)) D N:$X>1 Q:'DN W ?1,$E($P(X,U,2),1,4)
D N:$X>7 Q:'DN W ?7 S DIP(1)=$S($D(^VA(200,D0,203,D1,0)):^(0),1:"") S X="["_$P($G(^DIC(19,+$P(DIP(1),U,1),0)),U)_"]" K DIP K:DN Y W X
D N:$X>41 Q:'DN W ?41 X DXS(26,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) S D1=I(1,0) K DIP K:DN Y W X
Q
A1R ;
D T Q:'DN D N W ?0 S X="Keys Held",%=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
W ?11 D GKEYS^XUSER1(D0,.DIP),SHLIST^XUSER1(.DIP,3,4) K DIP K:DN Y
D T Q:'DN D N W ?0 S X="Patient Selection",%=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
D N:$X>2 Q:'DN W ?2 W "Restrict?:"
S X=$G(^VA(200,D0,101)) D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(29,Y)):DXS(29,Y),1:Y)
D N:$X>1 Q:'DN W ?1 W "OE/RR List:"
D N:$X>13 Q:'DN W ?13 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^OR(100.21,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D T Q:'DN D N W ?0 S X="CPRS Access Tabs",%=$L(X),%1=$X,$P(%2,"-",%)="-" W X,!,?%1,%2 K %1,%2 S X="" K DIP K:DN Y W X
W ?11 X DXS(27,9) K DIP K:DN Y
S I(1)="""ORD""",J(1)=200.010113 F D1=0:0 Q:$O(^VA(200,D0,"ORD",D1))'>0 X:$D(DSC(200.010113)) DSC(200.010113) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D B1
G B1R^XUCT011
B1 ;
S X=$G(^VA(200,D0,"ORD",D1,0)) D N:$X>2 Q:'DN W ?2 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ORD(101.13,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,3)
G ^XUCT011
XUCT01 ; GENERATED FROM 'XUSERINQ' PRINT TEMPLATE (#1086) ; 04/18/11 ; (FILE 200, 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 SET DISTP=DISTP+1
SET DILCT=DILCT+1
IF '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 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
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 IF $DATA(DXS)<9
MERGE DXS=^DIPT(1086,"DXS")
+3 SET I(0)="^VA(200,"
SET J(0)=200
+4 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
XECUTE DXS(1,9.2)
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+5 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "Service/Section: "
+6 SET X=$GET(^VA(200,D0,5))
WRITE ?19
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(49,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+7 XECUTE DXS(2,9.2)
SET X1=DIP(3)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+8 WRITE ?51
IF $LENGTH($PIECE(^VA(200,D0,0),U,11))
WRITE !,$CHAR(7),?5,"Terminated: ",DIPA("TD")
KILL DIP
IF DN
KILL Y
+9 XECUTE DXS(3,9.2)
SET X1=DIP(3)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+10 WRITE ?62
IF DIPA("DIS")["Y"
WRITE !,?8,"Disuser: ",DIPA("DIS")
KILL DIP
IF DN
KILL Y
+11 DO T
IF 'DN
QUIT
WRITE ?2
DO INQ^XUS9
SET X=""
KILL DIP
IF DN
KILL Y
+12 DO T
IF 'DN
QUIT
DO N
IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
SET X="ATTRIBUTES"
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+13 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Creator"
+14 WRITE ?11
XECUTE DXS(4,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+15 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
SET X="Date entered"
KILL DIP
IF DN
KILL Y
WRITE X
+16 WRITE ?53
XECUTE DXS(5,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+17 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Mult Sign-on"
+18 WRITE ?16
XECUTE DXS(6,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+19 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Fileman codes"
+20 WRITE ?57
XECUTE DXS(7,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+21 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Time-out"
+22 WRITE ?12
XECUTE DXS(8,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+23 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Type-ahead"
+24 WRITE ?54
XECUTE DXS(9,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+25 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Title"
+26 WRITE ?9
XECUTE DXS(10,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+27 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Office Phone"
+28 WRITE ?56
XECUTE DXS(11,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+29 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Auto-Menu"
+30 WRITE ?13
XECUTE DXS(12,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+31 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Voice Pager"
+32 WRITE ?55
XECUTE DXS(13,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+33 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Last Sign-on"
+34 WRITE ?16
XECUTE DXS(14,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+35 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Digital Pager"
+36 WRITE ?57
XECUTE DXS(15,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+37 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Has a E-SIG"
+38 SET DIPA("ESIG")=$SELECT($LENGTH($PIECE($GET(^VA(200,D0,20)),U,4)):"Yes",1:"No")
KILL DIP
IF DN
KILL Y
+39 WRITE ?15
XECUTE DXS(16,9.2)
SET X1=DIP(1)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+40 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Write Med's"
+41 WRITE ?55
XECUTE DXS(17,9.2)
SET X1=DIP(3)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+42 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " "
+43 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "NPI"
+44 WRITE ?7
XECUTE DXS(18,9.2)
SET X1=DIP(2)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+45 IF $X>42
DO N
IF 'DN
QUIT
WRITE ?42
WRITE "Taxonomy"
+46 SET DIPA("TAX")=$PIECE($$TAXINQ^XUSTAX(D0),"^")
KILL DIP
IF DN
KILL Y
+47 WRITE ?52
XECUTE DXS(19,9.2)
SET X1=DIP(1)
SET %=$X
SET %1=$SELECT(X>%:X-%,1:0)
SET %=""
SET $PIECE(%,".",%1)="."
WRITE %,X1
KILL %,%1
SET (X,X1)=""
KILL DIP
IF DN
KILL Y
WRITE X
+48 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Person Class: "
+49 WRITE ?18
DO SHPC^XUSER1(D0)
KILL DIP
IF DN
KILL Y
+50 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE " "
+51 XECUTE DXS(20,9.2)
SET X1=DIP(2)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+52 WRITE ?3
IF $GET(DIPA("POS"))'=""
WRITE !,"Clinical Trainee Data"
KILL DIP
IF DN
KILL Y
+53 WRITE ?14
IF $GET(DIPA("POS"))'=""
WRITE !,"---------------------"
KILL DIP
IF DN
KILL Y
+54 XECUTE DXS(21,9.2)
SET X1=DIP(2)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+55 WRITE ?25
IF $GET(DIPA("POS"))'=""
WRITE !,?2,"Current Degree Level: ",DIPA("F12.1")
KILL DIP
IF DN
KILL Y
+56 WRITE ?36
XECUTE DXS(22,9.2)
SET X1=DIP(2)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+57 WRITE ?47
IF $GET(DIPA("POS"))'=""
WRITE !,?2,"Program of Study: ",DIPA("F12.2")
KILL DIP
IF DN
KILL Y
+58 WRITE ?58
XECUTE DXS(23,9.3)
SET X1=DIP(2)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+59 WRITE ?69
IF $GET(DIPA("POS"))'=""
WRITE !,?2,"Last Training Year: ",DIPA("F12.3")
KILL DIP
IF DN
KILL Y
+60 DO T
IF 'DN
QUIT
WRITE ?2
XECUTE DXS(24,9.2)
SET X1=DIP(2)
IF X]""&(X?.ANP)&(X1'[U)&(X1'["$C(94)")
SET DIPA($EXTRACT(X,1,30))=X1
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+61 WRITE ?13
IF $GET(DIPA("POS"))'=""
WRITE !,?2,"VHA Training Facility: ",DIPA("F12.4")
KILL DIP
IF DN
KILL Y
+62 WRITE ?24
IF $GET(DIPA("POS"))'=""
WRITE !," "
KILL DIP
IF DN
KILL Y
+63 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
SET DIP(1)=$SELECT($DATA(^VA(200,D0,201)):^(201),1:"")
SET X="Primary Menu: "_$PIECE($GET(^DIC(19,+$PIECE(DIP(1),U,1),0)),U)
KILL DIP
IF DN
KILL Y
WRITE X
+64 IF $X>39
DO N
IF 'DN
QUIT
WRITE ?39
XECUTE DXS(25,9.2)
SET X=$PIECE(DIP(101),U,2)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+65 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
SET X="Secondary Menu(s)"
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+66 SET I(1)=203
SET J(1)=200.03
FOR D1=0:0
IF $ORDER(^VA(200,D0,203,D1))'>0
QUIT
IF $DATA(DSC(200.03))
XECUTE DSC(200.03)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>11
DO T
IF 'DN
QUIT
DO A1
+67 GOTO A1R
A1 ;
+1 SET X=$GET(^VA(200,D0,203,D1,0))
IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1,$EXTRACT($PIECE(X,U,2),1,4)
+2 IF $X>7
DO N
IF 'DN
QUIT
WRITE ?7
SET DIP(1)=$SELECT($DATA(^VA(200,D0,203,D1,0)):^(0),1:"")
SET X="["_$PIECE($GET(^DIC(19,+$PIECE(DIP(1),U,1),0)),U)_"]"
KILL DIP
IF DN
KILL Y
WRITE X
+3 IF $X>41
DO N
IF 'DN
QUIT
WRITE ?41
XECUTE DXS(26,9.2)
SET X=$PIECE(DIP(101),U,2)
SET D0=I(0,0)
SET D1=I(1,0)
KILL DIP
IF DN
KILL Y
WRITE X
+4 QUIT
A1R ;
+1 DO T
IF 'DN
QUIT
DO N
WRITE ?0
SET X="Keys Held"
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+2 WRITE ?11
DO GKEYS^XUSER1(D0,.DIP)
DO SHLIST^XUSER1(.DIP,3,4)
KILL DIP
IF DN
KILL Y
+3 DO T
IF 'DN
QUIT
DO N
WRITE ?0
SET X="Patient Selection"
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+4 IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
WRITE "Restrict?:"
+5 SET X=$GET(^VA(200,D0,101))
IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $SELECT($DATA(DXS(29,Y)):DXS(29,Y),1:Y)
+6 IF $X>1
DO N
IF 'DN
QUIT
WRITE ?1
WRITE "OE/RR List:"
+7 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^OR(100.21,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+8 DO T
IF 'DN
QUIT
DO N
WRITE ?0
SET X="CPRS Access Tabs"
SET %=$LENGTH(X)
SET %1=$X
SET $PIECE(%2,"-",%)="-"
WRITE X,!,?%1,%2
KILL %1,%2
SET X=""
KILL DIP
IF DN
KILL Y
WRITE X
+9 WRITE ?11
XECUTE DXS(27,9)
KILL DIP
IF DN
KILL Y
+10 SET I(1)="""ORD"""
SET J(1)=200.010113
FOR D1=0:0
IF $ORDER(^VA(200,D0,"ORD",D1))'>0
QUIT
IF $DATA(DSC(200.010113))
XECUTE DSC(200.010113)
SET D1=$ORDER(^(D1))
IF D1'>0
QUIT
IF $X>22
DO T
IF 'DN
QUIT
DO B1
+11 GOTO B1R^XUCT011
B1 ;
+1 SET X=$GET(^VA(200,D0,"ORD",D1,0))
IF $X>2
DO N
IF 'DN
QUIT
WRITE ?2
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ORD(101.13,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,3)
+2 GOTO ^XUCT011