source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNLRA.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 1.1 KB
Line 
1SPNLRA ;ISC-SF/GB-SCD CURRENT PATIENT REPORT ;6/23/95 11:52
2 ;;2.0;Spinal Cord Dysfunction;;01/02/1997
3ASK(QLIST,ABORT) ; Report-specific questions
4 Q
5GATHER(DFN,FDATE,TDATE,HIUSERS,QLIST) ;
6 D GATHER^SPNLGICP(DFN) ; Gather current patients
7 Q
8PRINT(FACNAME,XFDATE,XTDATE,HIUSERS,QLIST,ABORT) ;
9 ; PAGELEN Number of lines per page
10 ; TITLE Array of header lines (titles)
11 N TITLE,PAGELEN
12 S PAGELEN=IOSL-3
13 S TITLE(1)=$$CENTER^SPNLRU("SCD - Current Patients")
14 S TITLE(2)=$$CENTER^SPNLRU(FACNAME)
15 I $D(SPNLTRM1) S TITLE(2.5)=$$CENTER^SPNLRU(SPNLTRM1)
16 D P1(.TITLE,PAGELEN,.ABORT) Q:ABORT
17 Q
18P1(TITLE,PAGELEN,ABORT) ;
19 N STATUS,PAT
20 S TITLE(3)=$$CENTER^SPNLRU("Total Patients: "_+$G(^TMP("SPN",$J,"CP")))
21 S TITLE(4)=""
22 ; " 1 2 3 4 5 6 7 8"
23 S TITLE(5)="Name SSN"
24 D HEADER^SPNLRU(.TITLE,.ABORT) Q:ABORT
25 S PAT=""
26 F S PAT=$O(^TMP("SPN",$J,"CP",PAT)) Q:PAT="" D Q:ABORT
27 . I $Y>PAGELEN D HEADER^SPNLRU(.TITLE,.ABORT) Q:ABORT
28 . S STATUS=$G(^TMP("SPN",$J,"CP",PAT))
29 . W !,$P(PAT,U,1),?32,$P(PAT,U,2),?50,STATUS
30 Q
Note: See TracBrowser for help on using the repository browser.