- BMCRR9 ; IHS/PHXAO/TMJ - list patients for which medical and/or cost data has not been received ;
- ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
- ;IHS/ITSC/FCJ ADDED ABILITY TO SELECT BEG AND END DATE OF REPORT
- ;
- ;
- START ;
- W:$D(IOF) @IOF
- W !,"This report will list all referrals by either date initiated or Best available",!,"beginning date of service. Best of available Date of service is defined as"
- W !,"the actual begin date of service if available, otherwise the expected begin "
- W !,"date. Inhouse Referrals are excluded.",!
- BD ;get beginning date and ending dates
- D BD^BMCRUTL
- G:$D(DIRUT) XIT
- SORT ;sort by?
- S BMCSTYPE=""
- S DIR(0)="S^B:Begin Date of Service;I:Date Referral Initiated",DIR("A")="Sort output by which of the above",DIR("B")="B" K DA D ^DIR K DIR
- G:$D(DIRUT) XIT
- S BMCSTYPE=Y
- 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) SORT
- I $G(BMCOPT)="B" D BROWSE,XIT Q
- S XBRP="^BMCRR9P",XBRC="^BMCRR91",XBRX="XIT^BMCRR9",XBNS="BMC"
- D ^XBDBQUE
- D XIT
- Q
- BROWSE ;
- S XBRP="VIEWR^XBLM(""^BMCRR9P"")"
- S XBRC="^BMCRR91",XBRX="XIT^BMCRR9",XBIOP=0 D ^XBDBQUE
- Q
- XIT ;EP - CALLED FROM BMCRR9
- D KILL^AUPNPAT
- K BMC80D,BMC80E,BMCBT,BMCBTH,BMCET,BMCFAC,BMCJOB,BMCOPT,BMCPG,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSORT,BMCSTYPE
- K BMCBD,BMCED,BMCBDD,BMCEDD,BMCSD
- K DA,DFN,DIR,X,Y
- Q
- BMCRR9 ; 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
- +2 ;IHS/ITSC/FCJ ADDED ABILITY TO SELECT BEG AND END DATE OF REPORT
- +3 ;
- +4 ;
- START ;
- +1 IF $DATA(IOF)
- WRITE @IOF
- +2 WRITE !,"This report will list all referrals by either date initiated or Best available",!,"beginning date of service. Best of available Date of service is defined as"
- +3 WRITE !,"the actual begin date of service if available, otherwise the expected begin "
- +4 WRITE !,"date. Inhouse Referrals are excluded.",!
- BD ;get beginning date and ending dates
- +1 DO BD^BMCRUTL
- +2 IF $DATA(DIRUT)
- GOTO XIT
- SORT ;sort by?
- +1 SET BMCSTYPE=""
- +2 SET DIR(0)="S^B:Begin Date of Service;I:Date Referral Initiated"
- SET DIR("A")="Sort output by which of the above"
- SET DIR("B")="B"
- KILL DA
- DO ^DIR
- KILL DIR
- +3 IF $DATA(DIRUT)
- GOTO XIT
- +4 SET BMCSTYPE=Y
- 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 SORT
- +6 IF $GET(BMCOPT)="B"
- DO BROWSE
- DO XIT
- QUIT
- +7 SET XBRP="^BMCRR9P"
- SET XBRC="^BMCRR91"
- SET XBRX="XIT^BMCRR9"
- SET XBNS="BMC"
- +8 DO ^XBDBQUE
- +9 DO XIT
- +10 QUIT
- BROWSE ;
- +1 SET XBRP="VIEWR^XBLM(""^BMCRR9P"")"
- +2 SET XBRC="^BMCRR91"
- SET XBRX="XIT^BMCRR9"
- SET XBIOP=0
- DO ^XBDBQUE
- +3 QUIT
- XIT ;EP - CALLED FROM BMCRR9
- +1 DO KILL^AUPNPAT
- +2 KILL BMC80D,BMC80E,BMCBT,BMCBTH,BMCET,BMCFAC,BMCJOB,BMCOPT,BMCPG,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSORT,BMCSTYPE
- +3 KILL BMCBD,BMCED,BMCBDD,BMCEDD,BMCSD
- +4 KILL DA,DFN,DIR,X,Y
- +5 QUIT