source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCPPC1.m@ 1800

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

initial load of WorldVistAEHR

File size: 2.0 KB
RevLine 
[613]1ONCPPC1 ;Hines OIFO/GWB - PCE Studies of Prostate Cancer ;05/30/00
2 ;;2.11;ONCOLOGY;**6,26**;Mar 07, 1995
3 ;Table I
4 S PRINODE0=^ONCO(165.5,ONCONUM,0)
5 K TABLE,HTABLE
6 S TABLE("ACCESSION/SEQUENCE NUMBER")="ACC"
7 S TABLE("CLASS OF CASE")="COC"
8 S TABLE("ZIP CODE")="ZIP"
9 S TABLE("BIRTHDATE")="DOB"
10 S TABLE("RACE")="RACE"
11 S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
12 S TABLE("DATE OF ADMISSION")="DOA"
13 S TABLE("DATE OF DISCHARGE")="DOD"
14 S HTABLE(1)="ACCESSION/SEQUENCE NUMBER"
15 S HTABLE(2)="CLASS OF CASE"
16 S HTABLE(3)="ZIP CODE"
17 S HTABLE(4)="BIRTHDATE"
18 S HTABLE(5)="RACE"
19 S HTABLE(6)="PRIMARY PAYER AT DIAGNOSIS"
20 S HTABLE(7)="DATE OF ADMISSION"
21 S HTABLE(8)="DATE OF DISCHARGE"
22 S CHOICES=8
23 K DIQ S DIC="^ONCO(165.5,",DR=".04;.05;.06",DA=ONCONUM,DIQ="ONC"
24 D EN^DIQ1
25 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
26 S ACCSEQ=ONC(165.5,ONCONUM,.05)_"/"_ONC(165.5,ONCONUM,.06)
27 W @IOF D HEAD^ONCPPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
28ACC W !,"ACCESSION/SEQUENCE NUMBER.: ",ACCSEQ
29COC W !,"CLASS OF CASE.............: ",ONC(165.5,ONCONUM,.04)
30ZIP S DIE="^ONCO(165.5,",DA=ONCONUM
31 S DR="9ZIP CODE.................." D ^DIE G:$D(Y) JUMP
32DOB W !,"BIRTHDATE.................: ",DOB
33RACE S DIE="^ONCO(160,",DA=ONCOPA
34 S DR="8RACE......................" D ^DIE G:$D(Y) JUMP
35PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
36 S DR="18PRIMARY PAYER AT DIAGNOSIS" D ^DIE G:$D(Y) JUMP
37DOA S DIE="^ONCO(165.5,",DA=ONCONUM
38 S DR="1DATE OF ADMISSION........." D ^DIE G:$D(Y) JUMP
39DOD S DIE="^ONCO(165.5,",DA=ONCONUM
40 S DR="1.1DATE OF DISCHARGE........." D ^DIE G:$D(Y) JUMP
41 W ! K DIR S DIR(0)="E" D ^DIR
42 G EXIT
43JUMP ;Jump to prompts
44 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
45 I X["?" D G JUMP
46 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
47 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
48 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
49 S X=TABLE(X)
50 G @X
51EXIT K CHOICES,HTABLE,PRINODE0,TABLE
52 K ACCSEQ,C,COCEX,COCIN,DOB,CHOICES
53 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
54 Q
Note: See TracBrowser for help on using the repository browser.