Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: GMPLSLRP

GMPLSLRP.m

Go to the documentation of this file.
  1. GMPLSLRP ;ISP/TC - Problem Selection List Reports ;08/22/17 06:38
  1. ;;2.0;Problem List;**49**;Aug 25, 1994;Build 43
  1. ;
  1. ; External References:
  1. ; ICR 2056 $$GET1^DIQ
  1. ; ICR 10026 ^DIR
  1. ; ICR 10060 ^VA(200,"B"
  1. ; ICR 10104 $$REPEAT^XLFSTR
  1. ;
  1. GETUSRLT(GMPLULST,GMPLELST) ; Retrieve pre-existing user problem selection lists
  1. N GMPLUSR,GMPLDUZ,GMPLLNME,GMPLUSNM,GMPLST
  1. S (GMPLUSR,GMPLDUZ)=""
  1. F S GMPLUSR=$O(^VA(200,"B",GMPLUSR)) Q:GMPLUSR="" D
  1. . F S GMPLDUZ=$O(^VA(200,"B",GMPLUSR,GMPLDUZ)) Q:GMPLDUZ="" D
  1. . . S GMPLUSNM=$$GET1^DIQ(200,GMPLDUZ,.01) Q:'$L(GMPLUSNM)
  1. . . S GMPLLNME=$$GET1^DIQ(200,GMPLDUZ,125.1),GMPLST=$$GET1^DIQ(200,GMPLDUZ,125.1,"I")
  1. . . I '$L(GMPLLNME),GMPLST S GMPLELST(GMPLUSNM,GMPLST)=GMPLDUZ Q
  1. . . E Q:'$L(GMPLLNME)
  1. . . S GMPLULST(GMPLUSNM,GMPLLNME)=""
  1. Q
  1. ;
  1. GETCLNLT(GMPLCLST) ; Retrieve pre-existing clinic problem selection lists
  1. N GMPLCLIN,GMPLST,GMPLDA
  1. S (GMPLDA,GMPLST)=""
  1. F S GMPLST=$O(^GMPL(125,"B",GMPLST)) Q:GMPLST="" D
  1. . F S GMPLDA=$O(^GMPL(125,"B",GMPLST,GMPLDA)) Q:GMPLDA="" D
  1. . . S GMPLCLIN=$$GET1^DIQ(125,GMPLDA,.03) Q:GMPLCLIN=""
  1. . . S GMPLCLST(GMPLCLIN,GMPLST)=""
  1. Q
  1. ;
  1. PAGE(GMPLNUM,GMPLTITL) ; Print header and raise page number
  1. Q:'$G(GMPLNUM)
  1. I GMPLNUM'=1,$E(IOST,1,2)="C-" D Q:'GMPLNUM
  1. . N DIR,DTOUT,DIRUT,DUOUT,X,Y
  1. . S DIR(0)="E" D ^DIR
  1. . I $D(DTOUT)!($D(DUOUT)) S GMPLNUM=0
  1. W @IOF
  1. W GMPLTITL
  1. W ?70,"Page: ",GMPLNUM
  1. W !,$$REPEAT^XLFSTR("-",78)
  1. S GMPLNUM=GMPLNUM+1
  1. Q