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

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

initial load of WorldVistAEHR

File size: 3.9 KB
Line 
1IBJTNA ;ALB/ARH - TPI INSURANCE SCREENS/ACTIONS ; 2/14/95
2 ;;Version 2.0 ; INTEGRATED BILLING ;**39**; 21-MAR-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5 ; the PI view patient policies screen is based on the Patient Insurance Management screen of the
6 ; View Patient Insurance [IBCN VIEW PATIENT INSURANCE] option
7 ; the VI view insurance screen is based on the Insurance Company Editor screen of the
8 ; Insurance Company Entry/Edit [IBCN INSURANCE CO EDIT] option
9 ; the VP view policy screen is based on the Patient Policy Information screen of the
10 ; Patient Insurance Info View/Edit [IBCN PATIENT INSURANCE] option
11 ; the AB annual benefits screen is based on the Annual Benefits Editor screen of the
12 ; Patient Insurance Info View/Edit [IBCN PATIENT INSURANCE] option
13 ;
14 ; four Insurance Module LM Templates were duplicated for JBI so the appropriate Protocol Menus could be used
15 ; also so a screen with a message could be displayed if no ins information could be found
16 ; IBJT NS PI VIEW PAT INS --- IBCNS VIEW PAT INS PI
17 ; IBJT NS VIEW INS CO --- IBCNS VIEW INS CO VI
18 ; IBJT NS VIEW EXP POL --- IBCNS VIEW EXP POL VP
19 ; IBJT NS VIEW AN BEN --- IBCNS VIEW AN BEN AB
20 ;
21 ; code called by template was redirected to IBJTN* routines for set up of variables
22 ;
23 ; these screens may be called to display insurance information for a specific bill or they may be
24 ; called as part of the insurance display for the patient (from the AL screen)
25 ;
26 ; three actions (VI, VP, AB) are defined to open screens for a bill's insurance: IBJT NS VIEW xxx SCREEN
27 ; four actions are defined to open these screens for a patient's insurance: IBJT NS PI VIEW xxx SCREEN
28 ;
29 ; for the actions related to a bills insurance, ie. actions available from bill specific screens:
30 ; the actions (VI, VP, AB) have two separate functions depending on the variable passed in: opening/loading
31 ; a screen and to redisplay that screen, the redisplay must only be an action on the corresponding screen
32 ; if REDISP does not have a value then a new screen is opened after asking for company/policy
33 ; if REDISP does have a value then the screen is rebuilt after asking for company/policy (assumes screen
34 ; already open), should only be used if the screen is already displayed, ie. action should only be be used
35 ; with REDISP set if called from the corresponding screen
36 ;
37 ; the actions (VI, VP, AB) will ask for the user to select which carrier/policy if the bill has more than one
38 ; only the primary, secondary and tertiary carrier/policies for the bill may be chosen to be displayed
39 ; if one of the insurance actions is chosen from a bill specific screen
40 ;
41HDRI ; -- IBJT NS VIEW INS CO LIST TEMPLATE: insurance company header code
42 S VALMHDR(1)="Insurance Company Information"
43 I +$G(IBCNS) D HDR^IBCNSC,PST(1)
44 Q
45INITI ; -- IBJT NS VIEW INS CO LIST TEMPLATE: insurance company init code
46 K ^TMP("IBCNSC",$J)
47 I '$G(IBIFN) D PRTCL^IBJU1("IBJT SHORT MENU")
48 S IBCNS=+$P(IBJPOL,U,3) I +IBCNS D INIT^IBCNSC K VALMHDR Q
49 S VALMCNT=0 D BLD("Insurance data incomplete, cannot find policy.")
50 Q
51EXITI D EXIT^IBCNSC K ^TMP("IBCNSC",$J) Q
52HELPI D HELP^IBCNSC Q
53 ;
54VI(REDISP) ; -- IBJT NS VIEW INS CO SCREEN ACTION: view insurance company screen: expanded insurance company information
55 ; user can select carrier if more than one on bill, REDISP set if screen to be rebuilt for different carrier
56 ;
57 I '$G(REDISP) N IBX,IBVIEW,IBCHANGE,IBCNS,IBCPOL,IBPPOL,IBJPOL,IBI,IBLCNT,IBCNS13
58 I '$G(IBIFN)!'$G(DFN) G VIQ
59 D FULL^VALM1
60 S IBX=$$PST^IBJTU31(IBIFN) I 'IBX S VALMBCK="R" G VIQ
61 S IBJPOL=IBX
62 I '$G(REDISP) D EN^VALM("IBJT NS VIEW INS CO") G VIQ
63 D INITI S VALMBCK="R"
64VIQ Q
65 ;
66 ;
67BLD(MSG) D KILL^VALM10(),SET^IBCNSP(1,1,""),SET^IBCNSP(2,1,MSG) Q
68PST(X) S IBI=$P(IBJPOL,U,2),IBX=$S(IBI=1:"Primary",IBI=2:"Secondary",IBI=3:"Tertiary",1:""),VALMHDR(X)=$E(VALMHDR(X),1,68)_$J("",(79-$L(VALMHDR(X))-$L(IBX)))_IBX Q
Note: See TracBrowser for help on using the repository browser.