source: WorldVistAEHR/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBCNSJ14.m@ 1521

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

initial load of WorldVistAEHR

File size: 2.4 KB
Line 
1IBCNSJ14 ;ALB/CPM - INACTIVATE AN INSURANCE PLAN (CON'T) ; 07-MAR-95
2 ;;Version 2.0 ; INTEGRATED BILLING ;**28**; 21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5SEL ; Select a company and plan.
6 ; Required variable input:
7 ; IBCNS -- Pointer to the current company in file #36
8 ; Variable output:
9 ; IBPLAN -- Pointer to the selected plan in file #355.3
10 ; IBQUIT -- Set to 1 if user wants to quit.
11 ;
12 ; - does the user want to switch companies?
13 S DIR(0)="Y",DIR("B")="YES",DIR("A")="Inactivate another plan offered by the same company",DIR("?")="To inactivate another plan from this company, answer 'YES.' To switch companies, answer 'NO.'"
14 D ^DIR K DIR I $D(DIRUT) S IBQUIT=1 G SELQ
15 ;
16SEL4 ; - this entry point is supported for a call from IBCNSJ4.
17 ; Input: IBINACTM -- [optional]: set to 1 if entry is from
18 ; IBCNSJ4 (the multiple plan inactivator).
19 ; If entry is from IBCNSJ4, inactive plans
20 ; may not be selected.
21 ; Y -- must be set to 0 when called by IBCNSJ4.
22 ;
23 I 'Y D I IBQUIT G SELQ
24 .S DIC(0)="QEAMZ",DIC="^DIC(36,",DIC("S")="I $$ANYGP^IBCNSJ(+Y,0,1)"
25 .S DIC("A")="Select PLAN COMPANY: "
26 .D ^DIC K DIC S IBCNS=+Y I Y<0 S IBQUIT=1
27 ;
28 ; - see if user wants to directly select the plan
29 S DIR(0)="Y",DIR("B")="YES",DIR("A")="Do you wish to directly enter this plan"
30 S DIR("?")="The look-up facility to select "_$S($G(IBINACTM):"an active",1:"a")_" group plan has been enhanced to use the List Manager. Enter 'NO' if you wish to select a plan from this look-up, or 'YES' to directly enter the plan."
31 D ^DIR K DIR I $D(DIRUT) S IBQUIT=1 G SELQ
32 ;
33 ; - invoke the plan look-up
34 I 'Y D G SELQ
35 .W " ..." S IBPLAN=0 D LKP^IBCNSU2(IBCNS,0,0,.IBPLAN,0,'$G(IBINACTM))
36 .I 'IBPLAN W !!,"No plan selected!",! S IBQUIT=1
37 ;
38 ; - allow a FileMan look-up
39 S DIC("A")="Select "_$S($G(IBINACTM):"an Active",1:"a")_" GROUP PLAN: "
40 S DIC="^IBA(355.3,",DIC(0)="AEQM",DIC("S")="I +^(0)=IBCNS,$P(^(0),U,2)"
41 S DIC("W")="N IBX S IBX=$G(^(0)) W "" Name: "",$E($S($P(IBX,U,3)]"""":$P(IBX,U,3),1:""<none>"")_$J("""",20),1,20),"" Number: "",$S($P(IBX,U,4)]"""":$P(IBX,U,4),1:""<none>"")"
42 I $G(IBINACTM) S DIC("S")=DIC("S")_",'$P(^(0),U,11)"
43 D ^DIC K DIC S IBPLAN=+Y I Y<0 S IBQUIT=1
44 ;
45SELQ K DIRUT,DUOUT,DTOUT,DIROUT
46 Q
Note: See TracBrowser for help on using the repository browser.