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

BSDAMR.m

Go to the documentation of this file.
  1. BSDAMR ; IHS/ANMC/LJF - APPT MGT REPORTS ;
  1. ;;5.3;PIMS;**1007,1011**;APR 26, 2002
  1. ;
  1. ;cmi/anch/maw 2/6/2007 PATCH 1007 items 1007.18, 1007.19 added report selection and modified help number
  1. ;cmi/anch/maw 2/6/2007 PATCH 1007 item 1007.18, this report is in BSDAMR3 with help at AM4^BSDH021
  1. ;cmi/anch/maw 2/6/2007 PATCH 1007 item 1007.19, this report is in BSDAMR4 with help at AM5^BSDH021
  1. ;cmi/anch/maw 2/6/2007 PATCH 1007 item 1007.18 added CHKKEY for security key check
  1. ;cmi/flag/maw 10/29/2009 PATCH 1011 add ask of taxonomy
  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. ;cmi/anch/maw 2/6/2007 PATCH 1007 item 1007.18, modified following line to change help to 6
  1. ;Q:'Y I Y=4 S XQH="BSDSM AMR OVERVIEW" D EN^XQH G ASK ;cmi/anch/maw 2/6/2007 orig line
  1. Q:'Y
  1. I Y=6 S XQH="BSDSM AMR OVERVIEW" D EN^XQH G ASK
  1. I Y=4,'$$CHKKEY(DUZ,"SDZ ELIG REPORT") W !,"You do not hold the security key SDZ ELIG REPORT key" G ASK ;cmi/anch/maw 2/6/2007 added patch 1007 item 1007.18
  1. S RTN=$P($T(REPORTS+Y),";;",3),INTRO=$P($T(REPORTS+Y),";;",4)
  1. S BSDTAXYN=1 ;cmi/maw 10/29/2009 PATCH 1011 for asking taxonomy
  1. D @INTRO,@RTN
  1. K BSDTAXYN ;cmi/maw 10/29/2009 PATCH 1011 remove ask of taxonomy
  1. D ^XBCLS,AMR^BSDH02,ASK Q
  1. ;
  1. CHKKEY(USR,KEY) ;-- check to see if the user holds a security key
  1. ;cmi/anch/maw 2/6/2007 added to check for holder of key PATCH 1007 item 1007.18
  1. N KEYI
  1. S KEYI=$O(^DIC(19.1,"B",KEY,0))
  1. I 'KEYI Q 0
  1. I '$O(^VA(200,DUZ,51,"B",KEYI,0)) Q 0
  1. 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. REPORTS ;;
  1. ;;Appointment Management Statistics;;EN^SDAMO;;AM1^BSDH021
  1. ;;Appointments Requiring Action;;^BSDAMR2;;AM2^BSDH021
  1. ;;Uncoded Checked-in Appointments;;^APCDDVL1;;AM3^BSDH021
  1. ;;Eligibility Appointment List;;^BSDAMR3;;AM4^BSDH021
  1. ;;Cancelled Appointment Listing;;^BSDAMR4;;AM5^BSDH021
  1. ;;On-line Help (Report Descriptions);;