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

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

initial load of WorldVistAEHR

File size: 4.0 KB
Line 
1IBCSC82 ;ALB/MJB - MCCR SCREEN 8 (UB-04 BILL SPECIFIC INFO) ;27 MAY 88 10:20
2 ;;2.0;INTEGRATED BILLING;**51,137,210,232,155,343,349**;21-MAR-94;Build 46
3 ;;Per VHA Directive 2004-038, this routine should not be modified.
4 ;
5EN S IBCUBFT=$$FT^IBCU3(IBIFN) I IBCUBFT=2 K IBCUBFT G ^IBCSC8H ;CMS-1500
6 ;
7 N I,IB,IBX,Z
8 D ^IBCSCU S IBSR=8,IBSR1=2,IBV1="00000" S:IBV IBV1="11111" F I="U","U1",0,"UF3","UF31","U2","TX","U3" S IB(I)=$G(^DGCR(399,IBIFN,I))
9 N IBZ,IBPRV,IBREQ,IBMRASEC,TEXT
10 D GETPRV^IBCEU(IBIFN,"ALL",.IBPRV)
11 K IB("PRV")
12 S IBZ=0 F S IBZ=$O(IBPRV(IBZ)) Q:'IBZ I $O(IBPRV(IBZ,0))!$D(IBPRV(IBZ,"NOTOPT")) M IB("PRV",IBZ)=IBPRV(IBZ)
13 ;
14 D H^IBCSCU
15 S Z=1,IBW=1 X IBWW W " Bill Remarks",!?5,"- FL-80",?22,": "
16 S TEXT=$P($G(^DGCR(399,IBIFN,"UF2")),U,3) ; field# 402
17 I TEXT="" W IBUN ; unspecified [not required]
18 I TEXT'="" D
19 . N IBZ,Z
20 . D REMARK^IBCEF77(IBIFN,.IBZ)
21 . S Z=0 F S Z=$O(IBZ(Z)) Q:'Z D
22 .. W ?24,$G(IBZ(Z))
23 .. I Z>4 W ?48,$G(IBVI)," <--- This Line Will Not Print ",$G(IBVO)
24 .. I $O(IBZ(Z)) W !
25 .. Q
26 . Q
27 ;
28 S IBZ="",IBZ=$S($P(IB("UF3"),U,4)]"":"Pri: "_$P(IB("UF3"),U,4),1:"")_$S($P(IB("UF3"),U,5)'="":" Sec: "_$P(IB("UF3"),U,5),1:"")_$S($P(IB("UF3"),U,6)'="":" Ter: "_$P(IB("UF3"),U,6),1:"")
29 S:IBZ="" IBZ=IBUN
30 W !,?3," ICN/DCN(s) : ",IBZ
31 S IBZ="",IBZ=$S($P(IB("U"),U,13)]"":"Pri: "_$P(IB("U"),U,13),1:"")_$S($P(IB("U2"),U,8)'="":" Sec: "_$P(IB("U2"),U,8),1:"")_$S($P(IB("U2"),U,9)'="":" Ter: "_$P(IB("U2"),U,9),1:"")
32 S:IBZ="" IBZ=IBUN
33 W !,?3," Tx Auth. Code(s) : ",IBZ
34 W !,?3," Admitting Dx : " S IBX=$$ICD9^IBACSV(+IB("U2"),$$BDATE^IBACSV(IBIFN)) W $S(IBX'="":$P(IBX,U)_" - "_$P(IBX,U,3),'$$INPAT^IBCEF(IBIFN):IBUN,1:IBU)
35 I $P(IB(0),U,5)>2 W !,?3," Admission Source : " S IBX=$$EXTERNAL^DILFD(399,159,,$P(IB("U"),U,9)) W $S(IBX'="":IBX,1:IBU) ;Outpatient only
36 S Z=2,IBW=1 X IBWW
37 W " Providers : ",$S('$O(IB("PRV",0)):IBU,1:"")
38 I $D(IB("PRV")) D
39 . N Z,IBT,IBQ,IBARR,IBTAX,IBNOTAX,IBSPEC,IBNOSPEC
40 . S IBZ=0
41 . D DEFSEC^IBCEF74(IBIFN,.IBARR)
42 . ; PRXM/KJH - Add Taxonomy code to display for patch 343. Moved secondary IDs slightly (below).
43 . S IBTAX=$$PROVTAX^IBCEF73A(IBIFN,.IBNOTAX)
44 . S IBSPEC=$$SPECTAX^IBCEF73A(IBIFN,.IBNOSPEC)
45 . F S IBZ=$O(IB("PRV",IBZ)) Q:'IBZ D
46 .. N A,A1
47 .. S IBQ=""
48 .. W !,?5,"- "
49 .. S A=$$EXPAND^IBTRE(399.0222,.01,IBZ)
50 .. I $P($G(IB("PRV",IBZ,1)),U,4)'="" S A1=" ("_$E($P(IB("PRV",IBZ,1),U,4),1,3)_")",A=$E(A,1,15-$L(A1))_A1
51 .. W $E(A_$J("",15),1,15),": "
52 .. I '$P($G(IB("PRV",IBZ,1)),U,3),$P($G(IB("PRV",IBZ,1)),U)="" W IBU Q
53 .. I $P($G(IB("PRV",IBZ,1)),U)'="" W:'$G(IB("PRV",IBZ)) $E($P(IB("PRV",IBZ,1),U)_$J("",20),1,20) W:$G(IB("PRV",IBZ)) "(OLD PROV DATA) "_$P(IB("PRV",IBZ,1),U)
54 .. I $P($G(IB("PRV",IBZ,1)),U)="",$P($G(IB("PRV",IBZ)),U)'="" W $E($P(IB("PRV",IBZ),U)_$J("",20),1,20)
55 .. W " Taxonomy: ",$S($P(IBTAX,U,IBZ)'="":$P(IBTAX,U,IBZ),1:IBU),$S($P(IBSPEC,U,IBZ)'="":" ("_$P(IBSPEC,U,IBZ)_")",1:"")
56 .. F A=1:1:3 I $G(IBARR(IBZ,A))'="" S IBQ=IBQ_"["_$E("PST",A)_"]"_IBARR(IBZ,A)_" "
57 .. I $L(IBQ) W !,?30,$E(IBQ,1,49)
58 K IB("PRV")
59 ;
60 S IBREQ=+$$REQMRA^IBEFUNC(IBIFN) S:IBREQ IBREQ=1
61 S IBMRASEC=$$MRASEC^IBCEF4(IBIFN)
62 S Z=3,IBW=1 X IBWW W " ",$S('IBREQ:"Force To Print? : ",1:"Force MRA Sec Prt?: ")
63 S IBZ=$$EXTERNAL^DILFD(399,27+IBREQ,,+$P(IB("TX"),U,8+IBREQ))
64 I IBMRASEC,'$P(IB("TX"),U,8),$P(IB("TX"),U,9) S IBZ="FORCED TO PRINT BY MRA PRIMARY",$P(IB("TX"),U,8)=0
65 W $S(IBZ'=""&($P(IB("TX"),U,8+IBREQ)'=""):IBZ,'$$TXMT^IBCEF4(IBIFN):"[NOT APPLICABLE - NOT TRANSMITTABLE]",IBREQ:"NO FORCED PRINT",1:IBZ)
66 S Z=4,IBW=1 X IBWW
67 W " Provider ID Maint : (Edit Provider ID information)"
68 S Z=5,IBW=1 X IBWW
69 W " Other Facility (VA/non): " S IBZ=$$EXPAND^IBTRE(399,232,+$P(IB("U2"),U,10))
70 W $S(IBZ'="":$E(IBZ,1,23),$$PSRV^IBCEU(IBIFN):IBU,1:IBUN)
71 I IBZ'="" D
72 . ; PRXM/KJH - Add Taxonomy code to display for patch 343.
73 . W ?53,"Taxonomy: "
74 . S IBZ=$$GET1^DIQ(8932.1,+$P(IB("U3"),U,3),"X12 CODE") W $S(IBZ'="":IBZ,1:IBU)
75 . S IBZ=$$GET1^DIQ(8932.1,+$P(IB("U3"),U,3),"SPECIALTY CODE") W $S(IBZ'="":" ("_IBZ_")",1:"")
76 . Q
77 ;
78 G ^IBCSCP
79Q Q
80 ;IBCSC82
Note: See TracBrowser for help on using the repository browser.