source: FOIAVistA/trunk/r/AUTHORIZATION_SUBSCRIPTION-USR/USRM.m@ 761

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

initial load of FOIAVistA 6/30/08 version

File size: 919 bytes
Line 
1USRM ; SLC/JER - User class membership library ;10/16/1998
2 ;;1.0;AUTHORIZATION/SUBSCRIPTION;**3,10**;Jun 20, 1997
3UPDATE(ITEM) ; Updates list following edit
4 N USRDA,USRDUZ,USRSIGNM,USREFF,USREXP,USRMEM,USRREC,USRCLNM
5 S USRDA=$P(ITEM,U,2)
6 S USRMEM=$G(^USR(8930.3,+USRDA,0))
7 ;If membership was removed, restore and quit.
8 I USRMEM="" D RESTORE^VALM10(+ITEM) Q
9 S USRDUZ=+USRMEM,USRSIGNM=$$SIGNAME^USRLS(+USRDUZ)
10 S USRCLNM=$$CLNAME^USRLM(+$P(USRMEM,U,2))
11 S USREFF=$$DATE^USRLS(+$P(USRMEM,U,3),"MM/DD/YY")
12 S USREXP=$$DATE^USRLS(+$P(USRMEM,U,4),"MM/DD/YY")
13 S USRREC=$$SETFLD^VALM1(+ITEM,"","NUMBER")
14 S USRREC=$$SETFLD^VALM1(USRSIGNM,USRREC,"MEMBER")
15 S USRREC=$$SETFLD^VALM1(USREFF,USRREC,"EFFECTIVE")
16 S USRREC=$$SETFLD^VALM1(USREXP,USRREC,"EXPIRES")
17 S USRREC=$$SETFLD^VALM1(USRCLNM,USRREC,"CLASS")
18 S ^TMP("USRMMBR",$J,+ITEM,0)=USRREC
19 D RESTORE^VALM10(+ITEM),CNTRL^VALM10(+ITEM,1,VALM("RM"),IOINHI,IOINORM)
20 Q
Note: See TracBrowser for help on using the repository browser.