source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNLRQ.m@ 1635

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

initial load of FOIAVistA 6/30/08 version

File size: 1.9 KB
Line 
1SPNLRQ ;ISC-SF/GB-SCD (SPECIFIC) IP/OP REPORT CONTROLLER ;10/8/96 09:48
2 ;;2.0;Spinal Cord Dysfunction;;01/02/1997
3ASK(QLIST,ABORT) ; Ask report-specific questions
4 N DIC,Y,DTOUT,DUOUT
5 W !
6 S DIC("A")="Select a CLINIC STOP: "
7 ;S DIC("?")="Choose a clinic you want to report on."
8 S DIC="40.7",DIC(0)="AEQMZ"
9 F D ^DIC Q:Y=-1 D
10 . S QLIST("SC",+$P(Y(0),U,2))=$P(Y,U,2) ; QLIST("SC",scnum)=clinic name
11 . S DIC("A")=" Another CLINIC STOP: "
12 I $D(DTOUT)!($D(DUOUT)) S ABORT=1 Q
13 W !
14 S DIC("A")="Select a SPECIALTY: "
15 ;S DIC("?")="Choose a specialty you want to report on."
16 S DIC="42.4",DIC(0)="AEQM"
17 F D ^DIC Q:Y=-1 D
18 . S QLIST("BS",$P(Y,U,1))=$P(Y,U,2) ; QLIST("BS",bsnr)=bed section name
19 . S DIC("A")=" Another SPECIALTY: "
20 I $D(DTOUT)!($D(DUOUT))!('$D(QLIST)) S ABORT=1
21 Q
22GATHER(DFN,FDATE,TDATE,HIUSERS,QLIST) ;
23 D SELECT^SPNLGSOP(DFN,FDATE,TDATE,HIUSERS,.QLIST) ; gather outpatient data
24 D SELECT^SPNLGSIP(DFN,FDATE,TDATE,HIUSERS,.QLIST) ; gather inpatient data
25 Q
26PRINT(FACNAME,XFDATE,XTDATE,HIUSERS,QLIST,ABORT) ;
27 ; PAGELEN Number of lines per page
28 ; TITLE Array of header lines (titles)
29 N TITLE,PAGELEN
30 S PAGELEN=IOSL-3
31 S TITLE(1)=$$CENTER^SPNLRU("SCD - Specific Inpatient and Outpatient Activity")
32 S TITLE(2)=$$CENTER^SPNLRU(FACNAME)
33 I $D(SPNLTRM1) S TITLE(2.5)=$$CENTER^SPNLRU(SPNLTRM1)
34 S TITLE(4)=$$CENTER^SPNLRU("For the Period "_XFDATE_" to "_XTDATE)
35 I HIUSERS D
36 . S TITLE(3)=$$CENTER^SPNLRU("Selected Outpatient Activity")
37 . D:$D(QLIST("SC")) P1^SPNLRQO(.TITLE,PAGELEN,.QLIST,.ABORT) Q:ABORT
38 . S TITLE(3)=$$CENTER^SPNLRU("Selected Inpatient Activity")
39 . D:$D(QLIST("BS")) P1^SPNLRQI(.TITLE,PAGELEN,.QLIST,.ABORT)
40 E D
41 . S TITLE(3)=$$CENTER^SPNLRU("Selected Outpatient Activity")
42 . D:$D(QLIST("SC")) P2^SPNLRQO(.TITLE,PAGELEN,.QLIST,.ABORT) Q:ABORT
43 . S TITLE(3)=$$CENTER^SPNLRU("Selected Inpatient Activity")
44 . D:$D(QLIST("BS")) P2^SPNLRQI(.TITLE,PAGELEN,.QLIST,.ABORT)
45 Q
Note: See TracBrowser for help on using the repository browser.