source: WorldVistAEHR/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDF16.m@ 1608

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

initial load of WorldVistAEHR

File size: 3.0 KB
Line 
1IBDF16 ;ALB/CJM - ENCOUNTER FORM - (edit Package Interfaces, Marking Areas) ;Jul 23,1993
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
3 ;
4EDIT ;allows the user to create/edit/delete Package Interaces of type
5 ;OUTPUT or SELECTION
6 ;does not allow Package Interfaces that are part of the toolkit
7 N IBTYPE S IBTYPE=""
8 W @IOF
9 D WARNING,PAUSE^IBDFU5
10 W @IOF
11 D TYPE
12 D:IBTYPE INTRFACE
13 Q
14TYPE ;asks the user what type of interface he wants to edit
15 W !!,"OUTPUT interfaces are used to obtain data from other packages that will be",!,"displayed to DATA FIELDS."
16 W !!,"SELECTION interfaces are used to obtain data from other packages that will be",!,"displayed to SELECTION LISTS."
17 K DIR S DIR(0)="S^1:OUTPUT;2:SELECTION;"
18 S DIR("A")="SELECT THE TYPE OF PACKAGE INTERFACE TO EDIT"
19 S DIR("B")=1
20 D ^DIR K DIR
21 Q:$D(DIRUT)
22 Q:'Y
23 S IBTYPE=Y+1
24 Q
25INTRFACE ;edit package interface
26 ;IBTYPE=3 if type=selection interface
27 ;IBTYPE=2 if type=output interface
28 N REPORT,IBDELETE,IBNEW,INTRFACE,IBACTION,DLAYGO
29 I $G(IBTYPE)'=2,$G(IBTYPE)'=3 Q
30 S IBDELETE=1
31 K DIC S DIC=357.6,DIC(0)="AELMQ",DIC("S")="I $P($G(^(0)),U,6)="_IBTYPE_",'$P($G(^(0)),U,12)"
32 S D="E^D^B"
33 S DIC("DR")="06////"_IBTYPE
34 S DIC("A")="Select a PACKAGE INTERFACE: "
35 S DLAYGO=357.6
36 D MIX^DIC1 K DIC,D,DA
37 Q:+Y<0
38 S INTRFACE=+Y,IBNEW=$P(Y,"^",3)
39 S IBDELETE=$S(IBNEW:1,1:0)
40 S DA=INTRFACE
41 K DIE,DR S DIE=357.6,DR="[IBDF EDIT OUTPUT/SELECTION RTN]",DIE("NO^")="BACKOUTOK"
42 D ^DIE K DIE,DR,DA
43 I IBDELETE K DA S DIK="^IBE(357.6,",DA=INTRFACE D ^DIK K DIK,DA
44 Q
45LOOKUP ;additional help for the USER LOOKUP field
46 W !!,"You can enter a list of words with which to index this interface. You will",!,"then be able to look up this interface by entering any word on the list."
47 W !,"Each word should be at least 3 characters long, and words must be separated",!,"by a space.",!
48 Q
49WARNING ;warns the user to lookup in the technical doc how to write Package Interfaces
50 W !!,"You can write your own Package Interfaces to obtain data not available"
51 W !,"through the Toolkit. Before you do so, however, please consult the technical",!,"documentation for the guidelines that must be followed. In particular, you"
52 W !,"must know where the data should be placed and what format must be used.",!
53 Q
54MARKING ;allows the user to create/edit/delete marking areas not in the toolkit
55 N MARK,DLAYGO
56 W @IOF,!!!!!
57 W "You can create your own MARKING AREAS to supplement those that come with the",!,"toolkit. Marking areas are the areas on a selection list that the user",!,"marks to indicate selections from the list.",!!!!!
58 D PAUSE^IBDFU5
59 W @IOF
60 K DIC S DIC=357.91,DIC(0)="AELMQ",DIC("S")="I '$P($G(^(0)),U,3)"
61 ;S DIC("A")="Select "_$S(IBTYPE=2:"an output interface",3:"a selection interface")_": "
62 S DLAYGO=357.91
63 D ^DIC K DIC,D,DA
64 Q:+Y<0
65 S MARK=+Y,IBNEW=$P(Y,"^",3)
66 S IBDELETE=$S(IBNEW:1,1:0)
67 S DA=MARK
68 K DIE,DR S DIE=357.91,DR="[IBDF EDIT MARKING AREA]",DIE("NO^")="BACKOUTOK"
69 D ^DIE K DIE,DR,DA
70 I IBDELETE K DA S DIK="^IBE(357.91,",DA=MARK D ^DIK K DIK,DA
71 I IBNEW,'IBDELETE W !!,"New marking area created!"
72 Q
Note: See TracBrowser for help on using the repository browser.