source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFACR.m@ 1783

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

initial load of FOIAVistA 6/30/08 version

File size: 2.8 KB
Line 
1PRCFACR ;WISC/CTB/CLH-RELEASE CODE SHEETS TO AUSTIN ;4/30/93 3:04 PM
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4 S PRCFASYS="CLM"
5SE W !,"This option will release code sheets to the VADATS system for transmission",!,"to the Austin DPC. You will have the option of releasing individual batches",!,"or all batches within a certain Transmission Number."
6 S PRCF("X")="AS" D ^PRCFSITE G:'% OUT
7 D NOW^%DTC S PRCFKEY=%_"-"_DUZ
8A W !!,"Do you wish to release by Batch or Transmission number? (B/T) T//" R X:$S($D(DTIME):DTIME,1:60)
9 I '$T!(X["^") G OUT
10 I X=""!("Tt"[$E(X)) G T
11 I "Bb"[$E(X) G B
12 W !!,"If you respond with a 'B', you will be required to enter the full Batch Number",!,"of each Batch that you wish to release to Austin. A 'T', will cause",!,"ALL batches within the Transmission to be released automatically.",!! G A
13QUE I '$D(^PRCF(421.2,"AD",PRCFKEY)) W !!,"NO BATCHES SELECTED OPTION ABORTED",$C(7) G OUT
14 S ZTSAVE("PRCFRT")="",ZTSAVE("PRCFASYS")="",ZTSAVE("PRCFKEY")="",ZTRTN="^PRCFACR1",ZTDESC="TRANSMIT "_$S(PRCFASYS["LOG":"LOG",PRCFASYS["ISM":"ISM",1:"")_" CODE SHEETS" D ^PRCFQ G OUT
15B D ES G OUT:$D(FAIL)
16 S DIC("A")="Select Batch Number: ",PRCFRT=0
17B1 S DIC=421.2,DIC(0)="XAEMQZO",DIC("S")="S XXX=^(0) I $P(XXX,U,4)="""",$P(XXX,U,3)=""B"",PRCFASYS[$P(XXX,""-"",2),+XXX=PRC(""SITE"")"
18 D ^DIC K DIC,XXX G:Y<0&('$D(POK)) OUT G:Y<0 QUE
19 S PBAT=$P(Y,U,2),PBATN=+Y S $P(^PRCF(421.2,PBATN,0),"^",15)=PRCFKEY,^PRCF(421.2,"AD",PRCFKEY,PBATN)=""
20 S POK="",DIC("A")="Select Next Batch Number: " G B1
21T D ES G OUT:$D(FAIL) K POK
22 S DIC("A")="Enter Transmission Number: ",PRCFRT=0
23T1 S DIC=421.2,DIC(0)="XAMEQZO",DIC("S")="S XXX=^(0) I $P(XXX,U,4)="""",$E($P(XXX,U,3),1)=""T"",PRCFASYS[$P(XXX,""-"",2),+XXX=PRC(""SITE"")"
24 D ^DIC K DIC,XXX G:Y<0&('$D(POK)) OUT G:Y<0 QUE
25 S PTR=$P(Y,"^",2),PTRN=+Y
26 S ^PRCF(421.2,"AD",PRCFKEY,PTRN)="",$P(^PRCF(421.2,PTRN,0),"^",15)=PRCFKEY
27 S K=0 F I=1:1 S K=$O(^PRCF(421.2,PTRN,1,K)) Q:+K=0 S PBAT=^(K,0) W !,"Processing Batch # ",PBAT D T3
28 S POK="",DIC("A")="Select Next Transmission Number: " G T1
29T3 S:$D(^PRCF(421.2,"B",PBAT)) PBATN=$O(^PRCF(421.2,"B",PBAT,0))
30 I $P(^PRCF(421.2,PBATN,0),"^",4)="" S $P(^(0),"^",15)=PRCFKEY,^PRCF(421.2,"AD",PRCFKEY,PBATN)="" Q
31 S X="Batch "_PBAT_" has already been released/scheduled for release. No action has been taken on this batch.*" D MSG^PRCFQ
32 Q
33OUT K %,N,I,%DT,%H,%Y,DIC,DIJ,ER,A,B,C,DQTIME,FAIL,POP,POK,PTR,PTRN,PBAT,PBATN,PFLAG,PRCFRT,X,X1,XMDUZ,XMKK,XMLOCK,XMR,XMSUB,XMT,XMTEXT,IOX,IOY,XMZ,Y Q
34ES ;
35ES1 N MESSAGE S MESSAGE=""
36 D ESIG^PRCUESIG(DUZ,.MESSAGE)
37 ;S ^ZZTOMF($H,"TOM9.5",$J,DT,0)="TOM NEEL TESTING - DVA"_U_DUZ_U_"YOU HIT ES1^PRCFACR AND DID ESIG^PRCUESIG"_U_"MESSAGE = "_MESSAGE_U
38 G:(MESSAGE=0)!(MESSAGE=-3) FAIL
39 G:(MESSAGE=-1)!(MESSAGE=-2) FAIL1
40 Q
41FAIL S FAIL="" W !,$C(7)," SIGNATURE CODE FAILURE " R X:3 Q
42FAIL1 S FAIL="" Q
Note: See TracBrowser for help on using the repository browser.