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

RCTCSPD4.m

Go to the documentation of this file.
  1. RCTCSPD4 ;ALB/LMH - CROSS-SERVICING NON-FINANCIAL TRANSACTIONS ;03/15/14 3:34 PM
  1. ;;4.5;Accounts Receivable;**315,339,350,366,400**;Mar 20, 1995;Build 13
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. Q
  1. ;
  1. STOP ; CS stop placed non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,33,DUZ,"CS STOP PLACED")
  1. Q
  1. ;
  1. DELSTOP ; CS delete stop non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,36,DUZ,"CS STOP DELETED")
  1. Q
  1. ;
  1. RCLL ; Recall from Cross-Servicing non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,34,DUZ,"CS BILL RECALL")
  1. Q
  1. ;
  1. DELRCLL ; Cross-Servicing Delete Bill Recall non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,37,DUZ,"CS DEL BILL RECALL")
  1. Q
  1. ;
  1. NEWDEBTR ; CS add new debtor non-financial tx PRCA*4.5*400
  1. ; Called by RCTCSPD
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,48,DUZ,"CS NEW DBTR NEW BILL")
  1. Q
  1. ;
  1. RCRSD ; CS Debtor Recall non-financial tx PRCA*4.5*400
  1. ; Set this debtor for Recall from Cross-Servicing
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,35,DUZ,"CS DEBTOR RECALL")
  1. Q
  1. ;
  1. DELSETD(BILL) ; CS Delete Debtor Recall non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,38,DUZ,"CS DEL DEBTOR RECALL")
  1. Q
  1. ;
  1. DEBTOR ; CS New Bill Existing Debtor non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,39,DUZ,"CS DEBTOR NEW BILL")
  1. Q
  1. ;
  1. CSCASE ; Add Case Info non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,47,DUZ,"CS ADD CASE INFO")
  1. Q
  1. ;
  1. DELSETC ; Cross-Servicing delete case recall non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,46,DUZ,"CS DEL CASE RECALL")
  1. Q
  1. ;
  1. DECADJ ; non-financial decrease adjustment transaction for 5b cross-servicing record PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,49,DUZ,"CS DECREASE ADJ")
  1. Q
  1. ;
  1. DECADJ0 ; decrease adjustment transaction deletes cs date PRCA*4.5*400
  1. ; 5B tx takes bal. of bill to 0
  1. ; if node 7 balances = 0. Called by RCTCSPD
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,40,DUZ,"CS DECR ADJ NOT APP")
  1. D CHKS
  1. Q
  1. ;
  1. RCRSC ; Cross-Servicing case recall non-financial tx PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ
  1. S DUZ=.5,DUZ(0)="@",DUZ(2)=1 ; Server has no DUZ, use Postmaster
  1. D FILETRN^RCTCSPD5(BILL,45,DUZ,"CS CASE RECALL")
  1. Q
  1. ;
  1. RRREQ ; CS RE-REFER BILL REQUEST non-financial tx PRCA*4.5*400
  1. ; Request a referral, called from RRSETB^RCTCSPU
  1. ; INPUT: BILL,REASON,COMMENT
  1. N CMNT
  1. Q:$G(REASON)=""
  1. S CMNT(1)=$S(REASON="R":"Recall in error",REASON="T":"Treasury reversal",REASON="D":"Defaulted RPP",REASON="O":"Other: "_$G(COMMENT),1:" ")
  1. D FILETRN^RCTCSPD5(BILL,63,DUZ,"CS RE-REFER BILL REQUEST",.CMNT)
  1. Q
  1. ;
  1. RRCAN ; CS RE-REFER BILL CANCEL non-financial tx PRCA*4.5*400
  1. ; Cancel a referral request, called from RRSETB^RCTCSPU
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. D FILETRN^RCTCSPD5(BILL,65,DUZ,"CS RE-REFER BILL CANCEL")
  1. Q
  1. RRSEND ; CS New Bill Existing Debtor non-financial tx ; PRCA*4.5*400
  1. ;
  1. ; assumes that BILL variable is defined and contains bill number
  1. ;
  1. N DUZ,I
  1. S I=$O(^PRCA(430,BILL,15.5,99999),-1)
  1. I I'="" S DUZ=$P($G(^PRCA(430,BILL,15.5,I,0)),U,3)
  1. S:'$G(DUZ) DUZ=.5 ; Server has no DUZ, use Postmaster if can't find it
  1. S DUZ(0)="@",DUZ(2)=1
  1. D FILETRN^RCTCSPD5(BILL,64,DUZ,"CS DEBTOR RE-REFER BILL")
  1. Q
  1. ;
  1. CHKS ;Leave validation checks in place
  1. I $P($G(^PRCA(433,PRCAEN,5)),"^",2)=""!'$P(^PRCA(433,PRCAEN,1),"^") S PRCACOMM="TRANSACTION INCOMPLETE" D DELETE^PRCAWO1 K PRCACOMM Q
  1. I '$D(PRCAD("DELETE")) S RCASK=1 D TRANUP^PRCAUTL,UPPRIN^PRCADJ
  1. I $P($G(^RCD(340,+$P(^PRCA(430,PRCABN,0),"^",9),0)),"^")[";DPT(" D
  1. .;Ensure comment does not appear on patient statement
  1. .S $P(^PRCA(433,PRCAEN,0),"^",10)=1
  1. Q
  1. ; End of RCTCSPD4