source: WorldVistAEHR/trunk/r/ACCOUNTS_RECEIVABLE-PRCA-PRY-RC/RCMSITE.m@ 841

Last change on this file since 841 was 623, checked in by George Lilly, 15 years ago

revised back to 6/30/08 version

File size: 1.9 KB
Line 
1RCMSITE ;ALB/RRG - EDIT SITE PARAMETERS ;03/12/02
2V ;;4.5;Accounts Receivable;**173,236**;Mar 20, 1995
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4BEG ;Start editing site paramters
5 N DIC,DLAYGO,X,Y,DIE,DA,DR
6 S DIC="^RC(342,",DIC(0)="QEAML",DLAYGO=342 D ^DIC I Y>0 S DA=+Y,DR=.01,DIE="^RC(342," D ^DIE
7 Q
8ALC ;Edit ALC parameter
9 NEW DIC,DR,DA,Y
10 S DIE="^RC(342,",DA=1,DR=".07;31" D ^DIE
11 Q
12IRS ;Edit IRS OFFSET site parameters
13 NEW DIE,DR,DA,Y
14 I '$D(^RC(342,1,0)) D BEG G:'$D(^RC(342,1,0)) Q
15 S DA=1,DR="[RCMS IRS]",DIE="^RC(342," D ^DIE
16Q Q
17STAT ;Edit NOTIFICATION site parameters
18 NEW DIE,DR,DA,Y
19 I '$D(^RC(342,1,0)) D BEG G:'$D(^RC(342,1,0)) Q1
20 S DA=1,DR="[RCMS NOTIFICATION]",DIE="^RC(342," D ^DIE
21Q1 Q
22GRP ;Edit AR Group Parameters
23 NEW DIE,DR,DA,Y
24 F W ! S DIC(0)="QEAML",DIC="^RC(342.1,",DLAYGO=342.1 D ^DIC K DIC G:Y<0 Q3 S DA=+Y,DIE="^RC(342.1,",DR=$P($G(^RC(342.2,+$P(^RC(342.1,+Y,0),"^",2),1)),"^") I DR]"" D ^DIE
25Q3 Q
26DEA ;Deactive an AR group
27 NEW DIE,DIC,DA,DR,Y,GRP
28 S DIC="^RC(342.1,",DIC(0)="QEAM",DIC("S")="I $P(^(0),""^"",2)'=7" D ^DIC Q:Y<0 S GRP=+Y
29 W ! S DIR("A")="Are you sure you want to Deactive Group '"_$P(^RC(342.1,GRP,0),"^")_"'",DIR(0)="Y",DIR("B")="NO" D ^DIR K DIR
30 I 'Y W !!,"*** NO ACTION TAKEN ***" Q
31 I Y S DIE="^RC(342.1,",DA=GRP,DR=".02////^S X=7" D ^DIE W !!,"*** Group Deactivated ***"
32 Q
33SITE() ;Return site number
34 Q +$G(^DIC(4,+$P($G(^RC(342,1,0)),"^"),99))
35INT ;Print Inter/Admin/Pen effective report
36 NEW DIC,BY,FR,TO,FLDS,L
37 S DIC="^RC(342,",BY=.01,(FR,TO)="",FLDS="[RCMS INT/ADM/PEN]",L=0 D EN1^DIP
38 Q
39UPINT ;Update Rate site parameters
40 NEW DIE,DR,DA,Y,IOP
41 S IOP=ION D INT
42 I '$D(^RC(342,1,0)) D BEG G:'$D(^RC(342,1,0)) Q4
43 F W ! S DA=1,DR="[RCMS RATES]",DIE="^RC(342," D ^DIE Q:$D(Y)
44Q4 Q
45 ;
46EDILOCK ;Update EDI Lockbox site parameters
47 N DIE,DR,DA,Y
48 I '$D(^RC(342,1,0)) D BEG G:'$D(^RC(342,1,0)) Q5
49 S DA=1,DR="[RCMS EDI LOCKBOX]",DIE="^RC(342," D ^DIE
50Q5 Q
51 ;
Note: See TracBrowser for help on using the repository browser.