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

BDPLPRV.m

Go to the documentation of this file.
  1. BDPLPRV ; IHS/CMI/TMJ - BDP LAST CURRENT PROVIDER WORKLOAD REPORT AND (BY DATE RANGE) ;
  1. ;;2.0;IHS PCC SUITE;;MAY 14, 2009
  1. ;
  1. ;
  1. D INFORM ;Report Explanation
  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"DA^"_APCLBD_":DT:EP"
  1. K DIR
  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 Provider
  1. S BDPUSE=1,BDPUSE1=10000
  1. W ! S DIR(0)="Y0",DIR("A")="Want to INCLUDE a particular Current Designated Provider",DIR("B")="NO"
  1. S DIR("?")="To RESTRICT to a particular Provider - Answer Yes."
  1. D ^DIR K DIR
  1. G:$D(DIRUT) BD
  1. I 'Y G PRINT
  1. PROV ;Get PROVIDER
  1. S DIC=200,DIC(0)="AEMQ",DIC("A")="Enter Provider 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 CLOSED DISCLOSURES BY DATE
  1. ;W !
  1. S FLDS="[BDP LIST OF CURRENT PROVIDER]",BY(0)="^BDPRECN(""AD""," 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 Current Designated Provider.",!
  1. W ?10,"The report output includes:",!,?10,"Category Type-Patient Name-Current Provider-Date Last Updated.",!
  1. W ?25,"*****************************",!
  1. Q