source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCSPC1.m@ 1042

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

initial load of WorldVistAEHR

File size: 2.4 KB
Line 
1ONCSPC1 ;Hines OIFO/GWB - PCE Study of Soft Tissue Sarcoma ;05/30/00
2 ;;2.11;ONCOLOGY;**6,26**;Mar 07, 1995
3 ;Table I
4 K TABLE,HTABLE
5 S TABLE("ACCESSION NUMBER")="AN"
6 S TABLE("SEQUENCE NUMBER")="SN"
7 S TABLE("POSTAL CODE AT DIAGNOSIS")="PCAD"
8 S TABLE("DATE OF BIRTH")="DOB"
9 S TABLE("RACE")="R"
10 S TABLE("SPANISH ORIGIN")="SO"
11 S TABLE("SEX")="S"
12 S TABLE("PRIMARY PAYER AT DIAGNOSIS")="PPAD"
13 S TABLE("FAMILY HISTORY OF SOFT TISSUE SARCOMA")="FHOSTS"
14 S TABLE("PERSONAL HISTORY OF ANY CANCER")="PHOAC"
15 S HTABLE(1)="ACCESSION NUMBER"
16 S HTABLE(2)="SEQUENCE NUMBER"
17 S HTABLE(3)="POSTAL CODE AT DIAGNOSIS"
18 S HTABLE(4)="DATE OF BIRTH"
19 S HTABLE(5)="RACE"
20 S HTABLE(6)="SPANISH ORIGIN"
21 S HTABLE(7)="SEX"
22 S HTABLE(8)="PRIMARY PAYER AT DIAGNOSIS"
23 S HTABLE(9)="FAMILY HISTORY OF SOFT TISSUE SARCOMA"
24 S HTABLE(10)="PERSONAL HISTORY OF ANY CANCER"
25 S CHOICES=10
26 K DIQ S DIC="^ONCO(165.5,",DR=".05;.06",DA=ONCONUM,DIQ="ONC" D EN^DIQ1
27 S D0=ONCOPA D DOB1^ONCOES S Y=X D DATEOT^ONCOPCE S DOB=Y
28 W @IOF D HEAD^ONCSPC0 W !?25,"TABLE I - GENERAL INFORMATION",!
29AN W !,"ACCESSION NUMBER.....................: ",ONC(165.5,ONCONUM,.05)
30SN W !,"SEQUENCE NUMBER......................: ",ONC(165.5,ONCONUM,.06)
31PCAD S DIE="^ONCO(165.5,",DA=ONCONUM
32 S DR="9POSTAL CODE AT DIAGNOSIS............." D ^DIE G:$D(Y) JUMP
33DOB W !,"DATE OF BIRTH........................: ",DOB
34R S DIE="^ONCO(160,",DA=ONCOPA
35 S DR="8RACE................................." D ^DIE G:$D(Y) JUMP
36SO S DIE="^ONCO(160,",DA=ONCOPA
37 S DR="9SPANISH ORIGIN......................." D ^DIE G:$D(Y) JUMP
38S S DIE="^ONCO(160,",DA=ONCOPA
39 S DR="10SEX.................................." D ^DIE G:$D(Y) JUMP
40PPAD S DIE="^ONCO(165.5,",DA=ONCONUM
41 S DR="18PRIMARY PAYER AT DIAGNOSIS..........." D ^DIE G:$D(Y) JUMP
42FHOSTS S DIE="^ONCO(165.5,",DA=ONCONUM
43 S DR="500FAMILY HISTORY OF SOFT TISSUE SARCOMA" D ^DIE G:$D(Y) JUMP
44PHOAC S DIE="^ONCO(165.5,",DA=ONCONUM
45 S DR="501PERSONAL HISTORY OF ANY CANCER......." D ^DIE G:$D(Y) JUMP
46 W ! K DIR S DIR(0)="E" D ^DIR
47 G EXIT
48JUMP ;Jump to prompts
49 S XX="" R !!,"GO TO: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
50 I X["?" D G JUMP
51 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
52 I '$D(TABLE(X)) S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
53 .W !,"CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
54 S X=TABLE(X)
55 G @X
56EXIT K HTABLE,TABLE,CHOICES
57 K DOB
58 K DA,DR,DIE,DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,XX,Y
59 Q
Note: See TracBrowser for help on using the repository browser.