source: FOIAVistA/trunk/r/INTERIM_MANAGEMENT_SUPPORT-ECT/ECTP17.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: 1.2 KB
Line 
1ECTP17 ;B'ham ISC/PTD - Patch Routine to Update the National Service File ; [ 05/16/95 1:25 PM ]
2V ;;1.05;INTERIM MANAGEMENT SUPPORT;**17**;
3 I '$O(^ECC(730,0)) W !,"National Service File - #730 does not exist on your system.",!,"This routine is unable to update the file!" G EXIT
4 W !!,"This routine will update your National Service File - #730.",!,"The following changes will be made:"
5 W !!,"DIETETICS will be changed to NUTRITION AND FOOD SERVICE.",!
6 S DIR(0)="Y",DIR("A")="Do you wish to continue",DIR("B")="NO" D ^DIR I Y'=1 W !!,"No change has been made to File 730!",! G EXIT
7 L +^ECC(730) W ! F JJ=1:1 S ECTSRV=$P($T(TEXT+JJ),";;",2) Q:ECTSRV="" D LOOP
8 L -^ECC(730) K ^ECC(730,"B") S DIK="^ECC(730,",DIK(1)=".01^B" D ENALL^DIK
9EXIT K DA,DIC,DIK,DIR,DTOUT,DUOUT,DIRUT,DIROUT,ECTDA,ECTNEW,ECTOLD,ECTSRV,JJ,X,Y
10 Q
11 ;
12LOOP ;Make change to individual file entry.
13 S ECTDA=$P(ECTSRV,"^"),ECTOLD=$P(ECTSRV,"^",2),ECTNEW=$P(ECTSRV,"^",3)
14 I $D(^ECC(730,ECTDA,0)),$P(^(0),"^")=ECTNEW Q ;Entry previously converted.
15 S $P(^ECC(730,ECTDA,0),"^")=ECTNEW W !,ECTOLD," has been changed to ",ECTNEW,"."
16 Q
17 ;
18TEXT ;Services to be updated: Internal DA#^Old Service Name^New Service Name
19 ;;12^DIETETICS^NUTRITION AND FOOD SERVICE
Note: See TracBrowser for help on using the repository browser.