- IBDF16 ;ALB/CJM - ENCOUNTER FORM - (edit Package Interfaces, Marking Areas) ;Jul 23,1993
- ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
- ;
- EDIT ;allows the user to create/edit/delete Package Interaces of type
- ;OUTPUT or SELECTION
- ;does not allow Package Interfaces that are part of the toolkit
- N IBTYPE S IBTYPE=""
- W @IOF
- D WARNING,PAUSE^IBDFU5
- W @IOF
- D TYPE
- D:IBTYPE INTRFACE
- Q
- TYPE ;asks the user what type of interface he wants to edit
- W !!,"OUTPUT interfaces are used to obtain data from other packages that will be",!,"displayed to DATA FIELDS."
- W !!,"SELECTION interfaces are used to obtain data from other packages that will be",!,"displayed to SELECTION LISTS."
- K DIR S DIR(0)="S^1:OUTPUT;2:SELECTION;"
- S DIR("A")="SELECT THE TYPE OF PACKAGE INTERFACE TO EDIT"
- S DIR("B")=1
- D ^DIR K DIR
- Q:$D(DIRUT)
- Q:'Y
- S IBTYPE=Y+1
- Q
- INTRFACE ;edit package interface
- ;IBTYPE=3 if type=selection interface
- ;IBTYPE=2 if type=output interface
- N REPORT,IBDELETE,IBNEW,INTRFACE,IBACTION,DLAYGO
- I $G(IBTYPE)'=2,$G(IBTYPE)'=3 Q
- S IBDELETE=1
- K DIC S DIC=357.6,DIC(0)="AELMQ",DIC("S")="I $P($G(^(0)),U,6)="_IBTYPE_",'$P($G(^(0)),U,12)"
- S D="E^D^B"
- S DIC("DR")="06////"_IBTYPE
- S DIC("A")="Select a PACKAGE INTERFACE: "
- S DLAYGO=357.6
- D MIX^DIC1 K DIC,D,DA
- Q:+Y<0
- S INTRFACE=+Y,IBNEW=$P(Y,"^",3)
- S IBDELETE=$S(IBNEW:1,1:0)
- S DA=INTRFACE
- K DIE,DR S DIE=357.6,DR="[IBDF EDIT OUTPUT/SELECTION RTN]",DIE("NO^")="BACKOUTOK"
- D ^DIE K DIE,DR,DA
- I IBDELETE K DA S DIK="^IBE(357.6,",DA=INTRFACE D ^DIK K DIK,DA
- Q
- LOOKUP ;additional help for the USER LOOKUP field
- 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."
- W !,"Each word should be at least 3 characters long, and words must be separated",!,"by a space.",!
- Q
- WARNING ;warns the user to lookup in the technical doc how to write Package Interfaces
- W !!,"You can write your own Package Interfaces to obtain data not available"
- W !,"through the Toolkit. Before you do so, however, please consult the technical",!,"documentation for the guidelines that must be followed. In particular, you"
- W !,"must know where the data should be placed and what format must be used.",!
- Q
- MARKING ;allows the user to create/edit/delete marking areas not in the toolkit
- N MARK,DLAYGO
- W @IOF,!!!!!
- 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.",!!!!!
- D PAUSE^IBDFU5
- W @IOF
- K DIC S DIC=357.91,DIC(0)="AELMQ",DIC("S")="I '$P($G(^(0)),U,3)"
- ;S DIC("A")="Select "_$S(IBTYPE=2:"an output interface",3:"a selection interface")_": "
- S DLAYGO=357.91
- D ^DIC K DIC,D,DA
- Q:+Y<0
- S MARK=+Y,IBNEW=$P(Y,"^",3)
- S IBDELETE=$S(IBNEW:1,1:0)
- S DA=MARK
- K DIE,DR S DIE=357.91,DR="[IBDF EDIT MARKING AREA]",DIE("NO^")="BACKOUTOK"
- D ^DIE K DIE,DR,DA
- I IBDELETE K DA S DIK="^IBE(357.91,",DA=MARK D ^DIK K DIK,DA
- I IBNEW,'IBDELETE W !!,"New marking area created!"
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIBDF16 3154 printed Feb 19, 2025@00:17:12 Page 2
- IBDF16 ;ALB/CJM - ENCOUNTER FORM - (edit Package Interfaces, Marking Areas) ;Jul 23,1993
- +1 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
- +2 ;
- EDIT ;allows the user to create/edit/delete Package Interaces of type
- +1 ;OUTPUT or SELECTION
- +2 ;does not allow Package Interfaces that are part of the toolkit
- +3 NEW IBTYPE
- SET IBTYPE=""
- +4 WRITE @IOF
- +5 DO WARNING
- DO PAUSE^IBDFU5
- +6 WRITE @IOF
- +7 DO TYPE
- +8 if IBTYPE
- DO INTRFACE
- +9 QUIT
- TYPE ;asks the user what type of interface he wants to edit
- +1 WRITE !!,"OUTPUT interfaces are used to obtain data from other packages that will be",!,"displayed to DATA FIELDS."
- +2 WRITE !!,"SELECTION interfaces are used to obtain data from other packages that will be",!,"displayed to SELECTION LISTS."
- +3 KILL DIR
- SET DIR(0)="S^1:OUTPUT;2:SELECTION;"
- +4 SET DIR("A")="SELECT THE TYPE OF PACKAGE INTERFACE TO EDIT"
- +5 SET DIR("B")=1
- +6 DO ^DIR
- KILL DIR
- +7 if $DATA(DIRUT)
- QUIT
- +8 if 'Y
- QUIT
- +9 SET IBTYPE=Y+1
- +10 QUIT
- INTRFACE ;edit package interface
- +1 ;IBTYPE=3 if type=selection interface
- +2 ;IBTYPE=2 if type=output interface
- +3 NEW REPORT,IBDELETE,IBNEW,INTRFACE,IBACTION,DLAYGO
- +4 IF $GET(IBTYPE)'=2
- IF $GET(IBTYPE)'=3
- QUIT
- +5 SET IBDELETE=1
- +6 KILL DIC
- SET DIC=357.6
- SET DIC(0)="AELMQ"
- SET DIC("S")="I $P($G(^(0)),U,6)="_IBTYPE_",'$P($G(^(0)),U,12)"
- +7 SET D="E^D^B"
- +8 SET DIC("DR")="06////"_IBTYPE
- +9 SET DIC("A")="Select a PACKAGE INTERFACE: "
- +10 SET DLAYGO=357.6
- +11 DO MIX^DIC1
- KILL DIC,D,DA
- +12 if +Y<0
- QUIT
- +13 SET INTRFACE=+Y
- SET IBNEW=$PIECE(Y,"^",3)
- +14 SET IBDELETE=$SELECT(IBNEW:1,1:0)
- +15 SET DA=INTRFACE
- +16 KILL DIE,DR
- SET DIE=357.6
- SET DR="[IBDF EDIT OUTPUT/SELECTION RTN]"
- SET DIE("NO^")="BACKOUTOK"
- +17 DO ^DIE
- KILL DIE,DR,DA
- +18 IF IBDELETE
- KILL DA
- SET DIK="^IBE(357.6,"
- SET DA=INTRFACE
- DO ^DIK
- KILL DIK,DA
- +19 QUIT
- LOOKUP ;additional help for the USER LOOKUP field
- +1 WRITE !!,"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."
- +2 WRITE !,"Each word should be at least 3 characters long, and words must be separated",!,"by a space.",!
- +3 QUIT
- WARNING ;warns the user to lookup in the technical doc how to write Package Interfaces
- +1 WRITE !!,"You can write your own Package Interfaces to obtain data not available"
- +2 WRITE !,"through the Toolkit. Before you do so, however, please consult the technical",!,"documentation for the guidelines that must be followed. In particular, you"
- +3 WRITE !,"must know where the data should be placed and what format must be used.",!
- +4 QUIT
- MARKING ;allows the user to create/edit/delete marking areas not in the toolkit
- +1 NEW MARK,DLAYGO
- +2 WRITE @IOF,!!!!!
- +3 WRITE "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.",!!!!!
- +4 DO PAUSE^IBDFU5
- +5 WRITE @IOF
- +6 KILL DIC
- SET DIC=357.91
- SET DIC(0)="AELMQ"
- SET DIC("S")="I '$P($G(^(0)),U,3)"
- +7 ;S DIC("A")="Select "_$S(IBTYPE=2:"an output interface",3:"a selection interface")_": "
- +8 SET DLAYGO=357.91
- +9 DO ^DIC
- KILL DIC,D,DA
- +10 if +Y<0
- QUIT
- +11 SET MARK=+Y
- SET IBNEW=$PIECE(Y,"^",3)
- +12 SET IBDELETE=$SELECT(IBNEW:1,1:0)
- +13 SET DA=MARK
- +14 KILL DIE,DR
- SET DIE=357.91
- SET DR="[IBDF EDIT MARKING AREA]"
- SET DIE("NO^")="BACKOUTOK"
- +15 DO ^DIE
- KILL DIE,DR,DA
- +16 IF IBDELETE
- KILL DA
- SET DIK="^IBE(357.91,"
- SET DA=MARK
- DO ^DIK
- KILL DIK,DA
- +17 IF IBNEW
- IF 'IBDELETE
- WRITE !!,"New marking area created!"
- +18 QUIT