source: FOIAVistA/tag/r/ONCOLOGY-ONC/ONCTXSM.m@ 995

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

initial load of FOIAVistA 6/30/08 version

File size: 4.3 KB
Line 
1ONCTXSM ;Hines OIFO/GWB - TREATMENT SUMMARY SCREEN;10/14/98
2 ;;2.11;ONCOLOGY;**19,26,27,32,34,36,37**;Mar 07, 1995
3 D CHECKCC
4 D DEFAULT
5 N DI,DIC,DR,DA,DIQ S SAVEY=Y K ONC
6 S DR="49:58.7;124;133;346;560"
7 S DIC="^ONCO(165.5,"
8 S DA=D0,DIQ="ONC(" D EN^DIQ1
9 W !," Date of 1st course of tx....: ",$E(ONC(165.5,D0,49),1,6)_$E(ONC(165.5,D0,49),9,10)
10 S DFSP=$$DS^ONCACDU2(D0)
11 W !," Date of 1st Surgical Proc...: ",$E(DFSP,1,2)_"/"_$E(DFSP,3,4)_"/"_$E(DFSP,7,8)
12 S TXT=ONC(165.5,D0,58.6),LEN=40 D TXT^ONCPTX
13 W !," Surgery of primary site F...: ",$E(ONC(165.5,D0,50),1,6)_$E(ONC(165.5,D0,50),9,10),?40,TXT1
14 W:TXT2'="" !,?43,TXT2
15 S TXT=ONC(165.5,D0,58.7),LEN=40 D TXT^ONCPTX
16 I DATEDX>2971231 D
17 .W !," Surgery of primary site @fac F: ",$E(ONC(165.5,D0,50.3),1,6)_$E(ONC(165.5,D0,50.3),9,10),?40,TXT1
18 .W:TXT2'="" !,?43,TXT2
19 W !," Radiation...................: ",$E(ONC(165.5,D0,51),1,6)_$E(ONC(165.5,D0,51),9,10),?40,ONC(165.5,D0,51.2)
20 W:DATEDX>2971231 !," Radiation @fac..............: ",$E(ONC(165.5,D0,51.5),1,6)_$E(ONC(165.5,D0,51.5),9,10),?40,ONC(165.5,DA,51.4)
21 W:DATEDX<2960000 !," Radiation therapy to CNS....: ",$E(ONC(165.5,D0,52),1,6)_$E(ONC(165.5,D0,52),9,10),?40,ONC(165.5,D0,52.2)
22 W !," Chemotherapy................: ",$E(ONC(165.5,D0,53),1,6)_$E(ONC(165.5,D0,53),9,10),?40,ONC(165.5,D0,53.2)
23 W:DATEDX>2971231 !," Chemotherapy @fac...........: ",$E(ONC(165.5,D0,53.4),1,6)_$E(ONC(165.5,D0,53.4),9,10),?40,ONC(165.5,DA,53.3)
24 W !," Hormone therapy.............: ",$E(ONC(165.5,D0,54),1,6)_$E(ONC(165.5,D0,54),9,10),?40,ONC(165.5,D0,54.2)
25 W:DATEDX>2971231 !," Hormone therapy @fac........: ",$E(ONC(165.5,D0,54.4),1,6)_$E(ONC(165.5,D0,54.4),9,10),?40,ONC(165.5,DA,54.3)
26 W !," Immunotherapy...............: ",$E(ONC(165.5,D0,55),1,6)_$E(ONC(165.5,D0,55),9,10),?40,ONC(165.5,D0,55.2)
27 W:DATEDX>2971231 !," Immunotherapy @fac..........: ",$E(ONC(165.5,D0,55.4),1,6)_$E(ONC(165.5,D0,55.4),9,10),?40,ONC(165.5,DA,55.3)
28 W !," Other treatment.............: ",$E(ONC(165.5,D0,57),1,6)_$E(ONC(165.5,D0,57),9,10),?40,ONC(165.5,D0,57.2)
29 W:DATEDX>2971231 !," Other treatment @fac........: ",$E(ONC(165.5,D0,57.4),1,6)_$E(ONC(165.5,D0,57.4),9,10),?40,ONC(165.5,DA,57.3)
30 W !,DASHES
31 K TXT,TXT1,TXT2
32 K DIR S DIR(0)="E" D ^DIR I Y=0 S Y="@0" K SAVEY Q
33 S Y=SAVEY K SAVEY
34 Q
35 ;
36CHECKCC ;Check the class of case - if 0,3,6 stuff @FAC fields with zeroes
37 S DATEDX=$P($G(^ONCO(165.5,DA,0)),U,16) I DATEDX<2980000 Q
38 S COC=$P($G(^ONCO(165.5,D0,0)),U,4)
39 I COC=0!(COC=3)!(COC=6) D
40 .S $P(^ONCO(165.5,DA,3.1),U,11)="00"
41 .F PP=7,9,10 S $P(^ONCO(165.5,DA,3.1),U,PP)=1
42 .F PP=12:2:20 S $P(^ONCO(165.5,DA,3.1),U,PP)=0
43 .F PP=8,13:2:25 S $P(^ONCO(165.5,DA,3.1),U,PP)="0000000"
44 I COC=2!(COC=3) D
45 .S $P(^ONCO(165.5,DA,3.1),U,5)="00"
46 .S $P(^ONCO(165.5,DA,3.1),U,6)="0000000"
47 K PP Q
48 ;
49DEFAULT ;RECONSTRUCTION/RESTORATION (165.5,23) default
50 S RRDF="",SURGPS=$P($G(^ONCO(165.5,D0,3.1)),U,29),CONTFLG=0
51 S SITE=$P($G(^ONCO(165.5,D0,0)),U,1)
52 D SETVARS I TPG="" Q
53 I (SITE=35)!($$LEUKEMIA^ONCOAIP2(D0))!((SITE>65)&(SITE<70)) D Q
54 .S RRDF="NA"
55 I DATEDX<2980000,SURGPS="00" S CONTFLG=1
56 I DATEDX>2971231,SURGPS=1 S CONTFLG=1
57 I CONTFLG=0 Q
58 S RRDF="No reconstruction/restoration"
59 I SCG=67141!(SCG=67250)!(SCG=67422)!(SCG=67700)!(SCG=67739)!(SCG=67770) S RRDF="NA"
60 Q
61 ;
62RRDEFIT ;Special default code for field #23 called from input transform
63 I X="No reconstruction/restoration" S X=0 Q
64 I X="NA"!(X["Unknown; not stated") S X=9 Q
65 Q
66SPSDFIT ;Special default code for field #50.2 called from input transform
67 D SETVARS I TPG="" Q
68 I X?1.2N Q
69 F SUB=0:0 S SUB=$O(^ONCO(164,SCG,"SPS",SUB)) Q:SUB'>0!(DFCODE'="") D
70 .I DFTXT=$P($G(^ONCO(164,SCG,"SPS",SUB,0)),U,1) S DFCODE=SUB Q
71 S X=DFCODE,SPSFLG=1 Q
72SCPDFIT ;Special default code for field #138.1 called from input transform
73 D SETVARS I TPG="" Q
74 I X?1N Q
75 F SUB=0:0 S SUB=$O(^ONCO(164,SCG,"SC5",SUB)) Q:SUB'>0!(DFCODE'="") D
76 .I DFTXT=$P($G(^ONCO(164,SCG,"SC5",SUB,0)),U,1) S DFCODE=SUB Q
77 S X=DFCODE,SCPFLG=1 Q
78 Q
79NUMDFIT ;Special default code for field #140.1 called from input transform
80 S X=+X
81 Q
82SOSDFIT ;Special default code for field #139.1 called from input transform
83 D SETVARS I TPG="" Q
84 I X?1.2N Q
85 F SUB=0:0 S SUB=$O(^ONCO(164,SCG,"SO5",SUB)) Q:SUB'>0!(DFCODE'="") D
86 .I DFTXT=$P($G(^ONCO(164,SCG,"SO5",SUB,0)),U,1) S DFCODE=SUB Q
87 S X=DFCODE,SOSFLG=1 Q
88 Q
89SETVARS ;
90 S SCG="",TPG=$P($G(^ONCO(165.5,D0,2)),U,1) I TPG="" Q
91 S SCG=$P($G(^ONCO(164,TPG,0)),U,16)
92 S DFTXT=X,DFCODE="" Q
Note: See TracBrowser for help on using the repository browser.