source: FOIAVistA/trunk/r/INCOME_VERIFICATION_MATCH-IVM/IVMLSU1.m@ 635

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

initial load of FOIAVistA 6/30/08 version

File size: 1.8 KB
Line 
1IVMLSU1 ;ALB/MLI/KCL - IVM SSA/SSN UPLOAD DISPLAY LIST ; 07-JAN-94
2 ;;Version 2.0 ; INCOME VERIFICATION MATCH ;; 21-OCT-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5 ;
6INIT ; - Init variables and list array
7 K ^TMP("IVMLST",$J)
8 S IVMBL="",$P(IVMBL," ",30)="",IVMCT=0,IVMNM=""
9 ;
10 ; - sort by patient name
11 F S IVMNM=$O(^TMP("IVMUP",$J,IVMNM)) Q:IVMNM']"" S IVMSSN="" D
12 .F S IVMSSN=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN)) Q:IVMSSN']"" S IVMI="" D
13 ..F S IVMI=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI)) Q:'IVMI S IVMJ="" D
14 ...F S IVMJ=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI,IVMJ)) Q:'IVMJ D
15 ....S X=$G(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI,IVMJ))
16 ....S DFN=$P(X,"^",1),IVMSIEN=$P(X,"^",2)
17 ....S IVMSTAR=$S($P(X,"^",3)]"":"*",1:" "),IVMLN=$P(X,"^",4,99)
18 ....S IVMCT=IVMCT+1 D WRLINE(IVMLN,IVMCT)
19 ....;
20 ....; - set ^TMP("IVMLST" array for look-up
21 ....S ^TMP("IVMLST",$J,"IDX",IVMCT,IVMCT)=IVMNM_"^"_IVMSSN_"^"_DFN_"^"_IVMSIEN_"^"_$P(X,"^",3)_"^"_IVMI_"^"_IVMJ
22 ;
23 S VALMCNT=IVMCT
24 ;
25INITQ K C,DFN,IVMBL,IVMCT,IVMI,IVMJ,IVMLN,IVMNM,IVMSIEN,IVMSSN,IVMSTAR
26 Q
27 ;
28 ;
29WRLINE(X,C) ; - Write line out
30 ;
31 ; Input: X as pt name^pt ssn^pt ssa ssn^sp name^sp ssn^sp ssa ssn
32 ; C as line number
33 ; Output: None
34 ;
35 N IVMLN
36 ; - patient data
37 S IVMLN=IVMSTAR_$E($P(X,"^",1)_IVMBL,1,14)_" "_$E($P(X,"^",2)_IVMBL,1,11)_$E($P(X,"^",3)_IVMBL,1,11)
38 ;
39 ; - spouse data
40 S IVMLN=IVMLN_$E($P(X,"^",4)_IVMBL,1,14)_" "_$E($P(X,"^",5)_IVMBL,1,11)_$E($P(X,"^",6)_IVMBL,1,10)
41 ;
42 ; - highlight SSA/SSN for patient
43 D CNTRL^VALM10(C,33,9,IOINHI,IOINORM)
44 ; - highlight SSA/SSN for spouse
45 D CNTRL^VALM10(C,71,9,IOINHI,IOINORM)
46 ;
47 ; - display list
48 S @VALMAR@(C,0)=$E(C_" ",1,4)_IVMLN
49 Q
50 ;
51 ;
52HDR ; - Header code
53 S VALMHDR(1)="Income Verification Match Suggested SSA/SSNs for Uploading"
54 S VALMHDR(2)=" (*) - Indicates Date of Death Reported"
55 Q
Note: See TracBrowser for help on using the repository browser.