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

PXRMDISC.m

Go to the documentation of this file.
  1. PXRMDISC ; SLC/PKR - Return the reminder disclaimer in ^TMP. ;06/14/2005
  1. ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21
  1. ;
  1. FORMAT ;Format and store the formatted disclaimer.
  1. N IND,LC,NIN,NOUT,TEXTIN,TEXTOUT
  1. ;If the Site Reminder Disclaimer is empty then use the default
  1. ;disclaimer.
  1. S IND=$S($D(^PXRM(800,1,"DISC2")):"DISC2",1:"DISC1")
  1. S (LC,NIN)=0
  1. F S LC=$O(^PXRM(800,1,IND,LC)) Q:LC="" D
  1. . S NIN=NIN+1,TEXTIN(NIN)=$G(^PXRM(800,1,IND,LC,0))
  1. D FORMAT^PXRMTEXT(1,70,NIN,.TEXTIN,.NOUT,.TEXTOUT)
  1. K ^PXRM(800,1,"DISCF")
  1. F LC=1:1:NOUT S ^PXRM(800,1,"DISCF",LC,0)=TEXTOUT(LC)
  1. Q
  1. ;
  1. ;========================================================
  1. LOAD ;Load the formatted disclaimer.
  1. I $D(^TMP("PXRM",$J,"DISC")) Q
  1. N LC
  1. S LC=0
  1. F S LC=$O(^PXRM(800,1,"DISCF",LC)) Q:LC="" D
  1. . S ^TMP("PXRM",$J,"DISC",LC)=^PXRM(800,1,"DISCF",LC,0)
  1. Q
  1. ;