1 | SPNLRA ;ISC-SF/GB-SCD CURRENT PATIENT REPORT ;6/23/95 11:52
|
---|
2 | ;;2.0;Spinal Cord Dysfunction;;01/02/1997
|
---|
3 | ASK(QLIST,ABORT) ; Report-specific questions
|
---|
4 | Q
|
---|
5 | GATHER(DFN,FDATE,TDATE,HIUSERS,QLIST) ;
|
---|
6 | D GATHER^SPNLGICP(DFN) ; Gather current patients
|
---|
7 | Q
|
---|
8 | PRINT(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
|
---|
18 | P1(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
|
---|