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

BMCRR6.m

Go to the documentation of this file.
  1. BMCRR6 ; IHS/PHXAO/TMJ - list patients for which medical and/or cost data has not been received ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. ;
  1. ;
  1. START ;
  1. W:$D(IOF) @IOF W !,"This report presents, by facility referred to, timeliness of receiving",!,"discharge letters. You will be given the number of letters received",!,"in under 1 month of discharge date, in 2-3 months, in 4-6 months"
  1. W !,"in in > 6 months.",!
  1. W !!,"Please enter the range of referral initiated dates that you are interested in.",!
  1. W !,"Inhouse Referrals are exlcuded",!
  1. D ;DATE RANGE
  1. BD ;get beginning date
  1. W ! S DIR(0)="D^::EP",DIR("A")="Enter beginning Referral Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. I $D(DIRUT) G XIT
  1. S BMCBD=Y
  1. ED ;get ending date
  1. W ! S DIR(0)="D^"_BMCBD_"::EP",DIR("A")="Enter ending Referral Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. I $D(DIRUT) G BD
  1. S BMCED=Y
  1. S X1=BMCBD,X2=-1 D C^%DTC S BMCSD=X
  1. ;
  1. ZIS ;call to XBDBQUE
  1. K BMCOPT
  1. W ! S DIR(0)="S^P:PRINT Output;B:BROWSE Output on Screen",DIR("A")="Do you wish to",DIR("B")="P" K DA D ^DIR K DIR
  1. I $D(DIRUT) S BMCQUIT="" Q
  1. S BMCOPT=Y
  1. G:$G(BMCQUIT) D
  1. I $G(BMCOPT)="B" D BROWSE,XIT Q
  1. S XBRP="^BMCRR6P",XBRC="^BMCRR61",XBRX="XIT^BMCRR6",XBNS="BMC"
  1. D ^XBDBQUE
  1. D XIT
  1. Q
  1. BROWSE ;
  1. S XBRP="VIEWR^XBLM(""^BMCRR6P"")"
  1. S XBRC="^BMCRR61",XBRX="XIT^BMCRR6",XBIOP=0 D ^XBDBQUE
  1. Q
  1. XIT ;EP - CALLED FROM BMCRR6
  1. D KILL^AUPNPAT
  1. K BMCBD,BMCBT,BMCBTH,BMCD,BMCED,BMCET,BMCF,BMCJOB,BMCODAT,BMCOPT,BMCPG,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSD,BMCSVCD
  1. K DA,DIR,DIRUT,DTOUT,DUOUT,J,K,T,X,X1,X2,Y,Z,%
  1. Q