source: WorldVistAEHR/trunk/r/INCOME_VERIFICATION_MATCH-IVM/IVMLDEM8.m@ 691

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1IVMLDEM8 ;ALB/SEK - IVM DEMOGRAPHIC DELETE FIELDS (CON'T) ; 04-APR-96
2 ;;2.0;INCOME VERIFICATION MATCH;**5,10**; 21-OCT-94
3 ;;Per VHA Directive 10-93-142, this routine should not be modified.
4 ;
5 ; - called by IVMLDEM4 for non-uploadable demographic fields
6 ;
7 ; list manager returned entry # of field to be deleted (fifth
8 ; subscript of tmp global - ivment4)
9 ; since primary eligibility code could have >1 entry
10 ; and line # will not be the same as entry #
11 ; must get line # (fourth subscript of tmp global - ivmlinen)
12 ;
13DF N IVMAR,IVMARC,IVMEND,IVMEGC,IVMLINEN
14 S (IVMEND,IVMEGC,IVMLINEN)=0
15 F S IVMLINEN=$O(^TMP(IVMARRAY,$J,"IDX",IVMLINEN)) Q:'IVMLINEN D Q:IVMEND
16 .S IVMINDEX=$G(^TMP(IVMARRAY,$J,"IDX",IVMLINEN,IVMENT4)) Q:IVMINDEX']""
17 .I $P(IVMINDEX,"^",7)'=.361 S IVMEND=1 Q ; not primary elig code
18 .S IVMEGC=IVMEGC+1,IVMAR(IVMEGC)=IVMINDEX
19 ;
20 ; - primary eligibility code field
21 I IVMEGC D Q
22 .S $P(IVMINDEX,"^",8)="PRIMARY ELIGIBILITY CODE"
23 .D SURE Q:IVMOUT!('IVMSURE)
24 .F IVMARC=1:1:IVMEGC S IVMINDEX=IVMAR(IVMARC) D
25 ..D DEL
26 .W "completed."
27 ;
28 ; - check to see if selection is an address field
29 S IVMADDR=$$ADDR^IVMLDEM7(+IVMINDEX,$P(IVMINDEX,"^",2),$P(IVMINDEX,"^",3),$P(IVMINDEX,"^",4),IVMPPICK)
30 Q:IVMADDR
31 ;
32 ; - not address or primary eligibility code field
33 ;
34 D SURE Q:IVMOUT!('IVMSURE)
35 D DEL
36 W "completed."
37 Q
38 ;
39SURE ; - ask user if they are sure they want to delete field
40 D RUSURE^IVMLDEMU($P(IVMINDEX,"^",8),"delete") Q:IVMOUT!('IVMSURE)
41 ;
42 W !,"Deleting "_$P(IVMINDEX,"^",8)_" field from the list... "
43 Q
44 ;
45DEL ;- remove entry from file (#301.5)
46 D DELENT^IVMLDEMU($P(IVMINDEX,"^",2),$P(IVMINDEX,"^",3),$P(IVMINDEX,"^",4))
47 Q
Note: See TracBrowser for help on using the repository browser.