source: FOIAVistA/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMPCPY.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: 683 bytes
Line 
1PXRMPCPY ; SLC/PJH - Copy Patient Lists. ;03/17/2003
2 ;;2.0;CLINICAL REMINDERS;;Feb 04, 2005
3 ;
4COPY ;Copy patient list - protocol PXRM PATIENT LIST COPY
5 ;
6 W IORESET
7 ;
8 ;Select Patient List to copy
9 N DIC,DUOUT,DTOUT,DIROUT,DIRUT,IENN,IENO,PLNAM,ROOT,SIEN,X,Y
10 S ROOT="^PXRM(810.4",DIC=ROOT,DIC(0)="AEQ"
11 S DIC("A")="Select the Patient List to Copy: "
12 ;
13 W ! D ^DIC I $D(DUOUT)!$D(DTOUT) Q
14 S IENO=$P(Y,U,1) I IENO=-1 Q
15 ;
16 ;Select list to copy to
17 D PLIST^PXRMLCR(.IENN) Q:'IENN
18 ;Load list into ^TMP
19 D LOAD^PXRMRULE("PXRMPCPY",IENN)
20 ;Update new patient list
21 D UPDLST^PXRMRULE("PXRMPCPY",IENN,"","")
22 ;
23 W !!,"Completed copy of '"_ORGNAME_"'"
24 W !,"into '"_NAME_"'",! H 2
25 Q
Note: See TracBrowser for help on using the repository browser.