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

IBCSC1.m

Go to the documentation of this file.
IBCSC1 ;ALB/MJB - MCCR SCREEN 1 (DEMOGRAPHICS) ;27 MAY 88 10:13
 ;;2.0;INTEGRATED BILLING;**51,161,349,400,464**;21-MAR-94;Build 16
 ;;Per VHA Directive 2004-038, this routine should not be modified.
 ; DBIA for reference to DG ELIGIBILITY key: DBIA3109
 ;
 ;MAP TO DGCRSC1
 ;
BEN S IBSR=1,IBSR1="",IBV1=$S($D(^XUSEC("DG ELIGIBILITY",DUZ)):"000000",1:101100)
 S:IBV IBV1="111111"
 S IB(0)=$S($D(^DGCR(399,IBIFN,0)):^(0),1:"")
 D:'$D(IBWW) ^IBCSCU D ALL^IBCVA0,H^IBCSCU
 ;
 ; Add/Update to ClaimsManager file (#351.9) if running ClaimsManager
 I $$CM^IBCIUT1(IBIFN) D ST1^IBCIST
 ;
 ; coming into the billing screens, default the service facility taxonomy code if blank
 N IBU3,BPZ
 S IBU3=$G(^DGCR(399,IBIFN,"U3"))
 S BPZ=$$B^IBCEF79(IBIFN)
 I '$P(IBU3,U,2),$P(BPZ,U,3)'="" D      ; if no svc fac taxonomy code and a svc fac exists
 . N SFTAX,DIE,DA,DR,D,D0,DI
 . S SFTAX=""
 . I $P(BPZ,U,3)=0,+$P(BPZ,U,4) S SFTAX=+$P($$TAXORG^XUSTAX(+$P(BPZ,U,4)),U,2)     ; ien to file 8932.1 for VA svc fac
 . I $P(BPZ,U,3)=1,+$P(BPZ,U,4) S SFTAX=+$P($$TAXGET^IBCEP81(+$P(BPZ,U,4)),U,2)    ; ien to file 8932.1 for non-VA svc fac
 . I 'SFTAX Q
 . S DIE=399,DA=IBIFN,DR="243////"_SFTAX D ^DIE
 . Q
 ;
1 S Z=1,IBW=1 X IBWW W " DOB    : ",$P(VADM(3),"^",2) I $G(VADM(6)) W ?42,"Date of Death: ",$P(VADM(6),U,2)," (uneditable)"
 ;
2 S (I1,Z1)="",Z=2,IBW=1 X IBWW W " Alias  : " F I=0:0 S I=$O(^DPT(DFN,.01,I)) Q:I=""  S I1=1 W:$X>40 !?13 S Z1=36,Z=$E($P(^(I,0),"^",1),1,29) W Z,"/"
 W:'I1 "NO ALIAS ON FILE"
 ;
3 S Z=3,IBW=1 X IBWW W " Sex    : ",$S($P(VADM(5),U,2)]"":$P(VADM(5),U,2),1:IBU),?48,"Marital: ",$S($D(^DIC(11,+$P(^DPT(DFN,0),U,5),0)):$E($P(^(0),U,1),1,28),1:IBU)
 ;
4 S Z=4,IBW=1 X IBWW W " Veteran: ",$S('$D(VAEL(4)):IBU,+VAEL(4):"YES",1:"NO"),?44,"Eligibility: ",$S((VAEL(1)]""):$E($P(^DIC(8,(+VAEL(1)),0),"^",6),1,22),1:IBU)
 F I=.11,.121 S IB(I)=$S($D(^DPT(DFN,I)):^(I),1:"")
 K IBA S IBAD=.11,(IBA1,IBA2)=1 D A^IBCSCU I $P(IB(.121),"^",9)="Y" S IBAD=.121,IBA1=1,IBA2=2 D A^IBCSCU
 ;
5 W ! S Z=5,IBW=1 X IBWW W " Address: ",$S($D(IBA(1)):IBA(1),1:"NONE ON FILE"),?46,"Temporary: ",$S($D(IBA(2)):IBA(2),1:"NO TEMPORARY ADDRESS")
 S I=2 F I1=0:0 S I=$O(IBA(I)) Q:I=""  W:I#2!($X>50) !?13 W:'(I#2) ?57 W IBA(I)
 ;
6 W ! S Z=6,IBW=1 X IBWW W " SC Care: " S X=$P(IB(0),"^",18) W $S(X="":"UNSPECIFIED",X:"YES",1:"NO") I X W "  (Enter '6' to list disabilities)"
 G ^IBCSCP
 Q
 ;IBCSC1