source: WorldVistAEHR/trunk/r/ONCOLOGY-ONC/ONCODSP1.m@ 1361

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

initial load of WorldVistAEHR

File size: 4.4 KB
RevLine 
[613]1ONCODSP1 ;HINES IRMFO/RTK-ANNUAL SUMMARY REPORT DISPLAY ;5/6/96 15:11
2 ;;2.11;ONCOLOGY;**5,13**;May 06, 1995
3 U IO S FIRST="1ST",PRTC=1
4 S (COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8)=0
5 S (COL9,COL10,COL11,COL12,COL13,COL14,COL15,COL16,COL17)=0
6 S (TT1,TT2,TT3,TT4,TT5,TT6,TT7,TT8)=0
7 S (TT9,TT10,TT11,TT12,TT13,TT14,TT15,TT16,TT17)=0
8 F IEN=0:0 S IEN=$O(^TMP($J,"ANNSUM",IEN)) Q:IEN'>0 S CC=$G(^TMP($J,"ANNSUM",IEN,"CC")),RS=$G(^TMP($J,"ANNSUM",IEN,"RS")),SG=$G(^TMP($J,"ANNSUM",IEN,"SG")),ZNODE=$G(^TMP($J,"ANNSUM",IEN,0)),TOPGP=$P(ZNODE,"^",2) D
9 .Q:PRTC=0
10 .I FIRST="1ST" D HDR S FIRST=""
11 .I TOPGP="C00" S PTR=$P(ZNODE,"^",4) W !?43,"|",?82,"|",!?5,"System: " I PTR'="" W $G(^ONCO(164.14,PTR,0)),?82,"|"
12 .I "C15^C30^C40^C42^C44^C47^C48^C49^C50^C51^C60^C64^C69^C73^C76^C77^C80"[TOPGP D
13 ..S DS="-----" W !,?24,DS,?30,DS,?36,DS,?43,"|",?45,DS,?51,DS,?57,DS,?63,DS,?69,DS,?75,DS,?82,"|",?85,DS,?91,DS,?97,DS,?103,DS,?109,DS,?115,DS,?121,DS,?127,DS
14 ..W !,"SUBTOTAL",?24,COL1,?30,COL2,?36,COL3,?43,"|",?45,COL4,?51,COL5,?57,COL6
15 ..W ?63,COL7,?69,COL8,?75,COL9,?82,"|",?85,COL10,?91,COL11,?97,COL12
16 ..W ?103,COL13,?109,COL14,?115,COL15,?121,COL16,?127,COL17
17 ..S TT1=TT1+COL1,TT2=TT2+COL2,TT3=TT3+COL3,TT4=TT4+COL4,TT5=TT5+COL5
18 ..S TT6=TT6+COL6,TT7=TT7+COL7,TT8=TT8+COL8,TT9=TT9+COL9,TT10=TT10+COL10
19 ..S TT11=TT11+COL11,TT12=TT12+COL12,TT13=TT13+COL13,TT14=TT14+COL14
20 ..S TT15=TT15+COL15,TT16=TT16+COL16,TT17=TT17+COL17
21 ..S (COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8)=0
22 ..S (COL9,COL10,COL11,COL12,COL13,COL14,COL15,COL16,COL17)=0
23 ..S PTR=$P(ZNODE,"^",4) W !?43,"|",?82,"|",!,?5,"System: " I PTR'="" W $G(^ONCO(164.14,PTR,0)) W:$L($G(^ONCO(164.14,PTR,0)))<28 ?43,"|" W ?82,"|"
24 ..Q
25 .I ZNODE'="" W !,$E($P(ZNODE,"^"),1,22)
26 .I $D(CC) D
27 ..W ?24,$P(CC,"^",1),?30,$P(CC,"^",2),?36,$P(CC,"^",3)
28 ..S COL1=COL1+$P(CC,"^",1),COL2=COL2+$P(CC,"^",2),COL3=COL3+$P(CC,"^",3)
29 .I $D(RS) D
30 ..W ?43,"|",?45,$P(RS,"^",1),?51,$P(RS,"^",2),?57,$P(RS,"^",3),?63,$P(RS,"^",4),?69,$P(RS,"^",5),?75,$P(RS,"^",6)
31 ..S COL4=COL4+$P(RS,"^",1),COL5=COL5+$P(RS,"^",2),COL6=COL6+$P(RS,"^",3),COL7=COL7+$P(RS,"^",4),COL8=COL8+$P(RS,"^",5),COL9=COL9+$P(RS,"^",6)
32 .I $D(SG) D
33 ..W ?82,"|",?85,$P(SG,"^",1),?91,$P(SG,"^",2),?97,$P(SG,"^",3),?103,$P(SG,"^",4),?109,$P(SG,"^",5),?115,$P(SG,"^",6),?121,$P(SG,"^",7),?127,$P(SG,"^",8)
34 ..S COL10=COL10+$P(SG,"^",1),COL11=COL11+$P(SG,"^",2),COL12=COL12+$P(SG,"^",3),COL13=COL13+$P(SG,"^",4),COL14=COL14+$P(SG,"^",5),COL15=COL15+$P(SG,"^",6),COL16=COL16+$P(SG,"^",7),COL17=COL17+$P(SG,"^",8)
35 .I TOPGP="C80" D
36 ..S DS="-----" W !,?24,DS,?30,DS,?36,DS,?43,"|",?45,DS,?51,DS,?57,DS,?63,DS,?69,DS,?75,DS,?82,"|",?85,DS,?91,DS,?97,DS,?103,DS,?109,DS,?115,DS,?121,DS,?127,DS
37 ..W !,"SUBTOTAL",?24,COL1,?30,COL2,?36,COL3,?43,"|",?45,COL4,?51,COL5,?57,COL6
38 ..W ?63,COL7,?69,COL8,?75,COL9,?82,"|",?85,COL10,?91,COL11,?97,COL12
39 ..W ?103,COL13,?109,COL14,?115,COL15,?121,COL16,?127,COL17
40 ..S TT1=TT1+COL1,TT2=TT2+COL2,TT3=TT3+COL3,TT4=TT4+COL4,TT5=TT5+COL5
41 ..S TT6=TT6+COL6,TT7=TT7+COL7,TT8=TT8+COL8,TT9=TT9+COL9,TT10=TT10+COL10
42 ..S TT11=TT11+COL11,TT12=TT12+COL12,TT13=TT13+COL13,TT14=TT14+COL14
43 ..S TT15=TT15+COL15,TT16=TT16+COL16,TT17=TT17+COL17
44 ..S (COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8)=0
45 ..S (COL9,COL10,COL11,COL12,COL13,COL14,COL15,COL16,COL17)=0
46 ..Q
47 .I $Y>(IOSL-6) D:$E(IOST,1)="C" PRTC Q:PRTC=0 D HDR
48 Q:PRTC=0
49 S DS="-----" W !,?24,DS,?30,DS,?36,DS,?43,"|",?45,DS,?51,DS,?57,DS,?63,DS,?69,DS,?75,DS,?82,"|",?85,DS,?91,DS,?97,DS,?103,DS,?109,DS,?115,DS,?121,DS,?127,DS
50 W !,"TOTAL",?24,TT1,?30,TT2,?36,TT3,?43,"|",?45,TT4,?51,TT5,?57,TT6,?63,TT7
51 W ?69,TT8,?75,TT9,?82,"|",?85,TT10,?91,TT11,?97,TT12,?103,TT13,?109,TT14
52 W ?115,TT15,?121,TT16,?127,TT17
53 K COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8,COL9,COL10,COL11,COL12,COL13
54 K COL14,COL15,COL16,COL17,TT1,TT2,TT3,TT4,TT5,TT6,TT7,TT8,TT9,TT10,TT11
55 K TT12,TT13,TT14,TT15,TT16,TT17
56 K CC,DS,FIRST,IEN,LINES,PRTC,PTR,RS,SG,TOPGP,ZNODE
57 D ^%ZISC Q
58HDR ;HEADER - PRINT THIS FOR EACH NEW PAGE
59 W:$Y>0 @IOF
60 S LINES="",$P(LINES,"_",75)=""
61 W "ANNUAL SUMMARY REPORT: ",$G(^TMP($J,"ANNSUM","YR")) D NOW^%DTC S Y=% D DD^%DT W " ",Y,!
62 W "SITE:",?24,"TOT#",?30,"ANAL",?36,"NON",?43,"|",?45,"W-M",?51,"W-F",?57,"B-M",?63,"B-F",?69,"O-M",?75,"O-F",?82,"|",?85,"0",?91,"I",?97,"II",?103,"III",?109,"IV",?115,"U",?121,"NA",?127,"INC"
63 W !,$E(LINES,1,43),"|",$E(LINES,1,38),"|",$E(LINES,1,48)
64 Q
65PRTC W ! K DIR,DIRUT,DIROUT,DTOUT,DUOUT S DIR(0)="E" D ^DIR S PRTC=Y S:$D(DIRUT) PRTC=0
66 Q
Note: See TracBrowser for help on using the repository browser.