Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBCNSJ14

IBCNSJ14.m

Go to the documentation of this file.
  1. IBCNSJ14 ;ALB/CPM - INACTIVATE AN INSURANCE PLAN (CON'T) ; 07-MAR-95
  1. ;;2.0;INTEGRATED BILLING;**28,516**;21-MAR-94;Build 123
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. SEL ; Select a company and plan.
  1. ; Required variable input:
  1. ; IBCNS -- Pointer to the current company in file #36
  1. ; Variable output:
  1. ; IBPLAN -- Pointer to the selected plan in file #355.3
  1. ; IBQUIT -- Set to 1 if user wants to quit.
  1. ;
  1. ; - does the user want to switch companies?
  1. 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.'"
  1. D ^DIR K DIR I $D(DIRUT) S IBQUIT=1 G SELQ
  1. ;
  1. SEL4 ; - this entry point is supported for a call from IBCNSJ4.
  1. ; Input: IBINACTM -- [optional]: set to 1 if entry is from
  1. ; IBCNSJ4 (the multiple plan inactivator).
  1. ; If entry is from IBCNSJ4, inactive plans
  1. ; may not be selected.
  1. ; Y -- must be set to 0 when called by IBCNSJ4.
  1. ;
  1. I 'Y D I IBQUIT G SELQ
  1. .S DIC(0)="QEAMZ",DIC="^DIC(36,",DIC("S")="I $$ANYGP^IBCNSJ(+Y,0,1)"
  1. .S DIC("A")="Select PLAN COMPANY: "
  1. .D ^DIC K DIC S IBCNS=+Y I Y<0 S IBQUIT=1
  1. ;
  1. ; - see if user wants to directly select the plan
  1. S DIR(0)="Y",DIR("B")="YES",DIR("A")="Do you wish to directly enter this plan"
  1. 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."
  1. D ^DIR K DIR I $D(DIRUT) S IBQUIT=1 G SELQ
  1. ;
  1. ; - invoke the plan look-up
  1. I 'Y D G SELQ
  1. .W " ..." S IBPLAN=0 D LKP^IBCNSU2(IBCNS,0,0,.IBPLAN,0,'$G(IBINACTM))
  1. .I 'IBPLAN W !!,"No plan selected!",! S IBQUIT=1
  1. ;
  1. ; - allow a FileMan look-up
  1. ; MRD;IB*2.0*516 - Display new Group Name and Number fields.
  1. S DIC("A")="Select "_$S($G(IBINACTM):"an Active",1:"a")_" GROUP PLAN: "
  1. S DIC="^IBA(355.3,",DIC(0)="AEQM",DIC("S")="I +^(0)=IBCNS,$P(^(0),U,2)"
  1. ;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>"")"
  1. S DIC("W")="N IBX S IBX=$G(^(2)) W "" Name: "",$E($S($P(IBX,U,1)]"""":$P(IBX,U,1),1:""<none>"")_$J("""",20),1,20),"" Number: "",$E($S($P(IBX,U,2)]"""":$P(IBX,U,2),1:""<none>""),1,14)"
  1. I $G(IBINACTM) S DIC("S")=DIC("S")_",'$P(^(0),U,11)"
  1. D ^DIC K DIC S IBPLAN=+Y I Y<0 S IBQUIT=1
  1. ;
  1. SELQ K DIRUT,DUOUT,DTOUT,DIROUT
  1. Q