source: FOIAVistA/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCUCV1.m@ 635

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

initial load of FOIAVistA 6/30/08 version

File size: 2.0 KB
Line 
1PRCUCV1 ;WISC@ALTOONA/CTB-CONVERSION OF ALL IFCAP SIGNATURE CODES ; 06/07/93 12:00 PM
2V ;;5.0;IFCAP;;4/21/95
3 N COUNT,RANGE,DIR,OPTION,TYPE
4 S X=" This conversion will convert ALL signature codes in all IFCAP files to be converted to a new format."
5 D MSG^PRCFQ
6 ;build list of conversions
7 ;421.5
8 S COUNT=0
9 S X(20)=$P(^PRSN(20,0),"^",4),COUNT=COUNT+X(20)
10 S X(421.5)=$P(^PRCF(421.5,0),"^",4),COUNT=COUNT+X(421.5)
11 S X(421.2)=$P(^PRCF(421.2,0),"^",4),COUNT=COUNT+X(421.2)
12 S X(421)=$P(^PRCF(421,0),"^",4),COUNT=COUNT+X(421)
13 S X(443)=$P(^PRC(443,0),"^",4),COUNT=COUNT+X(443)
14 S X(423)=$P(^PRCF(423,0),"^",4),COUNT=COUNT+X(423)
15 ;S X(443.6)=$P(^PRC(443.6,0),"^",4),COUNT=COUNT+X(443.6)
16 S X(442)=$P(^PRC(442,0),"^",4)*12,COUNT=COUNT+X(442)
17 S X(442.9)=$P(^PRC(442.9,0),"^",4),COUNT=COUNT+X(442.9)
18 S X(410)=$P(^PRCS(410,0),"^",4)*5,COUNT=COUNT+X(410)
19 S X=0 F S X=$O(X(X)) Q:'X W !,"FILE: ",X," - ",?16 S Y=$FN(X(X),","),Y=" "_Y,Y=$E(Y,$L(Y)-11,$L(Y)) W Y," Records - estimated"
20 W !,?16 S Y=$FN(COUNT,","),Y=" "_Y,Y=$E(Y,$L(Y)-11,$L(Y)) W Y," Estimated individual conversions."
21 D ENCON^PRCFQ W !!
22A ;S DIR(0)="SA^1:All at once;2:Do not convert at this time",DIR("?")="^D SETOFCDS^PRCUCV2",DIR("A")="Enter Type Requested: " D ^DIR
23 ;I $G(DIRUT)_$G(DUOUT)_$G(DTOUT)_$G(DIROUT) K DIRUT,DUOUT,DTOUT,DIROUT S X=" <No further action taken>" D MSG^PRCFQ QUIT
24 S Y=1
25 S TYPE=+Y
26 ;S %A="ARE YOU SURE",%=2,%B="" D ^PRCFYN G A:%=2 I %<0 S X=" <No further action taken>" D MSG^PRCFQ QUIT
27 ;I TYPE=2 G ^PRCUX0
28 I TYPE=1 S %ZIS="Q" D ^%ZIS I POP QUIT
29 I $G(IO("Q"))=1 D QUIT
30 . S ZTDESC="IFCAP CONVERSION",ZTRTN="^PRCUCV3" D ^%ZTLOAD
31 . W !,"IFCAP CONVERSION IS SUBMITTED TO THE TASK MANAGE WITH TASK NUMBER ",ZTSK
32 . QUIT
33 D ^PRCUCV3
34 QUIT
35 S X="To meet the criterion outlined by the VA Inspector General, you must run this conversion in the near future."
36 W !! D MSG^PRCFQ
37 S X="Failure to run at this time will NOT affect the operation of IFCAP in any way." W ! D MSG^PRCFQ
Note: See TracBrowser for help on using the repository browser.