Changeset 623 for WorldVistAEHR/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMPARS.m
- Timestamp:
- Dec 4, 2009, 12:11:15 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WorldVistAEHR/trunk/r/CLINICAL_REMINDERS-PXRM/PXRMPARS.m
r613 r623 1 PXRMPARS ; SLC/PJH - Edit PXRM(800 reminder parameters. ;04/02/2007 2 ;;2.0;CLINICAL REMINDERS;**4,6**;Feb 04, 2005;Build 123 3 ; 4 ;called by protocol PXRM EDIT SITE DISCLAIMER 5 ; 6 DISC(DA) ;Edit default disclaimer 7 Q:'$$LOCK(DA) 8 N DIC,DIE,DR,Y 9 ;Edit 10 S DIC="^PXRM(800,",DIE=800,DR=2 11 D ^DIE 12 D FORMAT^PXRMDISC 13 Q 14 ; 15 MH(DA) ;Edit MH default Question Value 16 Q:'$$LOCK(DA) 17 N DIC,DIE,DR,Y 18 ;Edit 19 S DIE="^PXRM(800,",DR=17 20 D ^DIE 21 Q 22 ; 23 ;called by protocol PXRM EDIT WEB SITE 24 ; 25 WEB(DA) ;Edit default web site 26 Q:'$$LOCK(DA) 27 ;Edit 28 N DTOUT,DUOUT 29 F D Q:$D(DUOUT)!$D(DTOUT) 30 .D WLIST,WSET,WURL(DA) 31 Q 32 ; 33 WLIST ;Display web sites 34 N FIRST,SUB,SUB1 35 S FIRST=1,SUB="" 36 F S SUB=$O(^PXRM(800,DA,1,"B",SUB)) Q:SUB="" D 37 .S SUB1=0 38 .F S SUB1=$O(^PXRM(800,DA,1,"B",SUB,SUB1)) Q:'SUB1 D 39 ..I FIRST S FIRST=0 W !!,"Choose from:",! 40 ..W ?8,$P($G(^PXRM(800,DA,1,SUB1,0)),U),! 41 I FIRST W !!,"No default web sites defined",! 42 Q 43 ; 44 WSET ;Set node if not defined 45 S:'$D(^PXRM(800,DA,1,0)) ^PXRM(800,DA,1,0)="^800.04" 46 Q 47 ; 48 WURL(IEN) ;Edit individual URL 49 N DA,DIC,DIE,DR,Y 50 S DA(1)=IEN 51 S DIC="^PXRM(800,"_IEN_",1," 52 S DIC(0)="QEAL" 53 S DIC("A")="Select URL: " 54 S DIC("P")="800.04" 55 D ^DIC I Y=-1 S DTOUT=1 Q 56 S DIE=DIC K DIC 57 S DA=+Y 58 ;Finding record fields 59 S DR=".01;.02;1" 60 ;Edit finding record 61 D ^DIE 62 I $D(Y) S DTOUT=1 Q 63 ;Check if deleted 64 I '$D(DA) Q 65 Q 66 ; 67 LOCK(DA) ;Lock the record 68 L +^PXRM(800,DA):0 I Q 1 69 E W !!,?5,"Another user is editing this file, try later" H 2 Q 0 70 ; 71 UNLOCK(DA) ;Unlock the record 72 L -^PXRM(800,DA) 73 Q 1 PXRMPARS ; SLC/PJH - Edit PXRM(800 reminder parameters. ;06/14/2005 2 ;;2.0;CLINICAL REMINDERS;**4**;Feb 04, 2005;Build 21 3 ; 4 ;called by protocol PXRM EDIT SITE DISCLAIMER 5 ; 6 DISC(DA) ;Edit default disclaimer 7 Q:'$$LOCK(DA) 8 N DIC,DIE,DR,Y 9 ;Edit 10 S DIC="^PXRM(800,",DIE=800,DR=2 11 D ^DIE 12 D FORMAT^PXRMDISC 13 Q 14 ; 15 ;called by protocol PXRM EDIT WEB SITE 16 ; 17 WEB(DA) ;Edit default web site 18 Q:'$$LOCK(DA) 19 ;Edit 20 N DTOUT,DUOUT 21 F D Q:$D(DUOUT)!$D(DTOUT) 22 .D WLIST,WSET,WURL(DA) 23 Q 24 ; 25 WLIST ;Display web sites 26 N FIRST,SUB,SUB1 27 S FIRST=1,SUB="" 28 F S SUB=$O(^PXRM(800,DA,1,"B",SUB)) Q:SUB="" D 29 .S SUB1=0 30 .F S SUB1=$O(^PXRM(800,DA,1,"B",SUB,SUB1)) Q:'SUB1 D 31 ..I FIRST S FIRST=0 W !!,"Choose from:",! 32 ..W ?8,$P($G(^PXRM(800,DA,1,SUB1,0)),U),! 33 I FIRST W !!,"No default web sites defined",! 34 Q 35 ; 36 WSET ;Set node if not defined 37 S:'$D(^PXRM(800,DA,1,0)) ^PXRM(800,DA,1,0)="^800.04" 38 Q 39 ; 40 WURL(IEN) ;Edit individual URL 41 N DA,DIC,DIE,DR,Y 42 S DA(1)=IEN 43 S DIC="^PXRM(800,"_IEN_",1," 44 S DIC(0)="QEAL" 45 S DIC("A")="Select URL: " 46 S DIC("P")="800.04" 47 D ^DIC I Y=-1 S DTOUT=1 Q 48 S DIE=DIC K DIC 49 S DA=+Y 50 ;Finding record fields 51 S DR=".01;.02;1" 52 ;Edit finding record 53 D ^DIE 54 I $D(Y) S DTOUT=1 Q 55 ;Check if deleted 56 I '$D(DA) Q 57 Q 58 ; 59 LOCK(DA) ;Lock the record 60 L +^PXRM(800,DA):0 I Q 1 61 E W !!,?5,"Another user is editing this file, try later" H 2 Q 0 62 ; 63 UNLOCK(DA) ;Unlock the record 64 L -^PXRM(800,DA) 65 Q
Note:
See TracChangeset
for help on using the changeset viewer.