Changeset 674 for ccr/trunk/p/C0CPROC.m


Ignore:
Timestamp:
Jan 22, 2010, 2:45:25 AM (15 years ago)
Author:
George Lilly
Message:

first version with Procedures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CPROC.m

    r673 r674  
    6262 . . . S ZRNF("PROCDATETEXT")="Procedure Date"
    6363 . . . S ZRNF("PROCDATETIME")=ZDATE
     64 . . . S ZRNF("PROCDESCOBJATTRCODE")="" ;NO PROC ATTRIBUTES YET
    6465 . . . S ZRNF("PROCDESCOBJATTR")=""
    6566 . . . S ZRNF("PROCDESCOBJATTRCODESYS")="" ;WE DON'T HAVE PROC ATTRIBUTES
     
    7172 . . . S ZRNF("PROCSTATUS")="Completed" ; Is this right?
    7273 . . . 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")
    7377 Q
    7478 ;
     
    97101MAP(PROCXML,C0CPRC,PROCOUT) ; MAP PROCEDURES XML
    98102 ;
     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
    99121 Q
    100122 ; 
Note: See TracChangeset for help on using the changeset viewer.