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

BMCRR9.m

Go to the documentation of this file.
  1. 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
  1. ;IHS/ITSC/FCJ ADDED ABILITY TO SELECT BEG AND END DATE OF REPORT
  1. ;
  1. ;
  1. START ;
  1. W:$D(IOF) @IOF
  1. 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"
  1. W !,"the actual begin date of service if available, otherwise the expected begin "
  1. W !,"date. Inhouse Referrals are excluded.",!
  1. BD ;get beginning date and ending dates
  1. D BD^BMCRUTL
  1. G:$D(DIRUT) XIT
  1. SORT ;sort by?
  1. S BMCSTYPE=""
  1. 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
  1. G:$D(DIRUT) XIT
  1. S BMCSTYPE=Y
  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) SORT
  1. I $G(BMCOPT)="B" D BROWSE,XIT Q
  1. S XBRP="^BMCRR9P",XBRC="^BMCRR91",XBRX="XIT^BMCRR9",XBNS="BMC"
  1. D ^XBDBQUE
  1. D XIT
  1. Q
  1. BROWSE ;
  1. S XBRP="VIEWR^XBLM(""^BMCRR9P"")"
  1. S XBRC="^BMCRR91",XBRX="XIT^BMCRR9",XBIOP=0 D ^XBDBQUE
  1. Q
  1. XIT ;EP - CALLED FROM BMCRR9
  1. D KILL^AUPNPAT
  1. K BMC80D,BMC80E,BMCBT,BMCBTH,BMCET,BMCFAC,BMCJOB,BMCOPT,BMCPG,BMCQUIT,BMCRCNT,BMCREF,BMCRREC,BMCSORT,BMCSTYPE
  1. K BMCBD,BMCED,BMCBDD,BMCEDD,BMCSD
  1. K DA,DFN,DIR,X,Y
  1. Q