close Warning: Can't use blame annotator:
svn blame failed on WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDF12.m: 'GenericSWIGWrapper' object has no attribute '_wrap'

source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDF12.m@ 1073

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

initial load of WorldVistAEHR

File size: 1.6 KB
RevLine 
1IBDF12 ;ALB/CJM - ENCOUNTER FORM - ENTRY FOR EDITING TOOLKIT FORMS ;JUN 16,1992
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
3 ;
4 ;*** NOTE:
5 ;IBTKFORM=1 while editing a tk form
6 ;IBTKBLK=0 while editing blocks on a tk form - because they are not tk blocks
7FORMLIST ;
8 N IBTKFORM,IBTKBLK,IBDEVICE,IBAPI
9 S IBTKFORM=1,IBTKBLK=0
10 N IBFASTXT ;set to 1 for fast exit from system
11 S IBFASTXT=0
12 S IBAPI("INDEX")="D IDXFORMS^IBDF12"
13 S IBAPI("SELECT")="D SELECT^IBDF12"
14 D DEVICE^IBDFUA(1,.IBDEVICE)
15 K XQORS,VALMEVL
16 S IBCLINIC=""
17 D EN^VALM("IBDF TOOL KIT FORMS")
18 Q
19ONENTRY ;
20 D IDXFORMS
21 Q
22ONEXIT ;
23 D KILL^%ZISS
24 K ^TMP("IB",$J),^TMP("IBDF",$J),IBCLINIC,VALMY,IBQUIT,VALMBCK,X,Y,I,DA,D0
25 Q
26 ;
27IDXFORMS ;build an array of toolkit forms
28 N FORM,NODE
29 K @VALMAR
30 S VALMCNT=0
31 S FORM=0 F S FORM=$O(^IBE(357,"C",1,FORM)) Q:'FORM S NODE=$G(^IBE(357,FORM,0)) I +$P(NODE,"^",7),$P(NODE,"^")'="TOOL KIT",$P(NODE,"^")'="WORKCOPY" D ENTRY
32 Q
33ENTRY ;adds an entry to the array
34 S VALMCNT=VALMCNT+1,@VALMAR@(VALMCNT,0)=$J(VALMCNT,3)_" "_$$PADRIGHT^IBDFU($P(NODE,"^",1),30)_" "_$E($P(NODE,"^",3),1,80)
35 S @VALMAR@("IDX",VALMCNT,VALMCNT)=FORM D FLDCTRL^VALM10(VALMCNT) ;set video for ID column
36 S @VALMAR@("IDX",VALMCNT,VALMCNT)=FORM_"^"
37 Q
38HDR ;
39 S VALMHDR(1)="TOOLKIT FORMS"
40 Q
41DELFORM ;allows user to select a form, then deletes it
42 N SEL,FORM
43 D EN^VALM2($G(XQORNOD(0)),"S")
44 S SEL=$O(VALMY("")),FORM=""
45 I SEL S FORM=+$G(@VALMAR@("IDX",SEL,SEL))
46 I FORM D DELETE^IBDFU2C(FORM,357,1)
47 S VALMBCK="R"
48 D IDXFORMS
49 Q
50 ;
51SELECT ;
52 N SEL
53 S IBFORM=""
54 D EN^VALM2($G(XQORNOD(0)),"S")
55 S SEL=$O(VALMY(""))
56 I SEL S IBFORM=+$G(@VALMAR@("IDX",SEL,SEL))
57 Q
Note: See TracBrowser for help on using the repository browser.