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

DGYPREG4.m

Go to the documentation of this file.
  1. DGYPREG4 ;ALB/REW - POST-INIT CONVERSION/REPORTING ;5-APR-93
  1. ;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
  1. ;
  1. ; Note: By removing the ;(comment) before D NUMLIM the user is
  1. ; prompted for the maximum number of patients to print.
  1. MAX ;
  1. N DIR,DGXM,DGTXT,X,Y,%DT,Z
  1. W !,?5,"This report will print problem records sorted by Last Activity Date."
  1. W !,?5,"It also prints a total of convertible and un-convertible patients"
  1. W !?5,"for Active and Inactive patients",!
  1. D PRHEAD1^DGYPREG2 ;Displays definition of Last Activity Date
  1. W !?5,"Because this may be a very long report, you may wish to only"
  1. W !?5,"print recently active patients. The default is 2 years ago.",!
  1. S DIR("A")="Oldest Activity Date to Print: ",Z=(DT-20000),DIR("B")=$E(Z,4,5)_"/"_$E(Z,6,7)_"/"_$E(Z,2,3),%DT="AE",DIR(0)="D^2800101:2950101:EX"
  1. D ^DIR
  1. G:Y<0!($G(DIRUT)) QTMAX
  1. S:Y DGFSTDT=Y
  1. I DGFSTDT=2800101 D
  1. .N DIR
  1. .W !?5,"Because you have chosen the earliest date (1-1-80) records with NO"
  1. .W !?5,"Activity Date will be printed at the end. An example of this"
  1. .W !?5,"is a patient that never completed registration.",!
  1. .S DGFSTDT=0
  1. .S DIR(0)="E" D ^DIR
  1. ;D NUMLIM
  1. S:'$G(DGMAXPT) DGMAXPT=1999
  1. QTMAX Q
  1. MBQUE ;
  1. N DIR,DIRUT,DUOUT,DGFSTDT,DGMAXPT,DGDOMB,DGVAR,DGPGM,X,Y,ZTIO
  1. S DGDOMB=1,DGVAR="DGMAXPT^DGFSTDT^DGDOMB^DUZ",DGPGM="EN^DGYPREG",ZTIO=""
  1. D MAX,QUEMESS:'$G(DIRUT)
  1. D:'$G(DIRUT) QUE^DGUTQ
  1. QTMBQ Q
  1. CFLQUE ;
  1. N DIR,DIRUT,DUOUT,DGFSTDT,DGMAXPT,DGDOCFL,DGVAR,DGPGM,X,Y,ZTIO
  1. S DGDOCFL=1,DGVAR="DGMAXPT^DGFSTDT^DGDOCFL^DUZ",DGPGM="EN^DGYPREG",ZTIO=""
  1. D MAX,QUEMESS:'$G(DIRUT)
  1. D:'$G(DIRUT) QUE^DGUTQ
  1. QTCFLQ Q
  1. QUEMESS ;
  1. I $D(ZTQUEUED) G QTQMESS
  1. W !!?5,"You will be receiving a Mail Message indicating records whose "
  1. W:$G(DGDOMB) !?5,"monetary benefit amount fields can not be converted into the"
  1. W:$G(DGDOMB) !?5,"TOTAL ANNUAL VA CHECK AMOUNT field.",!
  1. W:$G(DGDOCFL) !?5,"Claim Folder Location field in the Patient File does not "
  1. W:$G(DGDOCFL) !?5,"begin with an institution's station number."
  1. W !?5,$S($G(DGDOMB)=1:"NO",$G(DGDOCFL)=1:"NO",1:"")," Data will be changed.",!!
  1. W !?5,"This is a queued task. Because this searches the entire Patient File,"
  1. W !?5,"you may wish to run this during off-hours.",!!
  1. QTQMESS Q
  1. NUMLIM ;
  1. W !!?5,"You may wish to limit the number of patients to print in the"
  1. W !?5,"listing to a maximum number of unconvertible patients.",!
  1. S DIR(0)="NA^20:99999:0",DIR("A")="Maximum number of Unconvertible Patients to print: "
  1. S DIR("B")=999
  1. D ^DIR
  1. Q:'Y
  1. S:Y DGMAXPT=Y
  1. Q