source: WorldVistAEHR/trunk/r/CLINICAL_INFO_RESOURCE_NETWORK-MRF-RGE--RG--RGED--RGUT--RGWB/RGEQEXC.m@ 1154

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

initial load of WorldVistAEHR

File size: 553 bytes
Line 
1RGEQEXC ;BHM/RGY-Error processor ;17-Feb-98
2 ;;1.0; CLINICAL INFO RESOURCE NETWORK ;;30 Apr 99
3SET(TYPE,ERROR,STUB) ;Receive Error
4 NEW DIC,D0,DIE,DA,X,DLAYGO,DR,RGOK,EVN
5 I $G(TYPE)="" G Q
6 I TYPE'?1N.N S TYPE=$O(^RGEQASN("B",TYPE,0)) I TYPE="" G Q
7 F EVN=+$P(^RGEQEXC(0),"^",3)+1:1 L +^RGEQEXC(EVN):0 I $T S RGOK=0 D L -^RGEQEXC(EVN) Q:RGOK
8 .I $D(^RGEQEXC(EVN)) Q
9 .S DINUM=EVN,DIC="^RGEQEXC(",DIC(0)="L",DLAYGO=995.1,X=EVN K DD,D0 D FILE^DICN K DIC,DLAYGO,D0
10 .S DIE="^RGEQEXC(",DR="[RGEQ NEW EXCEPTION]",DA=EVN D ^DIE
11 .S RGOK=1
12 .Q
13Q Q
Note: See TracBrowser for help on using the repository browser.