Ignore:
Timestamp:
Dec 4, 2009, 12:11:15 AM (15 years ago)
Author:
George Lilly
Message:

revised back to 6/30/08 version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WorldVistAEHR/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBXSC11.m

    r613 r623  
    1 IBXSC11 ; ;12/13/08
     1IBXSC11 ; ;12/27/07
    22 D DE G BEGIN
    33DE S DIE="^DPT(",DIC=DIE,DP=2,DL=2,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))=""
    44 I $D(^(0)) S %Z=^(0) S %=$P(%Z,U,2) S:%]"" DE(8)=% S %=$P(%Z,U,3) S:%]"" DE(2)=% S %=$P(%Z,U,5) S:%]"" DE(9)=%
    5  I $D(^(.11)) S %Z=^(.11) S %=$P(%Z,U,1) S:%]"" DE(17)=%
    65 I $D(^(.36)) S %Z=^(.36) S %=$P(%Z,U,1) S:%]"" DE(13)=%
    76 I $D(^("VET")) S %Z=^("VET") S %=$P(%Z,U,1) S:%]"" DE(12)=%
     
    179178X11 S:IBDR20'["14" Y="@15"
    180179 Q
    181 12 D:$D(DG)>9 F^DIE17,DE S DQ=12,DW="VET;1",DV="SXa",DU="",DLB="VETERAN (Y/N)?",DIFLD=1901
     18012 D:$D(DG)>9 F^DIE17,DE S DQ=12,DW="VET;1",DV="RSXa",DU="",DLB="VETERAN (Y/N)?",DIFLD=1901
    182181 S DE(DW)="C12^IBXSC11"
    183182 S DU="Y:YES;N:NO;"
    184183 G RE
    185184C12 G C12S:$D(DE(12))[0 K DB
    186  S X=DE(12),DIC=DIE
    187  S DFN=DA D EN^DGMTCOR K DGMTCOR
    188  S X=DE(12),DIC=DIE
    189  S DFN=DA D EN^DGRP7CC
    190  S X=DE(12),DIC=DIE
    191  ;
    192  S X=DE(12),DIC=DIE
    193  D AUTOUPD^DGENA2(DA)
    194  S X=DE(12),DIC=DIE
    195  I ($T(AVAFC^VAFCDD01)'="") S VAFCF="1901;" D AVAFC^VAFCDD01(DA)
    196  S X=DE(12),DIC=DIE
    197  D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
    198  S X=DE(12),DIIX=2_U_DIFLD D AUDIT^DIET
     185 D ^IBXSC13
    199186C12S S X="" G:DG(DQ)=X C12F1 K DB
    200  S X=DG(DQ),DIC=DIE
    201  S DFN=DA D EN^DGMTCOR K DGMTCOR
    202  S X=DG(DQ),DIC=DIE
    203  S DFN=DA D EN^DGRP7CC
    204  S X=DG(DQ),DIC=DIE
    205  X ^DD(2,1901,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X=DIV S X="N" X ^DD(2,1901,1,3,1.4)
    206  S X=DG(DQ),DIC=DIE
    207  D AUTOUPD^DGENA2(DA)
    208  S X=DG(DQ),DIC=DIE
    209  I ($T(AVAFC^VAFCDD01)'="") S VAFCF="1901;" D AVAFC^VAFCDD01(DA)
    210  S X=DG(DQ),DIC=DIE
    211  D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
    212  I $D(DE(12))'[0!(^DD(DP,DIFLD,"AUDIT")'="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
     187 D ^IBXSC14
    213188C12F1 Q
    214189X12 I $D(X) S:'$D(DPTX) DFN=DA D:'$D(^XUSEC("DG ELIGIBILITY",DUZ)) VAGE^DGLOCK:X="Y" I $D(X) D:$D(DFN) EV^DGLOCK
     
    220195 G RE
    221196C13 G C13S:$D(DE(13))[0 K DB
    222  S X=DE(13),DIC=DIE
    223  ;
    224  S X=DE(13),DIC=DIE
    225  K DIV S DIV=X,D0=DA,DIV(0)=D0 X ^DD(2,.361,1,2,2.2) I DIV(1)>0 S DIK(0)=DA,DIK="^DPT(DIV(0),""E"",",DA(1)=DIV(0),DA=DIV(1) D ^DIK S DA=DIK(0) K DIK
    226  S X=DE(13),DIC=DIE
    227  X "I $S('$D(^DIC(8,+X,0)):0,$P(^(0),""^"",1)[""DOM"":0,'$D(^DPT(DA,.36)):1,'$D(^DIC(8,+^(.36),0)):1,$P(^(0),""^"",1)'[""DOM"":1,1:0) S DGXRF=.361 D ^DGDDC Q"
    228  S X=DE(13),DIC=DIE
    229  K ^DPT("AEL",DA,+X)
    230  S X=DE(13),DIC=DIE
    231  D AUTOUPD^DGENA2(DA)
    232  S X=DE(13),DIIX=2_U_DIFLD D AUDIT^DIET
     197 D ^IBXSC15
    233198C13S S X="" G:DG(DQ)=X C13F1 K DB
    234  D ^IBXSC13
     199 D ^IBXSC16
    235200C13F1 Q
    236201X13 S DFN=DA D EV^DGLOCK I $D(X) D ECD^DGLOCK1
     
    244209X16 S:$$EDADDR^IBCSCE(+$G(DFN)) Y="@155"
    245210 Q
    246 17 D:$D(DG)>9 F^DIE17,DE S DQ=17,DW=".11;1",DV="Fa",DU="",DLB="STREET ADDRESS [LINE 1]",DIFLD=.111
    247  S DE(DW)="C17^IBXSC11",DE(DW,"INDEX")=1
    248  G RE
    249 C17 G C17S:$D(DE(17))[0 K DB
    250  D ^IBXSC14
    251 C17S S X="" G:DG(DQ)=X C17F1 K DB
    252  D ^IBXSC15
    253 C17F1 N X,X1,X2 S DIXR=230 D C17X1(U) K X2 M X2=X D C17X1("O") K X1 M X1=X
    254  D
    255  . D FC^DGFCPROT(.DA,2,.111,"KILL",$H,$G(DUZ),.X,.X1,.X2,$G(XQY0)) Q
    256  K X M X=X2 D
    257  . D FC^DGFCPROT(.DA,2,.111,"SET",$H,$G(DUZ),.X,.X1,.X2,$G(XQY0)) Q
    258  G C17F2
    259 C17X1(DION) K X
    260  S X(1)=$G(@DIEZTMP@("V",2,DIIENS,.111,DION),$P($G(^DPT(DA,.11)),U,1))
    261  S X=$G(X(1))
    262  Q
    263 C17F2 Q
    264 X17 K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>35!($L(X)<3) X
    265  I $D(X),X'?.ANP K X
    266  Q
    267  ;
    268 18 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=18 D X18 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
    269 X18 S:X="" Y=.114
    270  Q
    271 19 D:$D(DG)>9 F^DIE17 G ^IBXSC16
     21117 D:$D(DG)>9 F^DIE17 G ^IBXSC17
Note: See TracChangeset for help on using the changeset viewer.