source: WorldVistAEHR/trunk/r/INCOME_VERIFICATION_MATCH-IVM/IVMUM9.m@ 1579

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

initial load of WorldVistAEHR

File size: 2.0 KB
RevLine 
[613]1IVMUM9 ;ALB/SEK - ADD DEPENDENT CHANGES TO 408.13 & 408.41 ; 12 JAN 95
2 ;;Version 2.0 ; INCOME VERIFICATION MATCH ;**1**; 21-OCT-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5AUDIT ; change dependent demo data in 408.13 and add changes to 408.41.
6 ; if IVM transmitted IEN of 408.12 and IEN found at VAMC, any of the
7 ; 4 demo fields could be different. if ien of 408.12 is not
8 ; transmitted and dependent is found in 408.13, name & ssn could be
9 ; different because sex, dob, & relationship (408.12) must be the same.
10 I IVMDOB'=IVMDOB13 D
11 .S DGMTACT="DOB",DGMTSOLD=IVMDOB13,DGMTSNEW=IVMDOB D SET^DGMTAUD
12 .S IVMDR=".03////^S X=IVMDOB"
13 .Q
14 I IVMSEX'=IVMSEX13 D
15 .S DGMTACT="SEX",DGMTSOLD=IVMSEX13,DGMTSNEW=IVMSEX D SET^DGMTAUD
16 .S IVMDR=$S($D(IVMDR):IVMDR_";",1:"") S IVMDR=IVMDR_".02////^S X=IVMSEX"
17 .Q
18AUDIT1 I IVMNM'=IVMNM13 D
19 .S DGMTACT="NAM",DGMTSOLD=IVMNM13,DGMTSNEW=IVMNM D SET^DGMTAUD
20 .S IVMDR=$S($D(IVMDR):IVMDR_";",1:"") S IVMDR=IVMDR_".01////^S X=IVMNM"
21 .Q
22 I IVMSSN'=IVMSSN13 D
23 .S DGMTACT="SSN",DGMTSOLD=IVMSSN13,DGMTSNEW=IVMSSN D SET^DGMTAUD
24 .S IVMSSN=$S(IVMSSN="":"@",1:IVMSSN)
25 .S IVMDR=$S($D(IVMDR):IVMDR_";",1:"") S IVMDR=IVMDR_".09////^S X=IVMSSN"
26 .Q
27 ;
28 ; change 408.13
29 I $D(IVMDR) S DR=IVMDR,DA=DGIPI,DIE="^DGPR(408.13," D ^DIE K DA,DIE,DR,IVMDR Q
30 K DGDEPI,DGMTA,DGMTACT,DGMTSNEW,DGMTSOLD
31 Q
32 ;
33AUDITP ; set common variables for audit
34 S DGMTYPT=1,DGDEPI=DGIPI,DGMTA=DGMTP
35 K IVMDR
36 ;
37 ; dgrel("s") contains 408.12 IEN of active spouse of VAMC test
38 ; dgrel("c",xxx) contains 408.12 IEN of active children of VAMC test
39 ; if VAMC dependent not a IVM dependent the dependent must be inactivated
40 ; dependents remaining in dgrel after all IVM dependents are uploaded, will be inactivated
41 ; if IVM & VAMC dependent, kill dgrel to prevent inactivation of dependent
42 ; dgpri is IVM (or IVM & VAMC) dependent's 408.12 IEN
43 I IVMSPCHV="S" D Q
44 .I +$G(DGREL("S"))=DGPRI K DGREL("S")
45 S IVMFLG4=1,IVMCC=0 F S IVMCC=$O(DGREL("C",IVMCC)) Q:'IVMCC D Q:'IVMFLG4
46 .I +$G(DGREL("C",IVMCC))=DGPRI S IVMFLG4=0 K DGREL("C",IVMCC)
47 K IVMCC
48 Q
Note: See TracBrowser for help on using the repository browser.