source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCOX51.m@ 1716

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

initial load of WorldVistAEHR

File size: 2.8 KB
Line 
1ONCOX51 ; GENERATED FROM 'ONCOX5' PRINT TEMPLATE (#846) ; 03/18/98 ; (continued)
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 W " Primary Sequence No: "
15 S X=$G(^ONCO(165.5,D0,0)) W ?0,$E($P(X,U,6),1,2)
16 D N:$X>4 Q:'DN W ?4 W "Text Primary Site: "
17 X DXS(16,9) K DIP K:DN Y W X
18 D N:$X>6 Q:'DN W ?6 W " "
19 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Phys.Exam: "
20 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=10,J(1)=165.5104 F D1=0:0 Q:$O(^ONCO(165.5,D0,10,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D A1
21 G A1R
22A1 ;
23 S X=$G(^ONCO(165.5,D0,10,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
24 Q
25A1R ;
26 D A^DIWW
27 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Xray/Scan: "
28 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=11,J(1)=165.5105 F D1=0:0 Q:$O(^ONCO(165.5,D0,11,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D B1
29 G B1R
30B1 ;
31 S X=$G(^ONCO(165.5,D0,11,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
32 Q
33B1R ;
34 D A^DIWW
35 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Operation: "
36 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=9,J(1)=165.5103 F D1=0:0 Q:$O(^ONCO(165.5,D0,9,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D C1
37 G C1R
38C1 ;
39 S X=$G(^ONCO(165.5,D0,9,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
40 Q
41C1R ;
42 D A^DIWW
43 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Lab Tests: "
44 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=22,J(1)=165.5116 F D1=0:0 Q:$O(^ONCO(165.5,D0,22,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D D1
45 G D1R
46D1 ;
47 S X=$G(^ONCO(165.5,D0,22,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
48 Q
49D1R ;
50 D A^DIWW
51 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Endoscopy: "
52 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=12,J(1)=165.5106 F D1=0:0 Q:$O(^ONCO(165.5,D0,12,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D E1
53 G E1R
54E1 ;
55 S X=$G(^ONCO(165.5,D0,12,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
56 Q
57E1R ;
58 D A^DIWW
59 D N:$X>4 Q:'DN W ?4 W "Text Dx Proc-Path/Cyto: "
60 S:'$D(DIWF) DIWF="" S:DIWF'["N" DIWF=DIWF_"N" S X="" S I(1)=13,J(1)=165.5107 F D1=0:0 Q:$O(^ONCO(165.5,D0,13,D1))'>0 S D1=$O(^(D1)) D:$X>30 T Q:'DN D F1
61 G F1R
62F1 ;
63 S X=$G(^ONCO(165.5,D0,13,D1,0)) S DIWL=1,DIWR=100 D ^DIWP
64 Q
65F1R ;
66 D A^DIWW
67 D T Q:'DN D N W ?0 X DXS(17,9) K DIP K:DN Y W X
68 D T Q:'DN D N W ?0 S X="" D SDP^ONCOCOM W $E(X,1,80) K Y(165.5,48)
69 K Y K DIWF
70 Q
71HEAD ;
72 W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.