source: WorldVistAEHR/trunk/r/MEDICINE-MC/MCARAMLE.m@ 1204

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

initial load of WorldVistAEHR

File size: 909 bytes
Line 
1MCARAMLE ;WASH ISC/JKL-MUSE AUTO INSTRUMENT RETRANSMISSION-TRAN ERRORS ;2/27/95 18:34
2 ;;2.3;Medicine;;09/13/1996
3 ;
4 ;
5 ; Called from ^MCARAML
6 ; Retransmits transaction records originally transmitted with error
7 N MCIEN,MCZERO,MCDATE,MCSSN,MCNAME,MCI,MCJ
8 S MCIEN=0
9 F MCI=1:1 S MCIEN=$O(^MCAR(700.5,MCIEN)) Q:MCIEN=""!(MCIEN="B") D SAVE
10 Q
11 ;
12SAVE ;
13 I '$D(^MCAR(700.5,MCIEN,0)) Q
14 S MCZERO=^MCAR(700.5,MCIEN,0),MCDATE=$P(MCZERO,"^"),MCSSN=$P(MCZERO,"^",3)
15 I $P(MCZERO,"^",2)="MHOLT" Q
16 S MCNAME=$P(MCZERO,"^",4),MCERR=$P(MCZERO,"^",5)
17 I MCERR="" Q
18 D SET Q
19 ;
20SET ;
21 I MCNAME="" S MCNAME="NO PATIENT NAME"
22 I MCSSN="" S MCSSN="NO SSN"
23 I $L(MCNAME)<30 F MCJ=$L(MCNAME):1:30 S MCNAME=MCNAME_" "
24 I $L(MCSSN)<10 F MCJ=$L(MCSSN):1:10 S MCSSN=MCSSN_" "
25 I $D(^TMP($J,0,"MC",MCNAME,MCSSN,MCDATE)) Q
26 S MCCNT=MCCNT+1 W:MCCNT#100=0 "."
27 S ^TMP($J,0,"MC",MCNAME,MCSSN,MCDATE)=""
28 S ^TMP($J,0,"MC",0)=MCCNT
29 Q
Note: See TracBrowser for help on using the repository browser.