Changeset 676 for ccr/trunk/p
- Timestamp:
- Jan 22, 2010, 11:11:36 AM (15 years ago)
- Location:
- ccr/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CCCR.m
r674 r676 137 137 M CCRGRTN=^TMP("C0CCCR",$J,DFN,CCRPART) ; RTN GLOBAL OF PART OR ALL 138 138 I '$D(C0CNRPC) S ^TMP("C0CRPC",$H,"RESULT",CCRGRTN(0))="" 139 ;K ^TMP("C0CCCR",$J) ; BEGIN TO CLEAN UP 139 140 Q 140 141 ; -
ccr/trunk/p/C0CPROC.m
r674 r676 44 44 ; NEED TO ADD START AND END DATES FROM PARAMETERS 45 45 N ZI S ZI="" 46 N PREVCPT,PREVDT S (PREVCPT,PREVDT)="" 46 47 F S ZI=$O(VISIT(ZI),-1) Q:ZI="" D ; REVERSE TIME ORDER - MOST RECENT FIRST 47 48 . N ZDATE … … 56 57 . . N ZCPT S ZCPT=$$CPT(VISIT(ZI,"CPT",ZJ)) ;GET CPT CODE AND TEXT 57 58 . . I ZCPT'="" D ;IF CPT CODE IS PRESENT 59 . . . I (ZCPT=PREVCPT)&(ZDATE=PREVDT) Q ; NO DUPS ALLOWED 58 60 . . . W !,ZCPT," ",ZDATE," ",ZPRV 59 61 . . . S ZRNF("PROCACTOROBJID")=ZPRV … … 73 75 . . . S ZRNF("PROCTYPE")=$P(ZCPT,U,2) ; NEED TO ADD THIS TO TEMPLATE 74 76 . . . D RNF1TO2^C0CRNF(C0CPRC,"ZRNF") ; ADD THIS ROW TO THE ARRAY 77 . . . S PREVCPT=ZCPT 78 . . . S PREVDT=ZDATE 75 79 N ZRIM S ZRIM=$NA(^TMP("C0CRIM","VARS",DFN,"PROCEDURES")) 76 80 M @ZRIM=@C0CPRC@("V") … … 91 95 ; CPT^CATEGORY^TEXT 92 96 N Z1,Z2,Z3,ZRTN 93 I ISTR["(CPT-4" D ; IF THERE IS A CPT CODE IN THERE94 . S Z1=$P( $P(ISTR,"(CPT-4 ",2),")",1)97 I $P(ISTR,U,1)'="" D ; IF THERE IS A CPT CODE IN THERE 98 . S Z1=$P(ISTR,U,1) 95 99 . S Z2=$P(ISTR,U,2) 96 100 . S Z3=$P(ISTR,U,3) … … 118 122 N ZZTMP 119 123 D BUILD^C0CXPATH(ZBLD,PROCOUT) ;BUILD FINAL XML 120 K @ZTEMP,@ZBLD 124 K @ZTEMP,@ZBLD,@C0CPRC 121 125 Q 122 126 ;
Note:
See TracChangeset
for help on using the changeset viewer.