XUCT01 ; GENERATED FROM 'XUSERINQ' PRINT TEMPLATE (#27) ; 05/18/22 ; (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
X ^DD("DD")
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(27,"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>2 Q:'DN W ?2 W "Remote By"
W ?13 X DXS(5,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(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>2 Q:'DN W ?2 W "Mult Sign-on"
W ?16 X DXS(7,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(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>2 Q:'DN W ?2 W "Time-out"
W ?12 X DXS(9,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(10,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(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>42 Q:'DN W ?42 W "Office Phone"
W ?56 X DXS(12,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(13,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(14,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(15,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(16,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(17,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(18,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(19,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(20,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(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 ?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(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 ?25 W:$G(DIPA("POS"))'="" !,?2,"Current Degree Level: ",DIPA("F12.1") K DIP K:DN Y
W ?36 X DXS(23,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 N DIERR 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 ?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(25,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(26,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 $G(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(27,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]"" $E($$SET^DIQ(200,101.01,Y),1,3)
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(28,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 $G(DSC(200.010113)) S D1=$O(^(D1)) Q:D1'>0 D:$X>22 T Q:'DN D B1
G B1R
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)
D N:$X>8 Q:'DN W ?8 X DXS(29,9.2) S DIP(101)=$S($D(^ORD(101.13,D0,0)):^(0),1:"") S X=$P(DIP(101),U,2) S D0=I(0,0) S D1=I(1,0) K DIP K:DN Y W X
S X=$G(^VA(200,D0,"ORD",D1,0)) D N:$X>45 Q:'DN W ?45 S Y=$P(X,U,2) D DT
D N:$X>58 Q:'DN W ?58 S Y=$P(X,U,3) D DT
Q
B1R ;
D T Q:'DN D N W ?0 S X="CPRS Parameter info (User Specific)",%=$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 GPARAM^XUSER1(D0,"ORWOR WRITE ORDERS LIST",.DIP),SHLIST^XUSER1(.DIP,3,3) K DIP K:DN Y
W ?22 D GPARAM^XUSER1(D0,"ORWDX WRITE ORDERS LIST",.DIP),SHLIST^XUSER1(.DIP,3,3) K DIP K:DN Y
W ?33 D GPARAM^XUSER1(D0,"OR ADD ORDERS MENU",.DIP),SHLIST^XUSER1(.DIP,3,3) K DIP K:DN Y
D T Q:'DN D N W ?0 W ""
W ?2 D CLEAN^DILF K DIP K:DN Y
W ?13 S Y=IOSL N IOSL S IOSL=$S(IOST["P-":999,1:Y),Y=D0 D EN^XMA7 K DIP K:DN Y
D T Q:'DN D N W ?0 W ""
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HXUCT01 8362 printed Dec 13, 2024@02:09:10 Page 2
XUCT01 ; GENERATED FROM 'XUSERINQ' PRINT TEMPLATE (#27) ; 05/18/22 ; (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 XECUTE ^DD("DD")
+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(27,"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>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Remote By"
+16 WRITE ?13
XECUTE DXS(5,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
+17 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
SET X="Date entered"
KILL DIP
if DN
KILL Y
WRITE X
+18 WRITE ?53
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>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Mult Sign-on"
+20 WRITE ?16
XECUTE DXS(7,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
+21 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Fileman codes"
+22 WRITE ?57
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>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Time-out"
+24 WRITE ?12
XECUTE DXS(9,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
+25 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Type-ahead"
+26 WRITE ?54
XECUTE DXS(10,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
+27 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Title"
+28 WRITE ?9
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>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Office Phone"
+30 WRITE ?56
XECUTE DXS(12,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
+31 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Auto-Menu"
+32 WRITE ?13
XECUTE DXS(13,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
+33 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Voice Pager"
+34 WRITE ?55
XECUTE DXS(14,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
+35 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Last Sign-on"
+36 WRITE ?16
XECUTE DXS(15,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
+37 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Digital Pager"
+38 WRITE ?57
XECUTE DXS(16,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
+39 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Has a E-SIG"
+40 SET DIPA("ESIG")=$SELECT($LENGTH($PIECE($GET(^VA(200,D0,20)),U,4)):"Yes",1:"No")
KILL DIP
if DN
KILL Y
+41 WRITE ?15
XECUTE DXS(17,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
+42 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Write Med's"
+43 WRITE ?55
XECUTE DXS(18,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
+44 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE " "
+45 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "NPI"
+46 WRITE ?7
XECUTE DXS(19,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
+47 if $X>42
DO N
if 'DN
QUIT
WRITE ?42
WRITE "Taxonomy"
+48 SET DIPA("TAX")=$PIECE($$TAXINQ^XUSTAX(D0),"^")
KILL DIP
if DN
KILL Y
+49 WRITE ?52
XECUTE DXS(20,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
+50 if $X>2
DO N
if 'DN
QUIT
WRITE ?2
WRITE "Person Class: "
+51 WRITE ?18
DO SHPC^XUSER1(D0)
KILL DIP
if DN
KILL Y
+52 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE " "
+53 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
+54 WRITE ?3
if $GET(DIPA("POS"))'=""
WRITE !,"Clinical Trainee Data"
KILL DIP
if DN
KILL Y
+55 WRITE ?14
if $GET(DIPA("POS"))'=""
WRITE !,"---------------------"
KILL DIP
if DN
KILL Y
+56 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 ?25
if $GET(DIPA("POS"))'=""
WRITE !,?2,"Current Degree Level: ",DIPA("F12.1")
KILL DIP
if DN
KILL Y
+58 WRITE ?36
XECUTE DXS(23,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
+59 WRITE ?47
if $GET(DIPA("POS"))'=""
WRITE !,?2,"Program of Study: ",DIPA("F12.2")
KILL DIP
if DN
KILL Y
+60 WRITE ?58
NEW DIERR
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 ?69
if $GET(DIPA("POS"))'=""
WRITE !,?2,"Last Training Year: ",DIPA("F12.3")
KILL DIP
if DN
KILL Y
+62 DO T
if 'DN
QUIT
WRITE ?2
XECUTE DXS(25,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
+63 WRITE ?13
if $GET(DIPA("POS"))'=""
WRITE !,?2,"VHA Training Facility: ",DIPA("F12.4")
KILL DIP
if DN
KILL Y
+64 WRITE ?24
if $GET(DIPA("POS"))'=""
WRITE !," "
KILL DIP
if DN
KILL Y
+65 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
+66 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
XECUTE DXS(26,9.2)
SET X=$PIECE(DIP(101),U,2)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+67 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
+68 SET I(1)=203
SET J(1)=200.03
FOR D1=0:0
if $ORDER(^VA(200,D0,203,D1))'>0
QUIT
XECUTE $GET(DSC(200.03))
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>11
DO T
if 'DN
QUIT
DO A1
+69 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(27,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 $EXTRACT($$SET^DIQ(200,101.01,Y),1,3)
+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(28,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
XECUTE $GET(DSC(200.010113))
SET D1=$ORDER(^(D1))
if D1'>0
QUIT
if $X>22
DO T
if 'DN
QUIT
DO B1
+11 GOTO B1R
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 if $X>8
DO N
if 'DN
QUIT
WRITE ?8
XECUTE DXS(29,9.2)
SET DIP(101)=$SELECT($DATA(^ORD(101.13,D0,0)):^(0),1:"")
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
+3 SET X=$GET(^VA(200,D0,"ORD",D1,0))
if $X>45
DO N
if 'DN
QUIT
WRITE ?45
SET Y=$PIECE(X,U,2)
DO DT
+4 if $X>58
DO N
if 'DN
QUIT
WRITE ?58
SET Y=$PIECE(X,U,3)
DO DT
+5 QUIT
B1R ;
+1 DO T
if 'DN
QUIT
DO N
WRITE ?0
SET X="CPRS Parameter info (User Specific)"
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 GPARAM^XUSER1(D0,"ORWOR WRITE ORDERS LIST",.DIP)
DO SHLIST^XUSER1(.DIP,3,3)
KILL DIP
if DN
KILL Y
+3 WRITE ?22
DO GPARAM^XUSER1(D0,"ORWDX WRITE ORDERS LIST",.DIP)
DO SHLIST^XUSER1(.DIP,3,3)
KILL DIP
if DN
KILL Y
+4 WRITE ?33
DO GPARAM^XUSER1(D0,"OR ADD ORDERS MENU",.DIP)
DO SHLIST^XUSER1(.DIP,3,3)
KILL DIP
if DN
KILL Y
+5 DO T
if 'DN
QUIT
DO N
WRITE ?0
WRITE ""
+6 WRITE ?2
DO CLEAN^DILF
KILL DIP
if DN
KILL Y
+7 WRITE ?13
SET Y=IOSL
NEW IOSL
SET IOSL=$SELECT(IOST["P-":999,1:Y)
SET Y=D0
DO EN^XMA7
KILL DIP
if DN
KILL Y
+8 DO T
if 'DN
QUIT
DO N
WRITE ?0
WRITE ""
+9 KILL Y
+10 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!