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

BSDWKR.m

Go to the documentation of this file.
  1. BSDWKR ; IHS/ANMC/LJF - WORKLOAD/STATS REPORTS ; [ 08/20/2004 11:58 AM ]
  1. ;;5.3;PIMS;**1001,1005,1007,1011,1012,1013**;MAY 28, 2004
  1. ;IHS/ITSC/WAR 05/03/2004 PATCH 1001 added back in v5.0 report
  1. ;IHS/OIT/LJF 04/12/2006 PATCH 1005 changed intro call to v5.3 routine
  1. ;cmi/anch/maw 2/20/2007 PATCH 1007 item 1007.24 added new report for Turn Around Time (TAT)
  1. ;cmi/anch/maw 2/20/2007 PATCH 1007 item 1007.25 added new report to show # of chart requests and RS printed by month
  1. ;cmi/flag/maw 6/02/2010 PATCH 1012 RQMT147 Advanced Access Report
  1. ;
  1. ASK ; -- ask user to choose report
  1. NEW BSDA,I,NAME,X,Y,RTN,INTRO,POP,DIRUT
  1. F I=1:1 S NAME=$P($T(REPORTS+I),";;",2) Q:NAME="" D
  1. . S BSDA(I)=$$SP(10)_$J(I,2)_". "_NAME
  1. S BSDA(I)="" ;extra line for readability
  1. S Y=$$READ^BDGF("NO^1:"_(I-1),$$SP(10)_"Select REPORT","","","",.BSDA)
  1. ;IHS/ITSC/WAR 5/3/2004 PATCH #1001 allowed for another entry, see line tag REPORTS
  1. ;Q:'Y I Y=5 S XQH="BSDSM WSR OVERVIEW" D EN^XQH G ASK
  1. Q:'Y I Y=9 S XQH="BSDSM WSR OVERVIEW" D EN^XQH G ASK
  1. S BSDTAXYN=1 ;cmi/maw PATCH 1011
  1. S RTN=$P($T(REPORTS+Y),";;",3),INTRO=$P($T(REPORTS+Y),";;",4)
  1. D @INTRO,@RTN
  1. K BSDTAXYN
  1. D ^XBCLS,WSR^BSDH02,ASK Q
  1. ;
  1. ;
  1. PAD(D,L) ;EP -- SUBRTN to pad length of data
  1. ; -- D=data L=length
  1. Q $E(D_$$REPEAT^XLFSTR(" ",L),1,L)
  1. ;
  1. SP(N) ; -- SUBRTN to pad N number of spaces
  1. Q $$PAD(" ",N)
  1. ;
  1. ;IHS/ITSC/WAR 5/3/2004 P #1001 Added 'Clinic Workload Report'
  1. ;IHS/OIT/LJF 04/12/2006 PATCH 1005 changed WR^ASDH02 to WK5^BSDH021
  1. ;cmi/anch/maw 2/27/2007 PATCH 1007 added Turn Around Time Report and Routing Slip/Chart Request Report
  1. REPORTS ;;
  1. ;;Statistics by Type of Appointment;;^BSDWKR1;;WK1^BSDH021
  1. ;;Scheduled vs. Patients Seen;;^BSDWKR4;;WK4^BSDH021
  1. ;;Detailed Appointment Listing;;^BSDWKR2;;WK2^BSDH021
  1. ;;Monthly Workload Comparisons;;^BSDWKR3;;WK3^BSDH021
  1. ;;Clinic Workload Report;;^SDCWL;;WK5^BSDH021
  1. ;;Turn Around Time Report;;^BSDWKR6;;WK6^BSDH021
  1. ;;Routing Slip/Chart Request Report;;^BSDWKR7;;WK7^BSDH021
  1. ;;Advanced Access Report;;^BSDWKR8;;WK8^BSDH021
  1. ;;On-line Help (Report Descriptions);;