source: FOIAVistA/trunk/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/XUCT01.m@ 1397

Last change on this file since 1397 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 7.1 KB
Line 
1XUCT01 ; GENERATED FROM 'XUSERINQ' PRINT TEMPLATE (#27) ; 12/12/07 ; (FILE 200, MARGIN=80)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 I $D(DXS)<9 M DXS=^DIPT(27,"DXS")
15 S I(0)="^VA(200,",J(0)=200
16 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
17 D N:$X>0 Q:'DN W ?0 W "Service/Section: "
18 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)
19 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
20 W ?51 W:$L($P(^VA(200,D0,0),U,11)) !,$C(7),?5,"Terminated: ",DIPA("TD") K DIP K:DN Y
21 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
22 W ?62 W:DIPA("DIS")["Y" !,?8,"Disuser: ",DIPA("DIS") K DIP K:DN Y
23 D T Q:'DN W ?2 D INQ^XUS9 S X="" K DIP K:DN Y
24 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
25 D N:$X>2 Q:'DN W ?2 W "Creator"
26 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
27 D N:$X>42 Q:'DN W ?42 S X="Date entered" K DIP K:DN Y W X
28 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
29 D N:$X>2 Q:'DN W ?2 W "Mult Sign-on"
30 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
31 D N:$X>42 Q:'DN W ?42 W "Fileman codes"
32 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
33 D N:$X>2 Q:'DN W ?2 W "Time-out"
34 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
35 D N:$X>42 Q:'DN W ?42 W "Type-ahead"
36 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
37 D N:$X>2 Q:'DN W ?2 W "Title"
38 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
39 D N:$X>42 Q:'DN W ?42 W "Office Phone"
40 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
41 D N:$X>2 Q:'DN W ?2 W "Auto-Menu"
42 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
43 D N:$X>42 Q:'DN W ?42 W "Voice Pager"
44 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
45 D N:$X>2 Q:'DN W ?2 W "Last Sign-on"
46 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
47 D N:$X>42 Q:'DN W ?42 W "Digital Pager"
48 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
49 D N:$X>2 Q:'DN W ?2 W "Has a E-SIG"
50 S DIPA("ESIG")=$S($L($P($G(^VA(200,D0,20)),U,4)):"Yes",1:"No") K DIP K:DN Y
51 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
52 D N:$X>42 Q:'DN W ?42 W "Write Med's"
53 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
54 D N:$X>0 Q:'DN W ?0 W " "
55 D N:$X>2 Q:'DN W ?2 W "NPI"
56 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
57 D N:$X>42 Q:'DN W ?42 W "Taxonomy"
58 S DIPA("TAX")=$P($$TAXINQ^XUSTAX(D0),"^") K DIP K:DN Y
59 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
60 D N:$X>2 Q:'DN W ?2 W "Person Class: "
61 W ?18 D SHPC^XUSER1(D0) K DIP K:DN Y
62 D N:$X>0 Q:'DN W ?0 W " "
63 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
64 W ?3 W:$G(DIPA("POS"))'="" !,"Clinical Trainee Data" K DIP K:DN Y
65 W ?14 W:$G(DIPA("POS"))'="" !,"---------------------" K DIP K:DN Y
66 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
67 W ?25 W:$G(DIPA("POS"))'="" !,?2,"Current Degree Level: ",DIPA("F12.1") K DIP K:DN Y
68 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
69 W ?47 W:$G(DIPA("POS"))'="" !,?2,"Program of Study: ",DIPA("F12.2") K DIP K:DN Y
70 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
71 W ?69 W:$G(DIPA("POS"))'="" !,?2,"Last Training Year: ",DIPA("F12.3") K DIP K:DN Y
72 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
73 W ?13 W:$G(DIPA("POS"))'="" !,?2,"VHA Training Facility: ",DIPA("F12.4") K DIP K:DN Y
74 W ?24 W:$G(DIPA("POS"))'="" !," " K DIP K:DN Y
75 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
76 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
77 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
78 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
79 G A1R
80A1 ;
81 S X=$G(^VA(200,D0,203,D1,0)) D N:$X>1 Q:'DN W ?1,$E($P(X,U,2),1,4)
82 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
83 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
84 Q
85A1R ;
86 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
87 W ?11 D GKEYS^XUSER1(D0,.DIP),SHLIST^XUSER1(.DIP,3,4) K DIP K:DN Y
88 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
89 D N:$X>2 Q:'DN W ?2 W "Restrict?:"
90 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)
91 D N:$X>1 Q:'DN W ?1 W "OE/RR List:"
92 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)
93 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
94 W ?11 X DXS(27,9) K DIP K:DN Y
95 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
96 G B1R^XUCT011
97B1 ;
98 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)
99 G ^XUCT011
Note: See TracBrowser for help on using the repository browser.