source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCMPC2.m@ 1154

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

initial load of WorldVistAEHR

File size: 2.5 KB
Line 
1ONCMPC2 ;HINES CIOFO/GWB - 1999 Melanoma Study - Table II ;1/12/99
2 ;;2.11;ONCOLOGY;**22**;Mar 07, 1995
3 K TABLE,HTABLE
4 S TABLE("14. CLASS OF CASE")="COC"
5 S TABLE("15. DATE OF INITIAL DIAGNOSIS")="DOID"
6 S TABLE("16. PRIMARY SITE (ICD-O-2)")="PS"
7 S TABLE("17. LOCATION OF DISEASE PRESENTATION")="LODP"
8 S TABLE("18. LATERALITY")="L"
9 S TABLE("19. HISTOLOGY (ICD-O-2)")="HIST"
10 S TABLE("20. BEHAVIOR CODE(ICD-O-2)")="BC"
11 S TABLE("21. GRADE")="GRADE"
12 S TABLE("22. DIAGNOSTIC CONFIRMATION")="DC"
13 S HTABLE(1)="14. CLASS OF CASE"
14 S HTABLE(2)="15. DATE OF INITIAL DIAGNOSIS"
15 S HTABLE(3)="16. PRIMARY SITE (ICD-O-2)"
16 S HTABLE(4)="17. LOCATION OF DISEASE PRESENTATION"
17 S HTABLE(5)="18. LATERALITY"
18 S HTABLE(6)="19. HISTOLOGY (ICD-O-2)"
19 S HTABLE(7)="20. BEHAVIOR CODE (ICD-O-2)"
20 S HTABLE(8)="21. GRADE"
21 S HTABLE(9)="22. DIAGNOSTIC CONFIRMATION"
22 S CHOICES=9
23 K DIQ
24 S DIC="^ONCO(165.5,",DR=".04;20;22;28",DA=ONCONUM,DIQ="ONC",DIQ(0)="IE"
25 D EN^DIQ1
26 S DIE="^ONCO(165.5,",DA=ONCONUM
27 S TOP=$P($G(^ONCO(165.5,D0,2)),U,1),TOPCOD=""
28 I TOP'="" S TOPCOD=$P(^ONCO(164,TOP,0),U,2)
29 W @IOF D HEAD^ONCMPC0
30 W !," TABLE II - INITIAL DIAGNOSIS"
31 W !," ----------------------------"
32COC W !," 14. CLASS OF CASE................: ",ONC(165.5,ONCONUM,.04,"E")
33DOID S DOID=$E(DATEDX,4,5)_"/"_$E(DATEDX,6,7)_"/"_(1700+$E(DATEDX,1,3))
34 W !," 15. DATE OF INITIAL DIAGNOSIS....: ",DOID
35PS W !," 16. PRIMARY SITE (ICD-O-2).......: ",TOPCOD
36LODP I TOPCOD'="C44.9" D G L
37 .S $P(^ONCO(165.5,ONCONUM,"MEL1"),U,9)=8
38 .W !," 17. LOC OF DISEASE PRESENTATION..: NA, primary site known"
39 S DR="1108 17. LOC OF DISEASE PRESENTATION.." D ^DIE G:$D(Y) JUMP
40L W !," 18. LATERALITY...................: ",ONC(165.5,ONCONUM,28,"E")
41HIST W !," 19. HISTOLOGY (ICD-O-2)..........: ",$E(ONC(165.5,ONCONUM,22,"I"),1,4)," ",ONC(165.5,ONCONUM,22,"E")
42BC W !," 20. BEHAVIOR CODE (ICD-O-2)......: ",$E(ONC(165.5,ONCONUM,22,"I"),5)
43GRADE S DR="24 21. GRADE........................" D ^DIE G:$D(Y) JUMP
44DC S DR="26 22. DIAGNOSTIC CONFIRMATION......" D ^DIE G:$D(Y) JUMP
45PRTC W ! K DIR S DIR(0)="E" D ^DIR S:$D(DIRUT) OUT="Y"
46 G EXIT
47JUMP ;Jump to prompts
48 S XX="" R !!," GO TO ITEM NUMBER: ",X:DTIME I (X="")!(X[U) S OUT="Y" G EXIT
49 I X["?" D G JUMP
50 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
51 I '$D(TABLE(X)) S:X?1.2N X=X_"." S XX=X,X=$O(TABLE(X)) I ($P(X,XX,1)'="")!(X="") W *7,"??" D G JUMP
52 .W !," CHOOSE FROM:" F I=1:1:CHOICES W !,?5,HTABLE(I)
53 S X=TABLE(X)
54 G @X
55EXIT K CHOICES,HTABLE,TABLE
56 K DOID,NCDS,CDS,PP,LP,GS,PIECE
57 K DA,DIE,DIR,DIROUT,DIRUT,DR,DTOUT,DUOUT,X,XX,Y
58 Q
Note: See TracBrowser for help on using the repository browser.