Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IVMLSU1

IVMLSU1.m

Go to the documentation of this file.
  1. IVMLSU1 ;ALB/MLI/KCL - IVM SSA/SSN UPLOAD DISPLAY LIST ; 07-JAN-94
  1. ;;Version 2.0 ; INCOME VERIFICATION MATCH ;; 21-OCT-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. ;
  1. INIT ; - Init variables and list array
  1. K ^TMP("IVMLST",$J)
  1. S IVMBL="",$P(IVMBL," ",30)="",IVMCT=0,IVMNM=""
  1. ;
  1. ; - sort by patient name
  1. F S IVMNM=$O(^TMP("IVMUP",$J,IVMNM)) Q:IVMNM']"" S IVMSSN="" D
  1. .F S IVMSSN=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN)) Q:IVMSSN']"" S IVMI="" D
  1. ..F S IVMI=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI)) Q:'IVMI S IVMJ="" D
  1. ...F S IVMJ=$O(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI,IVMJ)) Q:'IVMJ D
  1. ....S X=$G(^TMP("IVMUP",$J,IVMNM,IVMSSN,IVMI,IVMJ))
  1. ....S DFN=$P(X,"^",1),IVMSIEN=$P(X,"^",2)
  1. ....S IVMSTAR=$S($P(X,"^",3)]"":"*",1:" "),IVMLN=$P(X,"^",4,99)
  1. ....S IVMCT=IVMCT+1 D WRLINE(IVMLN,IVMCT)
  1. ....;
  1. ....; - set ^TMP("IVMLST" array for look-up
  1. ....S ^TMP("IVMLST",$J,"IDX",IVMCT,IVMCT)=IVMNM_"^"_IVMSSN_"^"_DFN_"^"_IVMSIEN_"^"_$P(X,"^",3)_"^"_IVMI_"^"_IVMJ
  1. ;
  1. S VALMCNT=IVMCT
  1. ;
  1. INITQ K C,DFN,IVMBL,IVMCT,IVMI,IVMJ,IVMLN,IVMNM,IVMSIEN,IVMSSN,IVMSTAR
  1. Q
  1. ;
  1. ;
  1. WRLINE(X,C) ; - Write line out
  1. ;
  1. ; Input: X as pt name^pt ssn^pt ssa ssn^sp name^sp ssn^sp ssa ssn
  1. ; C as line number
  1. ; Output: None
  1. ;
  1. N IVMLN
  1. ; - patient data
  1. S IVMLN=IVMSTAR_$E($P(X,"^",1)_IVMBL,1,14)_" "_$E($P(X,"^",2)_IVMBL,1,11)_$E($P(X,"^",3)_IVMBL,1,11)
  1. ;
  1. ; - spouse data
  1. S IVMLN=IVMLN_$E($P(X,"^",4)_IVMBL,1,14)_" "_$E($P(X,"^",5)_IVMBL,1,11)_$E($P(X,"^",6)_IVMBL,1,10)
  1. ;
  1. ; - highlight SSA/SSN for patient
  1. D CNTRL^VALM10(C,33,9,IOINHI,IOINORM)
  1. ; - highlight SSA/SSN for spouse
  1. D CNTRL^VALM10(C,71,9,IOINHI,IOINORM)
  1. ;
  1. ; - display list
  1. S @VALMAR@(C,0)=$E(C_" ",1,4)_IVMLN
  1. Q
  1. ;
  1. ;
  1. HDR ; - Header code
  1. S VALMHDR(1)="Income Verification Match Suggested SSA/SSNs for Uploading"
  1. S VALMHDR(2)=" (*) - Indicates Date of Death Reported"
  1. Q