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

ACKQDWB.m

Go to the documentation of this file.
  1. ACKQDWB ;AUG/JLTP BIR/PTD HCIOFO/BH-Compile A&SP Capitation Data - CONTINUED ; [ 12/05/95 10:33 ]
  1. ;;3.0;QUASAR;;Feb 11, 2000
  1. ;Per VHA Directive 10-93-142, this routine SHOULD NOT be modified.
  1. ;
  1. BUILD ; Capitation report has been generated.
  1. N XMDUZ,XMDUN,XMSUB,XMTEXT,XMY,TXT,X
  1. S (XMDUZ,XMDUN)="QUASAR",XMTEXT="TXT(",XMSUB="A&SP CAPITATION DATA GENERATED"
  1. S TXT(1,0)="A&SP capitation data have been generated for "_ACKMO_"."
  1. S TXT(2,0)=" "
  1. D DIV1 ; Display Divisions
  1. S TXT(I,0)=""
  1. S I=I+1,TXT(I,0)=" Start Date/Time : "_ACKXSDTE_" at "_ACKXST
  1. S I=I+1,TXT(I,0)=" Finish Date/Time: "_ACKXEDTE_" at "_ACKXFT
  1. S I=I+1,TXT(I,0)=""
  1. S I=I+1,TXT(I,0)="You can use the Print A&SP Capitation Report option to check the"
  1. S I=I+1,TXT(I,0)="data for accuracy.",I=I+1,TXT(I,0)=""
  1. D STAFF,^XMD
  1. Q
  1. ;
  1. ABORT(ACKST) ; Abort bulletin. ACKST = reason for abort.
  1. N XMDUZ,XMDUN,XMSUB,XMTEXT,XMY,TXT,X,ACKK1
  1. S ACKK1=""
  1. S (XMDUZ,XMDUN)="QUASAR",XMTEXT="TXT(",XMSUB="A&SP CAPITATION REPORT ABORTED!"
  1. ;
  1. S TXT(1,0)=" **** WARNING ****"
  1. S TXT(2,0)=" The monthly A&SP Capitation generation has terminated abnormally."
  1. ;
  1. D DIV ; Display Divisions with errors
  1. ;
  1. S TXT(I,0)="Reason: "_$P(ACKST,U,3),TXT(I+1,0)=" "
  1. S TXT(I+1,0)=" Please inform your IRM Service. Your Capitation Report"
  1. S TXT(I+1,0)="for the month can not be printed until this problem is resolved."
  1. S TXT(I+1,0)=" "
  1. D STAFF,^XMD
  1. Q
  1. ;
  1. STAFF ;Create XMY( array using active supervisors from the A&SP STAFF file (#509850.3).
  1. N ST S ST=0
  1. F S ST=$O(^ACK(509850.3,ST)) Q:'ST I $P(^ACK(509850.3,ST,0),U,6),'$P(^(0),U,4) S XMY($$CONVERT1^ACKQUTL4(ST))=""
  1. I $G(ACKMAN) S XMY(ACKDUZ)=""
  1. I '$O(XMY(0)) S XMY(.5)=""
  1. Q
  1. ;
  1. DIV ; Loops through the Entered Divisions and displays the ones appropriate
  1. S I=3
  1. S ACKK1=""
  1. F S ACKK1=$O(ACKDIV(ACKK1)) Q:ACKK1="" D
  1. . S DIVIEN=$P(ACKDIV(ACKK1),U,1)
  1. . I '$D(^ACK(509850.7,ACKDA,5,DIVIEN)) Q
  1. . I '$P(^ACK(509850.7,ACKDA,5,DIVIEN,0),U,2),'$P(^ACK(509850.7,ACKDA,5,DIVIEN,0),U,3),'$P(^ACK(509850.7,ACKDA,5,DIVIEN,0),U,4) Q
  1. . I $E(ACKST)=2,$P(^ACK(509850.7,ACKDA,5,DIVIEN,0),U,4) D Q
  1. . . D DIVLN S I=I+1
  1. . I $E(ACKST)=1,'$P(^ACK(509850.7,ACKDA,5,DIVIEN,0),U,4) D Q
  1. . . D DIVLN S I=I+1
  1. Q
  1. ;
  1. DIV1 ; Loops through all divisions and displays them
  1. S ACKK1="",I=3
  1. F S ACKK1=$O(ACKDIV(ACKK1)) Q:ACKK1="" D DIVLN S I=I+1
  1. Q
  1. ;
  1. DIVLN I I=3 S TXT(3,0)=" For the following "_$S($O(ACKDIV(ACKK1))'="":"Divisions",1:"Division")_" : "_$P(ACKDIV(ACKK1),U,3) Q
  1. S TXT(I,0)=" "_$P(ACKDIV(ACKK1),U,3)
  1. Q
  1. ;