Changeset 674 for ccr/trunk/p/C0CPROC.m
- Timestamp:
- Jan 22, 2010, 2:45:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/C0CPROC.m
r673 r674 62 62 . . . S ZRNF("PROCDATETEXT")="Procedure Date" 63 63 . . . S ZRNF("PROCDATETIME")=ZDATE 64 . . . S ZRNF("PROCDESCOBJATTRCODE")="" ;NO PROC ATTRIBUTES YET 64 65 . . . S ZRNF("PROCDESCOBJATTR")="" 65 66 . . . S ZRNF("PROCDESCOBJATTRCODESYS")="" ;WE DON'T HAVE PROC ATTRIBUTES … … 71 72 . . . S ZRNF("PROCSTATUS")="Completed" ; Is this right? 72 73 . . . S ZRNF("PROCTYPE")=$P(ZCPT,U,2) ; NEED TO ADD THIS TO TEMPLATE 74 . . . D RNF1TO2^C0CRNF(C0CPRC,"ZRNF") ; ADD THIS ROW TO THE ARRAY 75 N ZRIM S ZRIM=$NA(^TMP("C0CRIM","VARS",DFN,"PROCEDURES")) 76 M @ZRIM=@C0CPRC@("V") 73 77 Q 74 78 ; … … 97 101 MAP(PROCXML,C0CPRC,PROCOUT) ; MAP PROCEDURES XML 98 102 ; 103 N ZTEMP S ZTEMP=$NA(^TMP("C0CCCR",$J,DFN,"PROCTEMP")) ;WORK AREA FOR TEMPLATE 104 K @ZTEMP 105 N ZBLD 106 S ZBLD=$NA(^TMP("C0CCCR",$J,DFN,"PROCBLD")) ; BUILD LIST AREA 107 D QUEUE^C0CXPATH(ZBLD,PROCXML,1,1) ; FIRST LINE 108 N ZINNER 109 D QUERY^C0CXPATH(PROCXML,"//Procedures/Procedure","ZINNER") ;ONE PROC 110 N ZTMP,ZVAR,ZI 111 S ZI="" 112 F S ZI=$O(@C0CPRC@("V",ZI)) Q:ZI="" D ;FOR EACH PROCEDURE 113 . S ZTMP=$NA(@ZTEMP@(ZI)) ;THIS PROCEDURE XML 114 . S ZVAR=$NA(@C0CPRC@("V",ZI)) ;THIS PROCEDURE VARIABLES 115 . D MAP^C0CXPATH("ZINNER",ZVAR,ZTMP) ; MAP THE PROCEDURE 116 . D QUEUE^C0CXPATH(ZBLD,ZTMP,1,@ZTMP@(0)) ;QUE FOR BUILD 117 D QUEUE^C0CXPATH(ZBLD,PROCXML,@PROCXML@(0),@PROCXML@(0)) 118 N ZZTMP 119 D BUILD^C0CXPATH(ZBLD,PROCOUT) ;BUILD FINAL XML 120 K @ZTEMP,@ZBLD 99 121 Q 100 122 ;
Note:
See TracChangeset
for help on using the changeset viewer.