[613] | 1 | USRUM ; SLC/JER - User class membership by User library ;10/20/1998
|
---|
| 2 | ;;1.0;AUTHORIZATION/SUBSCRIPTION;**3,10**;Jun 20, 1997
|
---|
| 3 | UPDATE(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 class 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(USRCLNM,USRREC,"CLASS")
|
---|
| 15 | S USRREC=$$SETFLD^VALM1(USREFF,USRREC,"EFFECTIVE")
|
---|
| 16 | S USRREC=$$SETFLD^VALM1(USREXP,USRREC,"EXPIRES")
|
---|
| 17 | S ^TMP("USRUSER",$J,+ITEM,0)=USRREC
|
---|
| 18 | D RESTORE^VALM10(+ITEM),CNTRL^VALM10(+ITEM,1,VALM("RM"),IOINHI,IOINORM)
|
---|
| 19 | Q
|
---|