source: FOIAVistA/trunk/r/INCOME_VERIFICATION_MATCH-IVM/IVMPXFR.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 1.2 KB
Line 
1IVMPXFR ;ALB/MLI/CJM - Called from DD to update IVM transmit flag ; 14 APR 93
2 ;;2.0;INCOME VERIFICATION MATCH;**9,17**;21-OCT-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5DPT ; Update transmit status if patient file fields are updated
6 ;
7 N DFN
8 S DFN=+DA I '$D(^DPT(DFN,0)) Q
9 D IVM
10 ;
11 ; log DCD event for nightly transmission to HEC
12 D LOGDCD^IVMCUC(DFN)
13 ;
14 ; if change in SSN, DOB, or SEX see if financial query needs to
15 ; be sent to HEC Center
16 I $D(IVMKILL),$P($G(^DPT(+DA,0)),"^",IVMKILL)'="" D QRYQUE^IVMCQ2(DFN)
17 ;
18 Q
19 ;
20IVM ; check to see if patient needs to be retransmitted
21 N DA,I,NODE,X,IVMDT,EVENTS
22 Q:'$D(^IVM(301.5,"B",DFN))
23 F DA=0:0 S DA=$O(^IVM(301.5,"B",DFN,DA)) Q:'DA D
24 .S X=$G(^IVM(301.5,DA,0))
25 .I 'X!($P(X,"^",3)=0)!$P(X,"^",4) Q ; stop if transmit=no or stop=yes
26 .S IVMDT=$E($P(X,"^",2),1,3)+1_"1231.9999"
27 .Q:'$$IVM^IVMUFNC(DFN,IVMDT) ;stop if not an IVM patient
28 .S EVENTS("IVM")=1
29 .I $$SETSTAT^IVMPLOG(DA,.EVENTS)
30 Q
31 ;
32SPSSN ; Update transmit status if the spouse's SSN has been updated
33 N DFN,IVMPR,IVMPRN
34 S IVMPR=$O(^DGPR(408.12,"C",+DA_";DGPR(408.13,",0)) Q:'IVMPR
35 S IVMPRN=$G(^DGPR(408.12,IVMPR,0)) Q:'IVMPRN
36 Q:$P(IVMPRN,"^",2)'=2 ; not a spouse
37 S DFN=+IVMPRN
38 D IVM
39 Q
Note: See TracBrowser for help on using the repository browser.