Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ONCCS4

ONCCS4.m

Go to the documentation of this file.
ONCCS4 ;Hines OIFO/GWB - Collaborative Staging v2 Stuffing ;06/16/11
 ;;2.2;ONCOLOGY;**5**;Jul 31, 2013;Build 6
 ;
 I $G(SCHEMA)="MouthOther" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="MycosisFungoides" D  Q
 .D 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 ;
 I $G(SCHEMA)="MyelomaPlasmaCellDisorder" D  Q
 .D 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D TS
 .D EVAL
 .S $P(^ONCO(165.5,D0,2),U,12)=99
 .S $P(^ONCO(165.5,D0,2),U,13)=99
 ;
 I $G(SCHEMA)="NasalCavity" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="Nasopharynx" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="NETAmpulla" D  Q
 .D 1,2,3,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 4    ;CS V02.05
 ;
 I $G(SCHEMA)="NETColon" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,5)="" 1
 .D 3,4,5,6,7,8,9,10,12,13,14,15,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 11    ;CS V02.05
 ;
 I $G(SCHEMA)="NETRectum" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,5)="" 1
 .D 3,4,5,7,8,9,10,12,13,14,15,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 11    ;CS V02.05
 ;
 I $G(SCHEMA)="NETSmallIntestine" D  Q
 .D 1,2,3,4,5,7,8,9,10,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 6    ;CS V02.05
 ;
 I $G(SCHEMA)="NETStomach" D  Q
 .D 2,3,4,5,7,8,9,10,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 6    ;CS V02.05
 ;
 I $G(SCHEMA)="Orbit" D  Q
 .D 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 ;
 I $G(SCHEMA)="Oropharynx" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Ovary" D  Q
 .D 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 4,5    ;CS V02.05
 ;
 I $G(SCHEMA)="PalateHard" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="PalateSoft" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="PancreasBodyTail" D  Q
 .D 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 1,2,3    ;CS V02.05
 ;
 I $G(SCHEMA)="PancreasHead" D  Q
 .D 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 1,2,3    ;CS V02.05
 ;
 I $G(SCHEMA)="PancreasOther" D  Q
 .D 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 1,2,3    ;CS V02.05
 ;
 I $G(SCHEMA)="ParotidGland" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Penis" D  Q
 .D 1,2,3,4,5,6,7,8,9,13,14,15,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 11,12,16    ;CS V02.05
 ;
 I $G(SCHEMA)="Peritoneum" D  Q
 .D 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24
 .D SSF25
 .I DATEDX>3131231 S ONCDISC=1 D 2,3,4    ;CS V02.05
 ;
 I $G(SCHEMA)="PeritoneumFemaleGen" D  Q
 .D 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24
 .I DATEDX>3131231 S ONCDISC=1 D 4,5    ;CS V02.05
 ;
 I $G(SCHEMA)="PharyngealTonsil" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="PharynxOther" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Placenta" D  Q
 .D 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL2,LN
 ;
 I $G(SCHEMA)="Pleura" D  Q
 .D 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 3,4,5    ;CS V02.05
 ;
 I $G(SCHEMA)="Prostate" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,9)="" 5
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,10)="" 6
 .D 16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 14,15    ;CS V02.05
 ;
 I $G(SCHEMA)="Rectum" D  Q
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 5,7,10    ;CS V02.05
 ;
 I $G(SCHEMA)="RespiratoryOther" D  Q
 .D 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL
 ;
 I $G(SCHEMA)="Retinoblastoma" D  Q
 .D 7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 2,3,4,5,6    ;CS V02.05
 ;
 I $G(SCHEMA)="Retroperitoneum" D  Q
 .D 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 2,3,4    ;CS V02.05
 ;
 I $G(SCHEMA)="SalivaryGlandOther" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Scrotum" D  Q
 .D 2,3,4,5,6,7,8,9,13,14,15,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 10,11    ;CS V02.05
 ;
 I $G(SCHEMA)="SinusEthmoid" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="SinusMaxillary" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="SinusOther" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="Skin" D  Q
 .D 2,3,4,5,6,7,8,9,13,14,15,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 10    ;CS V02.05
 ;
 I $G(SCHEMA)="SkinEyelid" D  Q
 .D 17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 1,2,4,5,7,9,11,12,13,14,15,16 ;CS V02.05
 ;
 I $G(SCHEMA)="SmallIntestine" D  Q
 .D 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 4,5    ;CS V02.05
 ;
 I $G(SCHEMA)="SoftTissue" D  Q
 .D 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 2,4    ;CS V02.05
 ;
 I $G(SCHEMA)="Stomach" D  Q
 .D 3,4,5,6,7,8,9,10,11,12,16,17,18,19,20,21,22,23,24
 .I DATEDX>3131231 S ONCDISC=1 D 2,13,14,15    ;CS V02.05
 ;
 I $G(SCHEMA)="SubmandibularGland" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 10,11,12,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Testis" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,5)="" 1
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,7)="" 3
 .;D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D 11,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 12,14    ;CS V02.05
 ;
 I $G(SCHEMA)="Thyroid" D  Q
 .D 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 ;
 I $G(SCHEMA)="TongueAnterior" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8,10    ;CS V02.05
 ;
 I $G(SCHEMA)="TongueBase" D  Q
 .D:$P($G(^ONCO(165.5,D0,"CS")),U,6)="" 2
 .D 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 7,8    ;CS V02.05
 ;
 I $G(SCHEMA)="Trachea" D  Q
 .D 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL
 ;
 I $G(SCHEMA)="Urethra" D  Q
 .D 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 ;
 I $G(SCHEMA)="UrinaryOther" D  Q
 .D 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 .D EVAL
 ;
 I $G(SCHEMA)="Vagina" D  Q
 .D 8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
 ;
 I $G(SCHEMA)="Vulva" D  Q
 .D 1,2,3,4,5,6,7,8,9,16,17,18,19,20,21,22,23,24,25
 .I DATEDX>3131231 S ONCDISC=1 D 12,13,14,15    ;CS V02.05
 ;
 Q
 ;
1 ;SSF1 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,5)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,5)=988
 Q
 ;
2 ;SSF2 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,6)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,6)=988
 Q
 ;
3 ;SSF3 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,7)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,7)=988
 Q
 ;
4 ;SSF4 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,8)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,8)=988
 Q
 ;
5 ;SSF5 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,9)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,9)=988
 Q
 ;
6 ;SSF6 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS")),U,10)'="" Q
 S $P(^ONCO(165.5,D0,"CS"),U,10)=988
 Q
 ;
7 ;SSF7 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,1)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,1)=988
 Q
 ;
8 ;SSF8 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,2)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,2)=988
 Q
 ;
9 ;SSF9 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,3)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,3)=988
 Q
 ;
10 ;SSF10 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,4)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,4)=988
 Q
 ;
11 ;SSF11 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,5)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,5)=988
 Q
 ;
12 ;SSF12 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,6)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,6)=988
 Q
 ;
13 ;SSF13 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,7)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,7)=988
 Q
 ;
14 ;SSF14 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,8)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,8)=988
 Q
 ;
15 ;SSF15 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,9)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,9)=988
 Q
 ;
16 ;SSF16 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,10)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,10)=988
 Q
 ;
17 ;SSF17 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,11)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,11)=988
 Q
 ;
18 ;SSF18 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,12)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,12)=988
 Q
 ;
19 ;SSF19 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,13)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,13)=988
 Q
 ;
20 ;SSF20 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,14)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,14)=988
 Q
 ;
21 ;SSF21 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,15)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,15)=988
 Q
 ;
22 ;SSF22 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,16)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,16)=988
 Q
 ;
23 ;SSF23 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,17)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,17)=988
 Q
 ;
24 ;SSF24 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,18)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,18)=988
 Q
 ;
25 ;SSF25 = 988
 I ONCDISC=1,$P($G(^ONCO(165.5,D0,"CS2")),U,19)'="" Q
 S $P(^ONCO(165.5,D0,"CS2"),U,19)=988
 Q
 ;
TS ;TUMOR SIZE (CS) = 988
 S $P(^ONCO(165.5,D0,"CS1"),U,10)=988
 Q
 ;
EXT ;EXTENSION (CS) = 988
 S $P(^ONCO(165.5,D0,"CS"),U,11)=988
 Q
 ;
EVAL ;TUMOR SIZE/EXT EVAL (CS) = 9
 ;LYMPH NODES EVAL (CS) = 9
 ;METS EVAL (CS) = 9
 S $P(^ONCO(165.5,D0,"CS"),U,1)=9
 S $P(^ONCO(165.5,D0,"CS"),U,2)=9
 S $P(^ONCO(165.5,D0,"CS"),U,4)=9
 Q
 ;
EVAL1 ;LYMPH NODES EVAL (CS) = 9
 ;METS EVAL (CS) = 9
 S $P(^ONCO(165.5,D0,"CS"),U,2)=9
 S $P(^ONCO(165.5,D0,"CS"),U,4)=9
 Q
 ;
EVAL2 ;LYMPH NODES EVAL (CS) = 9
 S $P(^ONCO(165.5,D0,"CS"),U,2)=9
 Q
 ;
LN ;LYMPH NODES (CS) = 988
 ;REGIONAL LYMPH NODES EXAMINED = 99
 ;REGIONAL LYMPH NODES POSITIVE = 99
 S $P(^ONCO(165.5,D0,"CS"),U,12)=988
 S $P(^ONCO(165.5,D0,2),U,12)=99
 S $P(^ONCO(165.5,D0,2),U,13)=99
 Q
 ;
METS ;METS AT DX (CS) = 98
 S $P(^ONCO(165.5,D0,"CS"),U,3)=98
 Q
 ;
SSF25 ;SSF25 = CS SCHEMA DISCRIMINATOR (165.5,240)
 S $P(^ONCO(165.5,D0,"CS2"),U,19)=$P($G(^ONCO(165.5,D0,"CS3")),U,1)
 Q
 ;
CLEANUP ;Cleanup
 K D0,SCHEMA