- BMCRR19 ; IHS/PHXAO/TMJ - Weekly RRR Report for One Facility Only ;
- ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
- ;
- ;
- ;
- W !?10,"******** REVIEW LISTING BY DATE OF SERVICE ********",!
- W !!,"This report will print a list of all Primary referrals that were initiated in a",!,"date range entered by the user. This report can be used by the"
- W !,"CHS or Managed Care Committee to review the referrals.",!
- W !,"This report allows User to Select and report on an INDIVIDUAL FACILITY Only!!",!
- W !,"This report also allows the User to EXCLUDE a particular Local Category ",!
- W !,"Inhouse Referrals are NOT included.",!
- ASK ;
- W ! S DIC="^AUTTLOC(",DIC("A")="Enter Facility Name: ",DIC(0)="AEMQ" D ^DIC K DIC
- I Y=-1 G XIT
- S BMCFAC=+Y
- ;
- ASK1 ;Restrict a Certain Local Category
- S BMCLCAT=0
- W ! S DIR(0)="Y0",DIR("A")="Would you like to EXCLUDE a particular Local Category in this report",DIR("B")="NO"
- S DIR("?")="To EXCLUDE a particular Local Category from this Report - Answer Yes."
- D ^DIR K DIR
- G:$D(DIRUT) ASK
- I 'Y G BD
- CAT ;Category Restriction
- S BMCLCAT=0
- S DIC="^BMCLCAT(",DIC(0)="AEQM",DIC("A")="Enter the Local Category to EXCLUDE: "
- D ^DIC K DIC
- Q:$D(DIRUT)
- G:Y=0 BD
- S BMCLCAT=+Y
- ;
- ;
- ;
- BD ;get beginning date
- W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning Referral Initiated Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
- I $D(DIRUT) G ASK
- S BMCBD=Y
- ED ;get ending date
- W ! S DIR(0)="D^"_BMCBD_"::EP",DIR("A")="Enter ending Referral Initiation Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
- I $D(DIRUT) G BD
- S BMCED=Y
- S X1=BMCBD,X2=-1 D C^%DTC S BMCSD=X
- ZIS ;call to XBDBQUE
- K BMCOPT
- 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
- I $D(DIRUT) S BMCQUIT="" Q
- S BMCOPT=Y
- G:$G(BMCQUIT) XIT
- I $G(BMCOPT)="B" D BROWSE,XIT Q
- S XBRP="^BMCRR19P",XBRC="^BMCRR191",XBRX="XIT^BMCRR19",XBNS="BMC"
- D ^XBDBQUE
- D XIT
- Q
- BROWSE ;
- S XBRP="VIEWR^XBLM(""^BMCRR19P"")"
- S XBRC="^BMCRR191",XBRX="XIT^BMCRR19",XBIOP=0 D ^XBDBQUE
- Q
- XIT ;EP - CALLED FROM BMCRR19
- K BMCBD,BMCBT,BMCBTH,BMCCOL,BMCD,BMCDA,BMCDATE,BMCED,BMCET,BMCFILE,BMCG,BMCHRN,BMCIOM,BMCJOB,BMCNODE,BMCODAT,BMCOPT,BMCP,BMCPG,BMCPN,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSD,BMCWP,BMCX,BMCC
- K BMCLOCC,BMCLOCI,BMCLOCP,BMCLOCPP,BMCLCAT
- D KILL^AUPNPAT
- K %,C,D0,DA,DFN,DI,DIC,DIQ,DIR,DIRUT,DIWF,DIWL,DIWR,DR,DTOUT,F,I,X,Y,Z
- Q
- BMCRR19 ; IHS/PHXAO/TMJ - Weekly RRR Report for One Facility Only ;
- +1 ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
- +2 ;
- +3 ;
- +4 ;
- +5 WRITE !?10,"******** REVIEW LISTING BY DATE OF SERVICE ********",!
- +6 WRITE !!,"This report will print a list of all Primary referrals that were initiated in a",!,"date range entered by the user. This report can be used by the"
- +7 WRITE !,"CHS or Managed Care Committee to review the referrals.",!
- +8 WRITE !,"This report allows User to Select and report on an INDIVIDUAL FACILITY Only!!",!
- +9 WRITE !,"This report also allows the User to EXCLUDE a particular Local Category ",!
- +10 WRITE !,"Inhouse Referrals are NOT included.",!
- ASK ;
- +1 WRITE !
- SET DIC="^AUTTLOC("
- SET DIC("A")="Enter Facility Name: "
- SET DIC(0)="AEMQ"
- DO ^DIC
- KILL DIC
- +2 IF Y=-1
- GOTO XIT
- +3 SET BMCFAC=+Y
- +4 ;
- ASK1 ;Restrict a Certain Local Category
- +1 SET BMCLCAT=0
- +2 WRITE !
- SET DIR(0)="Y0"
- SET DIR("A")="Would you like to EXCLUDE a particular Local Category in this report"
- SET DIR("B")="NO"
- +3 SET DIR("?")="To EXCLUDE a particular Local Category from this Report - Answer Yes."
- +4 DO ^DIR
- KILL DIR
- +5 IF $DATA(DIRUT)
- GOTO ASK
- +6 IF 'Y
- GOTO BD
- CAT ;Category Restriction
- +1 SET BMCLCAT=0
- +2 SET DIC="^BMCLCAT("
- SET DIC(0)="AEQM"
- SET DIC("A")="Enter the Local Category to EXCLUDE: "
- +3 DO ^DIC
- KILL DIC
- +4 IF $DATA(DIRUT)
- QUIT
- +5 IF Y=0
- GOTO BD
- +6 SET BMCLCAT=+Y
- +7 ;
- +8 ;
- +9 ;
- BD ;get beginning date
- +1 WRITE !!
- SET DIR(0)="D^::EP"
- SET DIR("A")="Enter beginning Referral Initiated Date"
- DO ^DIR
- KILL DIR
- IF $DATA(DUOUT)
- SET DIRUT=1
- +2 IF $DATA(DIRUT)
- GOTO ASK
- +3 SET BMCBD=Y
- ED ;get ending date
- +1 WRITE !
- SET DIR(0)="D^"_BMCBD_"::EP"
- SET DIR("A")="Enter ending Referral Initiation Date"
- DO ^DIR
- KILL DIR
- IF $DATA(DUOUT)
- SET DIRUT=1
- +2 IF $DATA(DIRUT)
- GOTO BD
- +3 SET BMCED=Y
- +4 SET X1=BMCBD
- SET X2=-1
- DO C^%DTC
- SET BMCSD=X
- ZIS ;call to XBDBQUE
- +1 KILL BMCOPT
- +2 WRITE !
- SET DIR(0)="S^P:PRINT Output;B:BROWSE Output on Screen"
- SET DIR("A")="Do you wish to"
- SET DIR("B")="P"
- KILL DA
- DO ^DIR
- KILL DIR
- +3 IF $DATA(DIRUT)
- SET BMCQUIT=""
- QUIT
- +4 SET BMCOPT=Y
- +5 IF $GET(BMCQUIT)
- GOTO XIT
- +6 IF $GET(BMCOPT)="B"
- DO BROWSE
- DO XIT
- QUIT
- +7 SET XBRP="^BMCRR19P"
- SET XBRC="^BMCRR191"
- SET XBRX="XIT^BMCRR19"
- SET XBNS="BMC"
- +8 DO ^XBDBQUE
- +9 DO XIT
- +10 QUIT
- BROWSE ;
- +1 SET XBRP="VIEWR^XBLM(""^BMCRR19P"")"
- +2 SET XBRC="^BMCRR191"
- SET XBRX="XIT^BMCRR19"
- SET XBIOP=0
- DO ^XBDBQUE
- +3 QUIT
- XIT ;EP - CALLED FROM BMCRR19
- +1 KILL BMCBD,BMCBT,BMCBTH,BMCCOL,BMCD,BMCDA,BMCDATE,BMCED,BMCET,BMCFILE,BMCG,BMCHRN,BMCIOM,BMCJOB,BMCNODE,BMCODAT,BMCOPT,BMCP,BMCPG,BMCPN,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSD,BMCWP,BMCX,BMCC
- +2 KILL BMCLOCC,BMCLOCI,BMCLOCP,BMCLOCPP,BMCLCAT
- +3 DO KILL^AUPNPAT
- +4 KILL %,C,D0,DA,DFN,DI,DIC,DIQ,DIR,DIRUT,DIWF,DIWL,DIWR,DR,DTOUT,F,I,X,Y,Z
- +5 QUIT