source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCPPC4.m@ 1722

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

initial load of WorldVistAEHR

File size: 4.0 KB
Line 
1ONCPPC4 ;HIRMFO/GWB - PCE Studies of Prostate Cancer - Table IV;7/22/96
2 ;;2.11;ONCOLOGY;**6**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("SURGERY")="SUR"
5 S TABLE("RADIATION THERAPY")="RAD"
6 S TABLE("HORMONE THERAPY")="HOR"
7 S HTABLE(1)="SURGERY"
8 S HTABLE(2)="RADIATON THERAPY"
9 S HTABLE(3)="HORMONE THERAPY"
10 S CHOICES=3
11 W @IOF D HEAD^ONCPPC0 W !?22,"TABLE IV - FIRST COURSE OF TREATMENT",!
12 K ONC S DIC="^ONCO(165.5,",DR="50;51;54;58.1;58.2;58.3;58;74"
13 S DA=ONCONUM,DIQ="ONC" D EN^DIQ1
14 S DIE="^ONCO(165.5,",DA=ONCONUM
15SUR W !,"SURGERY:",!
16 S NCDS=$E(ONC(165.5,ONCONUM,58.1),1,2),NCDSOT=ONC(165.5,ONCONUM,58.1)
17 S CDS=$E(ONC(165.5,ONCONUM,58.2),1,2),CDSOT=ONC(165.5,ONCONUM,58.2)
18 I (CDS="")!(CDS="00") D
19 .S SURG=NCDSOT,SURGDT=ONC(165.5,ONCONUM,58.3)
20 I ((CDS'="")&(CDS'="00"))!(NCDS="") D
21 .S SURG=CDSOT,SURGDT=ONC(165.5,ONCONUM,50)
22 S (SURG1,SURG2)=""
23 S LOS=$L(SURG) I LOS<56 S SURG1=SURG G TOS
24 S NOP=$L($E(SURG,1,42)," ")
25 S SURG1=$P(SURG," ",1,NOP-1),SURG2=$P(SURG," ",NOP,999)
26TOS W !," TYPE OF SURGERY................: ",SURG1
27 W:SURG2'="" !,?38,SURG2
28 I (SURG1="")!($E(SURG1,1,2)="00") S SURGDT="88/88"
29 W !," DATE OF SURGERY................: ",SURGDT
30 W !," REASON FOR NO SURGERY..........: ",ONC(165.5,ONCONUM,58)
31 W !," SURGICAL APPROACH..............: ",ONC(165.5,ONCONUM,74)
32 S DR="624 RESEARCH PROTOCOL.............." D ^DIE G:$D(Y) JUMP
33RAD W !!,"RADIATION THERAPY:",!
34 S DR="625 RADIATION THERAPY.............." D ^DIE G:$D(Y) JUMP
35 I (X=2)!(X=3)!(X=4) D G HOR
36 .F PIECE=27:1:42 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
37 W !," DATE RADIATION THERAPY BEGAN...: ",ONC(165.5,ONCONUM,51)
38 S DR="626 INTERSTITIAL RADIATION........." D ^DIE G:$D(Y) JUMP
39 I (X=2)!(X=3)!(X=4) D G EXTRAD
40 .F PIECE=28:1:32 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
41 W !!," INTERSTITIAL RADIATION ADMINISTERED:",!
42 S DR="627 IODINE 125..................." D ^DIE G:$D(Y) JUMP
43 S DR="628 GOLD 198....................." D ^DIE G:$D(Y) JUMP
44 S DR="629 PALLADIUM 103................" D ^DIE G:$D(Y) JUMP
45 S DR="630 IRIDIUM 192.................." D ^DIE G:$D(Y) JUMP
46 S DR="631 OTHER INTERSTITIAL, NOS......" D ^DIE G:$D(Y) JUMP
47EXTRAD W ! S DR="632 EXTERNAL RADIATION............." D ^DIE G:$D(Y) JUMP
48 I (X=2)!(X=3)!(X=4) D G HOR
49 .F PIECE=34:1:42 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
50 W !!," EXTERNAL RADIATION ADMINISTERED:",!
51 S DR="633 PROSTATE REGION ONLY........." D ^DIE G:$D(Y) JUMP
52 S DR="634 PROSTATE/PELVIC NODES........" D ^DIE G:$D(Y) JUMP
53 S DR="635 PARA-AORTIC NODES............" D ^DIE G:$D(Y) JUMP
54 S DR="636 DISTANT METASTATIC SITES....." D ^DIE G:$D(Y) JUMP
55 S DR="637 OTHER EXTERNAL SITES, NOS...." D ^DIE G:$D(Y) JUMP
56 W !!," TOTAL RAD DOSE:",!
57 S DR="638 PROSTATE....................." D ^DIE G:$D(Y) JUMP
58 S DR="639 PELVIC NODES................." D ^DIE G:$D(Y) JUMP
59 S DR="640 PARA-AORTIC NODES............" D ^DIE G:$D(Y) JUMP
60 W !
61 S DR="641 RESEARCH PROTOCOL.............." D ^DIE G:$D(Y) JUMP
62HOR W !!,"HORMONE THERAPY:",!
63 S DR="642 HORMONE THERAPY................" D ^DIE G:$D(Y) JUMP
64 I (X=2)!(X=3)!(X=4) D G EXIT
65 .F PIECE=44:1:49 S $P(^ONCO(166.2,ONCONUM,0),U,PIECE)=""
66 W !," DATE HORMONE THERAPY BEGAN.....: ",ONC(165.5,ONCONUM,54)
67 W !!," HORMONES ADMINISTERED:",!
68 S DR="643 ESTROGENS...................." D ^DIE G:$D(Y) JUMP
69 S DR="644 ANTIANDROGENS................" D ^DIE G:$D(Y) JUMP
70 S DR="645 PROGESTATIONAL AGENTS........" D ^DIE G:$D(Y) JUMP
71 S DR="646 LUTEINIZING HORMONE-RELEASING" D ^DIE G:$D(Y) JUMP
72 S DR="647 ORCHIECTOMY.................." D ^DIE G:$D(Y) JUMP
73 S DR="648 OTHER........................" D ^DIE G:$D(Y) JUMP
74 W ! K DIR S DIR(0)="E" D ^DIR
75 G EXIT
76JUMP ;Jump to prompts
77 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
78 I X["?" D G JUMP
79 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
80 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
81 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
82 S X=TABLE(X)
83 G @X
84EXIT K CHOICES,PIECE,HTABLE,TABLE
85 K CDS,CDSOT,LOS,NCDS,NCDSOT,NOP,SURG,SURG1,SURG2,SURGDT
86 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
87 Q
Note: See TracBrowser for help on using the repository browser.