source: FOIAVistA/trunk/r/EVENT_CAPTURE-EC--ECT--ECX/ECBEN2B.m@ 1713

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

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1ECBEN2B ;BIR/MAM,JPW-New Batch Entry (cont'd.) ;1 May 96
2 ;;2.0; EVENT CAPTURE ;**4,5,10,13,72**;8 May 96
3EN ;entry point
4 S CNT=0
5STUFF ; set up info to stuff
6 S ECDUZ=DUZ
7 W @IOF,!,"You have completed "_COUNT_" procedure"_$S(COUNT=1:"",1:"s")_" for the patients selected.",!!,"I will now enter these procedures in the file. OK ? YES// " R ECYN:DTIME I '$T!(ECYN="^") S ECOUT=1 Q
8 S ECYN=$E(ECYN) S:ECYN="" ECYN="Y"
9 I "YyNn"'[ECYN W !!,"Enter <RET> to create the entries in the file. If you have made a mistake",!,"and do not wish to continue, enter NO.",!!,"Press <RET> to continue " R X:DTIME G STUFF
10 I "Nn"[ECYN D NO I "Yy"[ECYN S ECOUT=1 Q
11 W !!,"I am now sending these procedures to background for filing."
12 K DIR W !! S DIR(0)="E",DIR("A")="Press <RET> to continue" D ^DIR K DIR
13 S ECA=ECDT_"^"_ECL_"^"_ECS_"^"_ECM_"^"_ECD_"^"_ECPCE
14 S ECOUT=2
15 S (ZTSAVE("ECPT*"),ZTSAVE("ECA"),ZTSAVE("ECEC*"),ZTSAVE("ECDUZ"),ZTSAVE("ECELPT*"),ZTSAVE("ECPRVARY*"))=""
16 S ZTIO="",ZTDTH=$H,ZTDESC="BATCH ENTRY EVENT CAPTURE PROCEDURES",ZTRTN="CRAM^ECBENF" D ^%ZTLOAD,HOME^%ZIS K ECEC Q
17 Q
18NO ; do not stuff
19 W !!,"Are you sure that you want to quit without entering any of the procedures",!,"that you have created for the patients selected ? NO// " R ECYN:DTIME I '$T!(ECYN="^") S ECOUT=1,ECYN="Y" Q
20 S ECYN=$E(ECYN) S:ECYN="" ECYN="N" I "YyNn"'[ECYN W !!,"If you do not want to enter the procedures selected, enter YES. If the",!,"procedures selected should be entered for the patients chosen, enter <RET>." G NO
21 Q
Note: See TracBrowser for help on using the repository browser.