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

BDPLUSR.m

Go to the documentation of this file.
  1. BDPLUSR ; IHS/CMI/TMJ - BDP LAST USER WHO UPDATED WORKLOAD REPORT AND (BY DATE RANGE) ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. ;
  1. D INFORM ;Display Report Definition
  1. ;
  1. BD ;get beginning date
  1. W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning Update Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. I $D(DIRUT) G END
  1. S BDPBD=Y
  1. ED ;get ending date
  1. W ! S DIR(0)="DA^"_BDPBD_":DT:EP",DIR("A")="Enter ending Update Date: " D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. I $D(DIRUT) G BD
  1. S BDPED=Y
  1. S X1=BDPBD,X2=-1 D C^%DTC S BDPSD=X
  1. W !
  1. ;
  1. ;
  1. ASK ;Ask if a particular User
  1. S BDPUSE=1,BDPUSE1=10000
  1. W ! S DIR(0)="Y0",DIR("A")="Want to INCLUDE a particular User Who Updated Record",DIR("B")="NO"
  1. S DIR("?")="To RESTRICT to a particular User - Answer Yes."
  1. D ^DIR K DIR
  1. G:$D(DIRUT) BD
  1. I 'Y G PRINT
  1. USER ;Get USER
  1. S DIC=200,DIC(0)="AEMQ",DIC("A")="Enter User Name: "
  1. D ^DIC K DIC
  1. ;
  1. Q:$D(DIRUT)
  1. G:Y=0 ASK
  1. S BDPUSE=+Y,BDPUSE1=+Y
  1. ;
  1. ;
  1. PRINT ;PRINT RECORDS BY DATE
  1. ;W !
  1. S FLDS="[BDP USER UPDATE LISTING]",BY(0)="^BDPRECN(""AE""," S L(0)=3,DIC="^BDPRECN(",L=0
  1. S FR(0,1)=BDPUSE,TO(0,1)=BDPUSE1
  1. S FR(0,2)=BDPBD,TO(0,2)=BDPED
  1. K DHIT,DIOEND,DIOBEG
  1. D EN1^DIP
  1. END ;
  1. K BDPBD,BDPED,BDPSD,BDPUSE,BDPUSE1,X,DD0,B Q
  1. ;
  1. ;
  1. INFORM ;Report Explanation
  1. ;
  1. W !,?25,"******************************",!
  1. W ?10,"This Report prints a Listing of Records updated for a",!,?10,"specific date range and User who created.",!
  1. W ?10,"The report output includes:",!,?10,"Category Type-Patient Name-Current Provider-Date & User Who Created.",!
  1. W ?25,"*****************************",!
  1. Q