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

BMCRR18.m

Go to the documentation of this file.
  1. BMCRR18 ; IHS/PHXAO/TMJ - list patients for Inpatient Discharge Comments ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. ;
  1. ;
  1. W !?10,"******** DISCHARGE LISTING BY ENDING DATE OF SERVICE ********",!
  1. W !!,"The report will print a list of all Inpatient referrals' ENDING DATE of Service",!,"Range entered by the user. This report will list Patient "
  1. W "Name, Health Record #,",!,"Age, Community, Actual Beginning Dt of Service,"
  1. W " Facility Referred To, Purpose",!,"of Referral, Actual Ending Dt of Service,"
  1. W " & Los",!!
  1. W "Selecting the Detailed Patient Listing will provide a separate page for each",!,"Referral & also includes the Discharge Comments."
  1. W !!,"The Summary Report Listing will include all Discharges on one",!,"report, but will not include the Discharge Comments.",!
  1. W !,"Inhouse Referrals are NOT included.",!
  1. BD ;get beginning END OF SERVICE date
  1. W !! S DIR(0)="D^::EP",DIR("A")="Enter beginning ENDING DT OF SERVICE Date" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
  1. I $D(DIRUT) G XIT
  1. S BMCBD=Y
  1. ED ;get ending END OF SERVICE date
  1. W ! S DIR(0)="D^"_BMCBD_"::EP",DIR("A")="Enter ending ENDING OF SERVICE 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. OUTPUT ;Print Output Summary or Detail
  1. S BMCOUTP=""
  1. S DIR(0)="S^D:Detailed Patient Listing;S:Summary Report Listing",DIR("A")="Select Report Printing",DIR("B")="D" K DA D ^DIR K DIR
  1. I $D(DIRUT) G XIT
  1. S BMCOUTP=Y
  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) XIT
  1. I $G(BMCOPT)="B" D BROWSE,XIT Q
  1. S XBRP="^BMCRR18P",XBRC="^BMCRR181",XBRX="XIT^BMCRR18",XBNS="BMC"
  1. D ^XBDBQUE
  1. D XIT
  1. Q
  1. BROWSE ;
  1. S XBRP="VIEWR^XBLM(""^BMCRR18P"")"
  1. S XBRC="^BMCRR181",XBRX="XIT^BMCRR18",XBIOP=0 D ^XBDBQUE
  1. Q
  1. XIT ;EP - CALLED FROM BMCRR18
  1. 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,BMCOUTP
  1. K BMCRNUMB
  1. D KILL^AUPNPAT
  1. K %,C,D0,DA,DFN,DI,DIC,DIQ,DIR,DIRUT,DIWF,DIWL,DIWR,DR,DTOUT,F,I,X,Y,Z
  1. Q