source: FOIAVistA/trunk/r/SURGERY-SR/SROAX.m@ 949

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

initial load of FOIAVistA 6/30/08 version

File size: 675 bytes
Line 
1SROAX ;BIR/ADM - EXCLUSION UTILITY ;02/01/07
2 ;;3.0; Surgery ;**160**;24 Jun 93;Build 7
3 Q
4XL(SRCASE) ; compare CPT codes with exclusion list, return cpt code ien not excluded
5 N SRCODE,SRCPT,SRDATE,SROTH,SRQ,SRXCLD,Y
6 S (SRQ,SRXCLD)=0,SRCODE="",SRDATE=$P($G(^SRF(SRCASE,0)),"^",9)
7 I $G(^SRO(136,SRCASE,0)) S SRCPT=$P($G(^SRO(136,SRCASE,0)),"^",2) I SRCPT'="" D COMP I SRQ G END
8 S SROTH=0 F S SROTH=$O(^SRO(136,SRCASE,3,SROTH)) Q:'SROTH D Q:SRQ
9 .S SRXCLD=0,SRCPT=$P($G(^SRO(136,SRCASE,3,SROTH,0)),"^") I SRCPT'="" D COMP
10END Q SRCODE
11COMP I $G(^SRO(137,SRCPT,0)) S SRXCLD=1 Q
12 I 'SRXCLD S SRQ=1,Y=$$CPT^ICPTCOD(SRCPT,SRDATE),SRCODE=$P(Y,"^") ; SRCODE=ien in file 81
13 Q
Note: See TracBrowser for help on using the repository browser.