source: FOIAVistA/trunk/r/MEDICINE-MC/MCARAM0G.m@ 899

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

initial load of FOIAVistA 6/30/08 version

File size: 679 bytes
Line 
1MCARAM0G ;WASH ISC/JKL-MUSE AUTO INSTRUMENT REINIT-MISS EKG REC ;1/31/95 11:31
2 ;;2.3;Medicine;;09/13/1996
3 ;
4 ;
5 ;Called from ^MCARAM0
6 ;Deletes transaction records without EKG records by IEN patient match
7 S (MCZERO,MCIEN,MCDATE,MCSSN,MCNAME,MCI,MCERR)=0
8 F S MCIEN=$O(^MCAR(700.5,MCIEN)) Q:MCIEN="B" S MCZERO=^MCAR(700.5,MCIEN,0) D CHECK
9 Q
10CHECK ;
11 S MCDATE=$P(MCZERO,"^"),MCSSN=$P(MCZERO,"^",3),MCNAME=$P(MCZERO,"^",4)
12 I '$D(^MCAR(691.5,"B",MCDATE)) D DEL Q
13 S MCI=0 F S MCERR=0,MCI=$O(^MCAR(691.5,"B",MCDATE,MCI)) Q:MCI="" I ^MCAR(691.5,MCI,.1)=MCSSN S MCERR=MCI Q
14 I MCERR=0 D DEL
15 Q
16DEL ;
17 S DIK="^MCAR(700.5,",DA=MCIEN D ^DIK
18 S MCCNT=MCCNT+1 W:MCCNT#100=0 "."
19 Q
Note: See TracBrowser for help on using the repository browser.