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

ORLPR.m

Go to the documentation of this file.
  1. ORLPR ; slc/CLA - Report formatter for patient lists ;11/27/91 [7/20/00 10:33am]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**9,63,82**;Dec 17, 1997
  1. INQ ;called by option ORLP EXAMINE/PRINT - Inquire to review/print lists
  1. N ORLIST,SORT,TL
  1. K IO("Q")
  1. W @IOF
  1. S SORT=$$GET^XPAR("USR.`"_DUZ,"ORLP DEFAULT LIST ORDER",1,"I") I SORT']"" S SORT="A"
  1. K DIC S DIC="^OR(100.21,",DIC(0)="AEQMZ"
  1. S DIC("A")="Select LIST to examine/print: "
  1. D GETDEF^ORLPL
  1. D ^DIC K DIC,DTOUT,DUOUT I Y<1 Q
  1. ;make list the default if type=team, contains users and current user belongs (else kill the default list to prevent confusion)
  1. S TL=$P(Y(0),U,2)
  1. I TL["T",$D(^OR(100.21,+Y,1,0))#2,$D(^(DUZ)) S ^TMP("ORLP",$J,"TLIST")=+Y
  1. ; Next line added by PKS - 3/2000; modified on 7/2000 for patch 82:
  1. I ((SORT'="R")&(SORT'="T")) S SORT="A" ; Only A, R, or T work here.
  1. E K ^TMP("ORLP",$J,"TLIST")
  1. S ORLIST=Y
  1. D Q:$D(DTOUT)!$D(DUOUT)
  1. . N DIR S DIR(0)="SO^A:ALPHABETIC;R:ROOM/BED;T:TERMINAL DIGIT",DIR("B")=SORT,DIR("A")="Sort by"
  1. . D ^DIR S SORT=Y
  1. S %ZIS="PQ",ZTSAVE("ORLIST")="",ZTSAVE("SORT")="",ZTSAVE("^TMP(""ORLP"",$J,""LIST"",")="",ZTSAVE("TL")="",ZTRTN="OUTPUT^ORLPR0",ZTDESC="OERR Patient/Team List Report"
  1. D IO^ORUTL1,END^ORLPR0 ;queue output then end
  1. Q