source: FOIAVistA/trunk/r/HEALTH_LEVEL_SEVEN-HL/HLUOPT.m@ 1751

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

initial load of FOIAVistA 6/30/08 version

File size: 3.6 KB
Line 
1HLUOPT ;AISC/SAW-Main Menu for HL7 Module ;07/26/99 08:47
2 ;;1.6;HEALTH LEVEL SEVEN;**57**;Oct 13, 1995
3AP ;Enter/Edit DHCP Application Parameters
4 F D Q:Y<0
5 . N DA,DIC,DDSFILE,DR
6 . S DIC="^HL(771,",DIC(0)="AEMQLZ"
7 . W @IOF,! D ^DIC Q:Y<0
8 . S DA=+Y,DDSFILE=DIC,DR="[HL7 APP]"
9 . D ^DDS S Y=0
10 Q
11 ;
12SP ;Enter/Edit Non-DHCP Application Parameters
13 S DIC="^HL(770,",DIC(0)="AEMQL",DLAYGO=770 W ! D ^DIC K DLAYGO G EXIT:Y<0
14 I $P(Y,"^",3) N HLX,HLX1 S HLX=+Y
15 S DA=+Y,DIE=DIC,DR=".01;3;2;4//245;5//3;6;7//2.1;8;9//30;10;14;100" D ^DIE
16 I $D(HLX) D
17 .S HLX1=$G(^HL(770,HLX,0)) K DA,DD,DIE,DO,DR S DIC="^HL(771,",X=$P(HLX1,"^"),DIC(0)="" D FILE^DICN S DA=+Y
18 .I DA S DIE="^HL(771,",DR="2///a;3///"_$P(HLX1,"^",3) D ^DIE K DIE,DR
19 .S DIE="^HL(770,",DR="12///"_DA,DA=HLX D ^DIE
20 G SP
21APP ;Print/Display Application Parameters
22 S DIC="^HL(771,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="?",TO="?",DHD="HL7 DHCP Application Parameters" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
23SPP ;Print/Display Site Parameters
24 S DIC="^HL(770,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="?",TO="?",DHD="HL7 Non-DHCP Application Parameters" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
25MT ;Print/Display Message Type
26 S DIC="^HL(771.2,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="",TO="",DHD="HL7 Message Types" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
27SN ;Print/Display Segment Name
28 S DIC="^HL(771.3,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="",TO="",DHD="HL7 Segment Names" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
29DT ;Print/Display Data Type
30 S DIC="^HL(771.4,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="",TO="",DHD="HL7 Data Types" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
31VERS ;Print/Display Version Number
32 S DIC="^HL(771.5,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="",TO="",DHD="HL7 Version Numbers" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
33FIELD ;Print/Display Fields
34 S DIC="^HL(771.1,",L=0,FLDS="[CAPTIONED]",BY="@.01",FR="?",TO="?",DHD="HL7 Fields" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
35PLPT ;Print/Display Log of Awaiting or Pending Tramsmissions
36 S DIC="^HL(772,",L=0,FLDS="[CAPTIONED]",BY="@20,@.01",DIS(0)="S HLX=+$G(^HL(772,D0,""P"")) I HLX<3!(HLX>7)",FR="A,?",TO="Z,?",DHD="Log of HL7 Transmissions in Awaiting or Pending Status" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD K HLX G EXIT
37PLFT ;Print/Display Log of Failed Transmissions
38 S DIC="^HL(772,",L=0,FLDS="[CAPTIONED]",BY="@20,@.01",FR="E,?",TO="EZ,?",DHD="Log of Failed HL7 Transmissions" D EN1^DIP D:$E(IOST,1,2)="C-" HOLD G EXIT
39LOG ;Start/Stop HL7 Log of Transmissions
40 W !!,"Select the Non-DHCP Application for which you wish to start/stop the HL7 log",!,"of transmissions."
41 W ! S DIC="^HL(770,",DIC(0)="AEMQ" D ^DIC G EXIT:Y<0 S DA=+Y,HLDEV=$P(^HL(770,DA,0),"^",6) I HLDEV']"" W !!,*7,"You must define an HL7 Device for this Non-DHCP Application before you can",!,"start the log.",!
42 I HLDEV]"" W !!,"The HL7 log is currently turned ",$S($D(^HL(770,"ALOG",HLDEV,DA)):"on.",1:"off."),!
43 S DIE=DIC,DR=$S(HLDEV']"":"6R;",1:"")_50,DIE("NO^")="OUTOK" D ^DIE
44 W ! S DIR(0)="Y",DIR("B")="Yes",DIR("A")="Do you want to purge existing log entries" D ^DIR I Y=1,HLDEV]"" K ^TMP("HL",HLDEV)
45EXIT K BY,DA,DHD,DIC,DIE,DIR,DR,FLDS,FR,L,HLDEV,TO,X,Y Q
46 ;
47LLED ;Logical Link Edit, file 870
48 F D Q:Y<0
49 . N DA,DIC,DDSFILE,DR
50 . S DIC="^HLCS(870,",DIC(0)="AEMQLZ"
51 . W @IOF,! D ^DIC Q:Y<0
52 . S DA=+Y,DR="[HL7 LOGICAL LINK]",DDSFILE=DIC
53 . D ^DDS S Y=0
54 Q
55 ;
56INTED ;Interface edit, file 101
57 F D Q:Y<0
58 . N DA,DIC,DDSFILE,DR
59 . S DIC="^ORD(101,",DIC(0)="AEMQLZ",DIC("S")="N Z S Z=$P(^(0),U,4) I Z=""E""!(Z=""S"")"
60 . W @IOF,! D ^DIC Q:Y<0
61 . S DA=+Y,DR="[HL7 INTERFACE]",DDSFILE=DIC
62 . D ^DDS S Y=0
63 Q
64 ;
65HOLD ;Hold Screen at End of Display
66 N DIR
67 S DIR(0)="E" D ^DIR
68 Q
69
Note: See TracBrowser for help on using the repository browser.